mac80211: clarify interface iteration and make it configurable
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Nov 2012 19:23:30 +0000 (20:23 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2012 16:34:35 +0000 (17:34 +0100)
commit8b2c98243e8d00f9c6b6059976d6de51491ee0c7
treeff4d3dacbbe67d7886ac00b8738a532bb9bb8c76
parent9214ad7f9a0bfbfb2c204305e7391ce8b7fe4d29
mac80211: clarify interface iteration and make it configurable

During hardware restart, all interfaces are iterated even
though they haven't been re-added to the driver, document
this behaviour. The same also happens during resume, which
is even more confusing since all of the interfaces were
previously removed from the driver. Make this optional so
drivers relying on the current behaviour can still use it,
but to let drivers that don't want this behaviour disable
it.

Also convert all API users, keeping the old semantics
except in hwsim, where the new normal ones are desired.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/mac80211-ops.c
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00mac.c
drivers/net/wireless/ti/wlcore/main.c
include/net/mac80211.h
net/mac80211/util.c