]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: deinitialize ibss-internals after emptiness check
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Tue, 13 Nov 2012 17:43:03 +0000 (18:43 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Nov 2012 20:35:07 +0000 (21:35 +0100)
commit53c53ac913c87adaf443f88f75845745eaf1d27f
tree418a3e8d760ccee586210034b1f111e6c3b43d0d
parent3b6b9c9692dd6667809421eefdc7773b48200948
mac80211: deinitialize ibss-internals after emptiness check

The check whether the IBSS is active and can be removed should be
performed before deinitializing the fields used for the check/search.
Otherwise, the configured BSS will not be found and removed properly.

To make it more clear for the future, rename sdata->u.ibss to the
local pointer ifibss which is used within the checks.

This behaviour was introduced by
6b7158b50e570c941d350b4d01213c0b79d8bd0c
("mac80211: fix IBSS teardown race")

Cc: stable@vger.kernel.org
Cc: Ignacy Gawedzki <i@lri.fr>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c