blob: 25f2df0435d86b7b0e2cda432e7ba3de10ef6204 [file] [log] [blame]
developerd83f85f2022-04-28 17:41:22 +08001From 9e205da9b7599135071b5690c5c96f380f7aec38 Mon Sep 17 00:00:00 2001
2From: Allen Ye <allen.ye@mediatek.com>
3Date: Thu, 28 Apr 2022 17:39:33 +0800
4Subject: [PATCH] HAL: refactor wifi_setRadioOperatingChannelBandwidth()
5
6---
7 source/wifi/wifi_hal.c | 14 ++++++++------
8 1 file changed, 8 insertions(+), 6 deletions(-)
9
10diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
11index 48e6021..84e2c22 100644
12--- a/source/wifi/wifi_hal.c
13+++ b/source/wifi/wifi_hal.c
14@@ -2060,15 +2060,17 @@ INT wifi_setRadioOperatingChannelBandwidth(INT radioIndex, CHAR *output_string)
15 pptr->value="1";
16 else if(strcmp(output_string,"80MHz") == 0)
17 pptr->value="1";
18+ else
19+ pptr->value="0";
20
21 pptr++; // added ieee80211n
22
23- if(strcmp(output_string,"80MHz") == 0)
24- {
25- pptr->name="ieee80211ac";
26- pptr->value="1";
27- pptr++; // added ieee80211ac
28- }
29+ pptr->name="ieee80211ac";
30+ if(strcmp(output_string,"80MHz") == 0)
31+ pptr->value="1";
32+ else
33+ pptr->value="0";
34+ pptr++;
35 }
36
37 for(int i=0; i<=MAX_APS/NUMBER_OF_RADIOS; i++)
38--
392.18.0
40