Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: set hw initial idle state

ATM, the first call of ieee80211_do_open will configure the hw as
non-idle, even if the interface being brought up is not a monitor, and
this leads to inconsistent sequences like:

register_hw()
do_open(sta)
hw_config(non-idle)
(.. sta is non-idle ..)
scan(sta)
hw_config(idle) (after scan finishes)
do_stop(sta)
do_open(sta)
(.. sta is idle ..)

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Karl Beldan and committed by
Johannes Berg
24d47300 5664da44

+2
+2
net/mac80211/main.c
··· 940 940 wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n", 941 941 result); 942 942 943 + local->hw.conf.flags = IEEE80211_CONF_IDLE; 944 + 943 945 ieee80211_led_init(local); 944 946 945 947 rtnl_lock();