2019-11-08 19:45:09

by Ben Greear

[permalink] [raw]
Subject: [PATCH 10/10] mlme: Don't unlink bss on assoc timeout and similar.

From: Ben Greear <[email protected]>

With lots of virtual stations, we want to keep the bss entries around
even if one station fails to associate for some reason. The timeouts
should still get rid of truly stale ones eventually.

Signed-off-by: Ben Greear <[email protected]>
---
net/mac80211/mlme.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 64336433925d..240e5ff8e9df 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2691,7 +2691,7 @@ static void __ieee80211_disconnect(struct ieee80211_sub_if_data *sdata)
/* AP is probably out of range (or not reachable for another reason) so
* remove the bss struct for that AP.
*/
- cfg80211_unlink_bss(local->hw.wiphy, ifmgd->associated);
+ //cfg80211_unlink_bss(local->hw.wiphy, ifmgd->associated);

ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH,
WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY,
@@ -4201,7 +4201,7 @@ static int ieee80211_auth(struct ieee80211_sub_if_data *sdata)
* Most likely AP is not in the range so remove the
* bss struct for that AP.
*/
- cfg80211_unlink_bss(local->hw.wiphy, auth_data->bss);
+ //cfg80211_unlink_bss(local->hw.wiphy, auth_data->bss);

return -ETIMEDOUT;
}
@@ -4267,7 +4267,7 @@ static int ieee80211_do_assoc(struct ieee80211_sub_if_data *sdata)
* Most likely AP is not in the range so remove the
* bss struct for that AP.
*/
- cfg80211_unlink_bss(local->hw.wiphy, assoc_data->bss);
+ //cfg80211_unlink_bss(local->hw.wiphy, assoc_data->bss);

return -ETIMEDOUT;
}
--
2.20.1