|
@@ -2539,6 +2539,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|
|
case EVENT_CHANNEL_LIST_CHANGED:
|
|
|
if (wpa_s->drv_priv == NULL)
|
|
|
break; /* Ignore event during drv initialization */
|
|
|
+
|
|
|
+ free_hw_features(wpa_s);
|
|
|
+ wpa_s->hw.modes = wpa_drv_get_hw_feature_data(
|
|
|
+ wpa_s, &wpa_s->hw.num_modes, &wpa_s->hw.flags);
|
|
|
+
|
|
|
#ifdef CONFIG_P2P
|
|
|
wpas_p2p_update_channel_list(wpa_s);
|
|
|
#endif /* CONFIG_P2P */
|