developer | 3b7aaa7 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 1 | From 5e446b7ed3ee1040ccacc90747f69879fec5f4d6 Mon Sep 17 00:00:00 2001 |
| 2 | From: "howard.hsu" <howard-yh.hsu@mediatek.com> |
| 3 | Date: Mon, 7 Mar 2022 19:11:24 +0800 |
| 4 | Subject: [PATCH 09/18] [patch] HAL: implement wifi_getApWmmUapsdEnable() |
| 5 | |
| 6 | Change-Id: I4127956b14d984dc8470d66423f4b7560e48708f |
| 7 | --- |
| 8 | source/wifi/wifi_hal.c | 12 +++++++++++- |
| 9 | 1 file changed, 11 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c |
| 12 | index 3ddbc802..680b4283 100644 |
| 13 | --- a/source/wifi/wifi_hal.c |
| 14 | +++ b/source/wifi/wifi_hal.c |
| 15 | @@ -4513,7 +4513,17 @@ INT wifi_getApWmmUapsdEnable(INT apIndex, BOOL *output) |
| 16 | //get the running status from driver |
| 17 | if(!output) |
| 18 | return RETURN_ERR; |
| 19 | - *output=TRUE; |
| 20 | + |
| 21 | + char config_file[MAX_BUF_SIZE] = {0}; |
| 22 | + char buf[16] = {0}; |
| 23 | + |
| 24 | + sprintf(config_file,"%s%d.conf",CONFIG_PREFIX,apIndex); |
| 25 | + wifi_hostapdRead(config_file, "uapsd_advertisement_enabled", buf, sizeof(buf)); |
| 26 | + if (strncmp("1",buf,1) == 0) |
| 27 | + *output = TRUE; |
| 28 | + else |
| 29 | + *output = FALSE; |
| 30 | + |
| 31 | return RETURN_OK; |
| 32 | } |
| 33 | |
| 34 | -- |
| 35 | 2.29.2 |
| 36 | |