Message ID | 20191209102808.12014-3-nicolas.cavallari@green-communications.fr (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Kalle Valo |
Headers | show |
Series | 802.11n IBSS: wlan0 stops receiving packets due to aggregation after sender reboot | expand |
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index 5598bbd09b62..5436ffd74ecb 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -4848,6 +4848,8 @@ brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev, if (!params->mac) return -EFAULT; + if (!brcmf_is_apmode(ifp->vif)) + return -EOPNOTSUPP; brcmf_dbg(TRACE, "Enter %pM\n", params->mac);
In preparation of allowing userspace to explicitly reset station state in IBSS mode, reject attempts to delete stations in IBSS mode with error EOPNOTSUPP. Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr> -- I do not know if the driver could possibly support this, so take the safe route and reject it. --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 ++ 1 file changed, 2 insertions(+)