]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Fix processing of channel list update events
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Mar 2012 15:53:53 +0000 (17:53 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Mar 2012 15:59:39 +0000 (17:59 +0200)
commit6979582ca6ff9b82c77fd81025fdcaed4f67e593
tree70d7d035e39e456d631898b533836dd359b81f14
parentef48ff940bf4768e151333c1ef30e260556656e4
Fix processing of channel list update events

Commit 6bf731e8cea4d9d41665d271b331e096c7c569e9 broke handling of
EVENT_CHANNEL_LIST_CHANGED by introducing a cached copy of the driver
channel list that does not get updated even if driver changes its list.
Fix this by synchronizing the cacched wpa_s->hw.modes information
whenever EVENT_CHANNEL_LIST_CHANGED is processed. This fixes P2P channel
list updates based on regulatory domain hints that may trigger driver to
change its supported channel list.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h