diff options
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r-- | wpa_supplicant/events.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index b724eec0..0003d1f5 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -5345,6 +5345,10 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, if (event == EVENT_CH_SWITCH_STARTED) break; + if (wpa_s->assoc_freq && data->ch_switch.freq && + (int) wpa_s->assoc_freq != data->ch_switch.freq) { + wpas_notify_frequency_changed(wpa_s, data->ch_switch.freq); + } wpa_s->assoc_freq = data->ch_switch.freq; wpa_s->current_ssid->frequency = data->ch_switch.freq; if (wpa_s->current_bss && |