mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
Staging: wlan-ng: p80211wext don't set default key id twice
p80211wext don't set default key id twice another change from wlan-ng-devel Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
46fa61f360
commit
87b3df81fc
@ -611,13 +611,6 @@ static int p80211wext_siwencode(netdevice_t *dev,
|
||||
else
|
||||
i--;
|
||||
|
||||
result = p80211wext_dorequest(wlandev, DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID, i);
|
||||
|
||||
if (result) {
|
||||
err = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/* Set current key number only if no keys are given */
|
||||
if (erq->flags & IW_ENCODE_NOKEY) {
|
||||
result = p80211wext_dorequest(wlandev, DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID, i);
|
||||
|
Loading…
Reference in New Issue
Block a user