cfg80211: re-join IBSS when privacy changes
Johannes Berg
maintainerPATCH 1/1 cfg80211: re-join IBSS when privacy changes
When going from/to a WEP protected IBSS, we need to leave this one and join a new one to take care of the changed capability.
Cc Hong Zhang <[email protected]>
Signed-off-by Johannes Berg <[email protected]>
--- net/wireless/core.h | 2 + net/wireless/ibss.c | 4 +-- net/wireless/wext-compat.c | 49 ++++++++++++++++++++++++++++++++++++--------- 3 files changed, 44 insertions(+), 11 deletions(-)
net/wireless/ibss.c +2 -2
@@ -169,8 +169,8 @@ void cfg80211_clear_ibss(struct net_deviwdev_unlock (wdev); } -static int __cfg80211_leave_ibss (struct cfg80211_registered_device *rdev, -struct net_device *dev,bool nowext) +int __cfg80211_leave_ibss (struct cfg80211_registered_device *rdev, +struct net_device *dev,bool nowext) {struct wireless_dev *wdev = dev->ieee80211_ptr;int err;
net/wireless/wext-compat.c +40 -9
87 lines not on this page · raw message
net/wireless/core.h +2 -0
@@ -273,6 +273,8 @@ int cfg80211_join_ibss(struct cfg80211_rstruct cfg80211_ibss_params *params, struct cfg80211_cached_keys *connkeys);void cfg80211_clear_ibss (struct net_device *dev,bool nowext); +int __cfg80211_leave_ibss (struct cfg80211_registered_device *rdev, +struct net_device *dev,bool nowext);int cfg80211_leave_ibss (struct cfg80211_registered_device *rdev,struct net_device *dev,bool nowext);void __cfg80211_ibss_joined (struct net_device *dev,const u8 *bssid);