mac80211: always set in_reconfig=false on wakeup
authorEliad Peller <eliad@wizery.com>
Mon, 2 Jul 2012 12:08:25 +0000 (15:08 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Jul 2012 06:33:05 +0000 (08:33 +0200)
commitc62094889f7bb0b3343d5404c9d139d2fb1712bb
tree62f6aba934821cb9147a17d4d8d6c5d4dade1b4c
parent135792ec246ddd0b2738dd95447297ea0b91943b
mac80211: always set in_reconfig=false on wakeup

If the interfaces were removed just before a restart
work was started, open_count will be 0, and most of
the reconfig work will be skipped, including the
resetting of local->in_reconfig to false.

Leaving local->inconfig = true will result in
dropping any incoming packet.

Fix it by always setting local->in_reconfig = false
(even if there are no active interfaces).

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c