developer | f9b0021 | 2023-07-31 12:27:06 +0800 | [diff] [blame] | 1 | From a5f55beb2941f062a804f9185a0f13fda5d9196e Mon Sep 17 00:00:00 2001 |
developer | d7066b0 | 2023-04-21 11:17:26 +0800 | [diff] [blame] | 2 | From: Michael Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Wed, 19 Apr 2023 17:18:33 +0800 |
developer | f9b0021 | 2023-07-31 12:27:06 +0800 | [diff] [blame] | 4 | Subject: [PATCH 29/35] hostapd: mtk: Fix scan result updating issue |
developer | d7066b0 | 2023-04-21 11:17:26 +0800 | [diff] [blame] | 5 | |
| 6 | There are no HT capability and operation in beacon of AP operating in |
| 7 | NOHT. |
| 8 | Therefore, when updating scan results, HT capability and operation |
| 9 | should be assigned the default value for this kind of AP. |
| 10 | --- |
| 11 | wpa_supplicant/bss.c | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c |
developer | 8b64f1a | 2023-05-02 10:31:58 +0800 | [diff] [blame] | 15 | index 01ddb13..4e711cf 100644 |
developer | d7066b0 | 2023-04-21 11:17:26 +0800 | [diff] [blame] | 16 | --- a/wpa_supplicant/bss.c |
| 17 | +++ b/wpa_supplicant/bss.c |
| 18 | @@ -306,8 +306,12 @@ static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src, |
| 19 | 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 | -- |
developer | 8b64f1a | 2023-05-02 10:31:58 +0800 | [diff] [blame] | 32 | 2.18.0 |
developer | d7066b0 | 2023-04-21 11:17:26 +0800 | [diff] [blame] | 33 | |