mac80211: Fixing slow IBSS rejoin
authorAssaf Krauss <assaf.krauss@intel.com>
Wed, 4 Jun 2008 17:27:59 +0000 (20:27 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jun 2008 19:50:20 +0000 (15:50 -0400)
commitad81b2f97d42e13ef78bb3798e046cd5f0492980
treebcec9a5e984c0be1c9b9ef0e6636ddfa3c07b699
parenta01f5450401f081f07a866612121e780e0730cfd
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