blob: cbd01111e8ce1769837f0adbb496dd4cae99b6bd [file] [log] [blame]
developer8bff6472023-07-17 11:11:44 +08001From eb14389eb6c2e30a702ee7ebc98330fbc62edb44 Mon Sep 17 00:00:00 2001
developer08748a42023-04-21 11:17:26 +08002From: Michael Lee <michael-cy.lee@mediatek.com>
3Date: Wed, 19 Apr 2023 17:18:33 +0800
developer8bff6472023-07-17 11:11:44 +08004Subject: [PATCH 25/32] hostapd: mtk: Fix scan result updating issue
developer08748a42023-04-21 11:17:26 +08005
6There are no HT capability and operation in beacon of AP operating in
7NOHT.
8Therefore, when updating scan results, HT capability and operation
9should be assigned the default value for this kind of AP.
10---
11 wpa_supplicant/bss.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
developer8bff6472023-07-17 11:11:44 +080015index 3bfcf7ef4..004d4a639 100644
developer08748a42023-04-21 11:17:26 +080016--- a/wpa_supplicant/bss.c
17+++ b/wpa_supplicant/bss.c
developer505c9432023-05-12 18:58:17 +080018@@ -307,8 +307,12 @@ static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src,
developer08748a42023-04-21 11:17:26 +080019 oper = (struct ieee80211_ht_operation *) elems.ht_operation;
20 if (capab)
21 dst->ht_capab = le_to_host16(capab->ht_capabilities_info);
22+ else
23+ dst->ht_capab = 0;
24 if (oper)
25 dst->ht_param = oper->ht_param;
26+ else
27+ dst->ht_param = 0;
28
29 calculate_update_time(fetch_time, src->age, &dst->last_update);
30 }
31--
developer8bff6472023-07-17 11:11:44 +0800322.39.2
developer08748a42023-04-21 11:17:26 +080033