mac80211: avoid reconfig if no interfaces are up
authorEliad Peller <eliad@wizery.com>
Sun, 14 Dec 2014 09:05:53 +0000 (11:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 14:45:17 +0000 (15:45 +0100)
commit0f8b82456178d558f14011e06ebf9af937c4b197
tree9c911d82264fca4c22f5b47b7f9398ade55576eb
parent1a952c94b544cbf01291186b8c6ca25fbb5873f2
mac80211: avoid reconfig if no interfaces are up

If there are no interfaces up, there is no reason
to continue the reconfig flow.

The current code might end up calling driver
callbacks (e.g. resume(), reconfig_complete())
while the driver is already stopped.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c