[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-wireless
Subject: [PATCH 1/6] mac80211 ibss: flush only stations belonging to
From: Johannes Berg <johannes () sipsolutions ! net>
Date: 2008-03-31 17:22:59
Message-ID: 20080331172433.692925000 () sipsolutions ! net
[Download RAW message or body]
When joining a new IBSS, all old stations are flushed, but currently
all stations belonging to all virtual interfaces are flushed, which
is wrong. This patch fixes it.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/ieee80211_sta.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- everything.orig/net/mac80211/ieee80211_sta.c 2008-03-31 18:21:58.000000000 +0200
+++ everything/net/mac80211/ieee80211_sta.c 2008-03-31 18:22:23.000000000 +0200
@@ -2231,8 +2231,10 @@ static int ieee80211_sta_join_ibss(struc
sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
+ sdata = IEEE80211_DEV_TO_SUB_IF(dev);
+
/* Remove possible STA entries from other IBSS networks. */
- sta_info_flush(local, NULL);
+ sta_info_flush(local, sdata);
if (local->ops->reset_tsf) {
/* Reset own TSF to allow time synchronization work. */
@@ -2245,7 +2247,6 @@ static int ieee80211_sta_join_ibss(struc
local->hw.conf.beacon_int = bss->beacon_int >= 10 ? bss->beacon_int : 10;
- sdata = IEEE80211_DEV_TO_SUB_IF(dev);
sdata->drop_unencrypted = bss->capability &
WLAN_CAPABILITY_PRIVACY ? 1 : 0;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic