]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 19:47:08 +0000 (11:47 -0800)
commite41cd8f166f6b9a0767dce3cbce65d1f4941b8ba
tree4c749c7fcad63ea49b325110df2462cf908d4839
parentfceca5e72e787dd0a8ea29e22a874e363389356c
mac80211: deinitialize ibss-internals after emptiness check

commit b78a4932f5fb11fadf41e69c606a33fa6787574c upstream.

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
f3209bea110cade12e2b133da8b8499689cb0e2e
("mac80211: fix IBSS teardown race")

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