mac80211_hwsim: Fix initial beacon timer configuration
authorJouni Malinen <j@w1.fi>
Sat, 26 Sep 2009 19:30:15 +0000 (22:30 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Sep 2009 21:25:16 +0000 (17:25 -0400)
commitffed1307c9672337fc7d051ab5ed04f8806467e2
treea9c362b849064003def58184b26194f7ff30aeaf
parentb96ab540c1deac17238c4902c328ee08c3130370
mac80211_hwsim: Fix initial beacon timer configuration

mac80211_hwsim does not start transmitting Beacon frames when hostapd
is started for the first time and restarting hostapd fixes this. The
issue is caused by the config() handler not being able to start
beacon_timer when beacon interval is not yet known and
bss_info_changed() handler not starting the timer. This can be fixed by
making the bss_info_changed() update the timer.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c