mac80211: Fixing slow IBSS rejoin

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, June 11, 2008 - 5:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ad81b2...
Commit:     ad81b2f97d42e13ef78bb3798e046cd5f0492980
Parent:     a01f5450401f081f07a866612121e780e0730cfd
Author:     Assaf Krauss <assaf.krauss@intel.com>
AuthorDate: Wed Jun 4 20:27:59 2008 +0300
Committer:  John W. Linville <linville@tuxdriver.com>
CommitDate: Mon Jun 9 15:50:20 2008 -0400

    mac80211: Fixing slow IBSS rejoin
    
    This patch fixes the issue of slow reconnection to an IBSS cell after
    disconnection from it. Now the interface's bssid is reset upon ifdown.
    
    ieee80211_sta_find_ibss:
    if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 &&
    	    (bss = ieee80211_rx_bss_get(dev, bssid,
    					local->hw.conf.channel->center_freq,
    					ifsta->ssid, ifsta->ssid_len)))
    
    Note:
    In general disconnection is still not handled properly in mac80211
    
    Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
    Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 net/mac80211/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 5c87645..98c0b5e 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -511,6 +511,7 @@ static int ieee80211_stop(struct net_device *dev)
 	case IEEE80211_IF_TYPE_STA:
 	case IEEE80211_IF_TYPE_IBSS:
 		sdata->u.sta.state = IEEE80211_DISABLED;
+		memset(sdata->u.sta.bssid, 0, ETH_ALEN);
 		del_timer_sync(&sdata->u.sta.timer);
 		/*
 		 * When we get here, the interface is marked down.
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mac80211: Fixing slow IBSS rejoin, Linux Kernel Mailing ..., (Wed Jun 11, 5:59 pm)