]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: set hw initial idle state
authorKarl Beldan <karl.beldan@rivierawaves.com>
Tue, 19 Nov 2013 16:12:05 +0000 (17:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:56:54 +0000 (16:56 +0100)
commita19655b685e7ea6792778096467bb26c79519b12
treea67f66f8f4a1a29b040529928f2c5801d0bc8110
parentcba7a1a8acad8e006e2aaceaed3cb64127d0a6bf
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>
net/mac80211/main.c