From 72ffab127f72d5553e1e0e4faa64be4f6ba1875b Mon Sep 17 00:00:00 2001 From: Bruin06 <419738327@qq.com> Date: Wed, 2 Jul 2025 14:42:29 +0800 Subject: [PATCH] Fix WiFi7 Crash Signed-off-by: Bruin06 <419738327@qq.com> --- wpa_supplicant-2.9_standard/wpa_supplicant/events.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/wpa_supplicant-2.9_standard/wpa_supplicant/events.c b/wpa_supplicant-2.9_standard/wpa_supplicant/events.c index 9be14dd..9cd3a99 100644 --- a/wpa_supplicant-2.9_standard/wpa_supplicant/events.c +++ b/wpa_supplicant-2.9_standard/wpa_supplicant/events.c @@ -6862,15 +6862,8 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_s->links[data->ch_switch.link_id].freq = data->ch_switch.freq; #ifdef CONFIG_OPEN_HARMONY_PATCH - if (wpa_s->links[data->ch_switch.link_id].bss && - wpa_s->links[data->ch_switch.link_id].bss->freq) { - wpa_printf(MSG_INFO, "links bss freq: %d", - wpa_s->links[data->ch_switch.link_id].bss->freq); - } else { - wpa_printf(MSG_ERROR, "links bss or freq is NULL"); - break; - } -#endif + wpa_supplicant_update_link_bss(wpa_s, data->ch_switch.link_id, wpa_s->links[data->ch_switch.link_id].bssid); +#endif /* CONFIG_OPEN_HARMONY_PATCH */ if (wpa_s->links[data->ch_switch.link_id].bss && wpa_s->links[data->ch_switch.link_id].bss->freq != data->ch_switch.freq) { -- Gitee