Simon Wunderlich b78a4932f5 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
f3209bea110cade12e2b133da8b8499689cb0e2e
("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>
2012-11-13 21:35:07 +01:00
..
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:24 -04:00
2011-07-08 11:11:20 -04:00
2012-06-24 11:32:29 +02:00
2012-09-06 17:55:00 +02:00
2012-06-24 11:33:18 +02:00
2012-06-24 11:32:29 +02:00
2012-06-24 11:32:29 +02:00
2012-06-24 11:33:18 +02:00
2012-06-24 11:32:38 +02:00
2012-08-20 14:13:41 +02:00
2011-03-31 11:26:23 -03:00
2012-10-31 17:04:18 +01:00
2012-06-22 11:26:58 +02:00
2012-06-24 11:33:18 +02:00
2012-03-13 14:54:16 -04:00
2012-06-20 17:35:22 +02:00
2012-06-20 17:35:22 +02:00