diff options
author | Nicolas Cavallari <[email protected]> | 2020-03-05 14:57:54 +0100 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2020-03-20 14:42:20 +0100 |
commit | a916062a09d94cbeff87b7d57840b8747ab4a833 (patch) | |
tree | 3f32b89ee315284cb3a908a9acc505b522a15493 | |
parent | edafcf4259839c5c5315d215a5fc4171abaafc4a (diff) |
mac80211: Allow deleting stations in ibss mode to reset their state
Set the NL80211_EXT_FEATURE_DEL_IBSS_STA if the interface support IBSS
mode, so that stations can be reset from user space.
mac80211 already deletes stations by itself, so mac80211 drivers must
already support this.
This has been successfully tested with ath9k.
Signed-off-by: Nicolas Cavallari <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
-rw-r--r-- | net/mac80211/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index ee1b24845b66..fefdd1ca8365 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1083,6 +1083,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) NL80211_EXT_FEATURE_EXT_KEY_ID); } + if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_ADHOC)) + wiphy_ext_feature_set(local->hw.wiphy, + NL80211_EXT_FEATURE_DEL_IBSS_STA); + /* * Calculate scan IE length -- we need this to alloc * memory and to subtract from the driver limit. It |