Skip to content

Commit 9f16d84

Browse files
committed
cfg80211: disable 5/10 MHz support for all drivers
Due to nl80211 API breakage, 5/10 MHz support is broken for all drivers. Fixing it requires adding new API, but that can't be done as a bugfix commit since that would require either updating all APIs in the trees needing the bugfix or cause different kernels to have incompatible API. Therefore, just disable 5/10 MHz support for all drivers. Cc: stable@vger.kernel.org [3.12] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 351df09 commit 9f16d84

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/wireless/core.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ int wiphy_register(struct wiphy *wiphy)
451451
int i;
452452
u16 ifmodes = wiphy->interface_modes;
453453

454+
/* support for 5/10 MHz is broken due to nl80211 API mess - disable */
455+
wiphy->flags &= ~WIPHY_FLAG_SUPPORTS_5_10_MHZ;
456+
454457
#ifdef CONFIG_PM
455458
if (WARN_ON(wiphy->wowlan &&
456459
(wiphy->wowlan->flags & WIPHY_WOWLAN_GTK_REKEY_FAILURE) &&

0 commit comments

Comments
 (0)