Skip to contentSkip to conversation

cfg80211: re-join IBSS when privacy changes

PATCH New Johannes Berg 1 participant 1 message Nov 18, 2009 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 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.

---
 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_devi
 	wdev_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_r
 		       struct 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);