mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cfg80211: fix IBSS default management key
When wireless extensions are used to control an encrypted IBSS, we erroneously can try to set the default management key. Fix this. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
66c524210a
commit
3be61a3851
1 changed files with 3 additions and 1 deletions
|
|
@ -247,8 +247,10 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
|
|||
if (!netif_running(wdev->netdev))
|
||||
return 0;
|
||||
|
||||
if (wdev->wext.keys)
|
||||
if (wdev->wext.keys) {
|
||||
wdev->wext.keys->def = wdev->wext.default_key;
|
||||
wdev->wext.keys->defmgmt = wdev->wext.default_mgmt_key;
|
||||
}
|
||||
|
||||
wdev->wext.ibss.privacy = wdev->wext.default_key != -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue