Skip to contentSkip to conversation

cfg80211: disable CSA for all drivers

PATCH-mac80211 Simon Wunderlich 2 participants 2 messages Nov 26, 2013 – Dec 2, 2013 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

The channel switch announcement code has some major locking problems which can cause a deadlock in worst case. A series of fixes has been proposed, but these are non-trivial and need to be tested first. Therefore disable CSA completely for 3.13.

---
This is based on mac80211.git and should go into 3.13 only

---
 net/wireless/core.c |    6 ++++++
 1 file changed, 6 insertions(+)
net/wireless/core.c +6 -0
index aff959e..507e71f 100644
@@ -451,6 +451,12 @@ int wiphy_register(struct wiphy *wiphy)
 	int i;
 	u16 ifmodes = wiphy->interface_modes;
 
+	/*
+	 * There are major locking problems in nl80211/mac80211 for CSA,
+	 * disable for all drivers until this has been reworked.
+	 */
+	wiphy->flags &= ~WIPHY_FLAG_HAS_CHANNEL_SWITCH;
+
 #ifdef CONFIG_PM
 	if (WARN_ON(wiphy->wowlan &&
 		    (wiphy->wowlan->flags & WIPHY_WOWLAN_GTK_REKEY_FAILURE) &&
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 8 lines · Simon Wunderlich

The channel switch announcement code has some major locking problems which can cause a deadlock in worst case. A series of fixes has been proposed, but these are non-trivial and need to be tested first. Therefore disable CSA completely for 3.13.

---
This is based on mac80211.git and should go into 3.13 only

It didn't apply cleanly so I guess you didn't base it on the latest version, but I picked it up.

johannes