blob: a901c8f86fa490ad5113c10a332267a315e6093f [file] [log] [blame]
developer15a43312022-04-12 11:23:23 +08001From 22017539d25420018d654e8f92ae517eacb08335 Mon Sep 17 00:00:00 2001
2From: "howard.hsu" <howard-yh.hsu@mediatek.com>
3Date: Mon, 7 Mar 2022 19:12:13 +0800
4Subject: [PATCH 10/18] [patch] HAL: implement wifi_getApWmmEnable()
5
6Change-Id: I5baf1c0402fac4795ff52e58bce8be92b9fbf13d
7---
8 source/wifi/wifi_hal.c | 12 +++++++++++-
9 1 file changed, 11 insertions(+), 1 deletion(-)
10
11diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
12index 680b4283..4e220ed6 100644
13--- a/source/wifi/wifi_hal.c
14+++ b/source/wifi/wifi_hal.c
15@@ -4496,7 +4496,17 @@ INT wifi_getApWmmEnable(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, "wmm_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--
352.29.2
36