hostapd: Wait for channel list update after country code change
authorJouni Malinen <j@w1.fi>
Sun, 3 Nov 2013 14:33:11 +0000 (16:33 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Nov 2013 17:51:06 +0000 (19:51 +0200)
commitf0793bf191eb5c16db2d174b0127425bda79310f
tree0d44e2c3dad4f0e8da0da2ac0d5b1da91a95a1ee
parentae134e1d2b5e5257d999e0c3f146fa4a4d46a621
hostapd: Wait for channel list update after country code change

If hostapd is requested to set the country code and the previous country
code differs from the new one, the channel list information from the
driver may change. This change may not be instant, so wait for an
EVENT_CHANNEL_LIST_CHANGED event before continuing interface setup with
fetching of the channel list information. This fixes issues where the
selected channel is not available based on the previous regulatory data
and update through CRDA takes some time.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/ap/ap_drv_ops.h
src/ap/drv_callbacks.c
src/ap/hostapd.c
src/ap/hostapd.h
src/drivers/driver.h
src/drivers/driver_nl80211.c