diff mbox series

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

Message ID 20191108194433.24021-1-greearb@candelatech.com (mailing list archive)
State Rejected
Delegated to: Johannes Berg
Headers show
Series Ben's grab bag of mac80211 patches | expand

Commit Message

Ben Greear Nov. 8, 2019, 7:44 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

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 <greearb@candelatech.com>
---
 net/mac80211/mlme.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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;
 	}