]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix IBSS disconnect
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 30 Jan 2014 08:47:28 +0000 (14:17 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 08:55:20 +0000 (09:55 +0100)
commita0ff102611ea30720f561f3f5cab3c0b248bc173
treecfce7bfe004dfe2c733a272aeb22f57ed957249f
parent092c6e3b6b27e8b40d5bb4a63b0ed847e1702dce
mac80211: Fix IBSS disconnect

Currently, when a station leaves an IBSS network, the
corresponding BSS is not dropped from cfg80211 if there are
other active stations in the network. But, the small
window that is present when trying to determine a station's
status based on IEEE80211_IBSS_MERGE_INTERVAL introduces
a race.

Instead of trying to keep the BSS, always remove it when
leaving an IBSS network. There is not much benefit to retain
the BSS entry since it will be added with a subsequent join
operation.

This fixes an issue where a dangling BSS entry causes ath9k
to wait for a beacon indefinitely.

Cc: <stable@vger.kernel.org>
Reported-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c