mac80211: trigger ieee80211_sta_work after opening interface
commit64f851e410ae37a0990212ae34f0c96b641478f7
authorJan Niehusmann <jan@gondor.com>
Sun, 23 Mar 2008 19:23:56 +0000 (23 20:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 19:44:07 +0000 (1 15:44 -0400)
tree6ff8af643731d195b1d9439f77b4168f53fe0c62
parentf83f1768f833cb45bc93429fdc552252a4f55ac3
mac80211: trigger ieee80211_sta_work after opening interface

ieee80211_sta_work is disabled while network interface
is down. Therefore, if you configure wireless parameters
before bringing the interface up, these configurations are
not yet effective and association fails.

A workaround from userspace is calling a command like
'iwconfig wlan0 ap any' after the interface is brought up.

To fix this behaviour, trigger execution of ieee80211_sta_work from
ieee80211_open when in STA or IBSS mode.

Signed-off-by: Jan Niehusmann <jan@gondor.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211.c