hostapd: Filter channel list updated events after country code change
We were not filtering the EVENT_CHANNEL_LIST_CHANGED events based on the regulatory hint initiator. So wait for EVENT_CHANNEL_LIST_CHANGED event after our own change was triggered even when regulatory hint initiator was the driver. This could result in the wait for the channel list to be updated to be terminated before the real change has occurred and as such, old channel list remaining in use when configuring hostapd/wpa_supplicant country parameter. Fix this by filtering the hints according to the initiator and only regulatory hints initiated by user will be used to stop the wait. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
146fa9b38f
commit
795baf773f
5 changed files with 47 additions and 5 deletions
|
@ -375,7 +375,7 @@ int hostapd_reload_iface(struct hostapd_iface *hapd_iface);
|
|||
int hostapd_disable_iface(struct hostapd_iface *hapd_iface);
|
||||
int hostapd_add_iface(struct hapd_interfaces *ifaces, char *buf);
|
||||
int hostapd_remove_iface(struct hapd_interfaces *ifaces, char *buf);
|
||||
void hostapd_channel_list_updated(struct hostapd_iface *iface);
|
||||
void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator);
|
||||
void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s);
|
||||
const char * hostapd_state_text(enum hostapd_iface_state s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue