]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Add support for userspace to reset stations in IBSS mode
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Thu, 5 Mar 2020 13:57:53 +0000 (14:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2020 13:42:20 +0000 (14:42 +0100)
commit839e4fabba6eb3ba620abce3bb73c96ea037b3ca
tree66e8b45d32939e30b441a009c0141b68d32bf186
parent0c5b1fa053159b99bc55a7a9299746e0d6da24b1
cfg80211: Add support for userspace to reset stations in IBSS mode

Sometimes, userspace is able to detect that a peer silently lost its
state (like, if the peer reboots). wpa_supplicant does this for IBSS-RSN
by registering for auth/deauth frames, but when it detects this, it is
only able to remove the encryption keys of the peer and close its port.

However, the kernel also hold other state about the station, such as BA
sessions, probe response parameters and the like.  They also need to be
resetted correctly.

This patch adds the NL80211_EXT_FEATURE_DEL_IBSS_STA feature flag
indicating the driver accepts deleting stations in IBSS mode, which
should send a deauth and reset the state of the station, just like in
mesh point mode.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Link: https://lore.kernel.org/r/20200305135754.12094-1-cavallar@lri.fr
[preserve -EINVAL return]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c