developer | d83f85f | 2022-04-28 17:41:22 +0800 | [diff] [blame] | 1 | From 9e205da9b7599135071b5690c5c96f380f7aec38 Mon Sep 17 00:00:00 2001 |
| 2 | From: Allen Ye <allen.ye@mediatek.com> |
| 3 | Date: Thu, 28 Apr 2022 17:39:33 +0800 |
| 4 | Subject: [PATCH] HAL: refactor wifi_setRadioOperatingChannelBandwidth() |
| 5 | |
| 6 | --- |
| 7 | source/wifi/wifi_hal.c | 14 ++++++++------ |
| 8 | 1 file changed, 8 insertions(+), 6 deletions(-) |
| 9 | |
| 10 | diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c |
| 11 | index 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 | -- |
| 39 | 2.18.0 |
| 40 | |