blob: bdb7ac5b1ed94aa3aa3dad9b88132337dd863d39 [file] [log] [blame]
developer0d67a392022-07-15 11:55:52 +08001From 10e72bb7444664bfcd111713bfbfe2701772c8d5 Mon Sep 17 00:00:00 2001
2From: "howard.hsu" <howard-yh.hsu@mediatek.com>
3Date: Mon, 7 Mar 2022 19:18:56 +0800
4Subject: [PATCH 12/18] [patch] HAL: implement wifi_setApWmmUapsdEnable()
5
6Change-Id: I9d3d86f06d9b276ca3624e3679356aa6da3ea591
7---
8 source/wifi/wifi_hal.c | 15 ++++++++++++++-
9 1 file changed, 14 insertions(+), 1 deletion(-)
10
11diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
12index 62350c1b..cb5c6109 100644
13--- a/source/wifi/wifi_hal.c
14+++ b/source/wifi/wifi_hal.c
15@@ -4554,7 +4554,20 @@ INT wifi_getApWmmUapsdEnable(INT apIndex, BOOL *output)
16 INT wifi_setApWmmUapsdEnable(INT apIndex, BOOL enable)
17 {
18 //save config and apply instantly.
19- return RETURN_ERR;
20+ char config_file[MAX_BUF_SIZE] = {0};
21+ struct params list;
22+
23+ WIFI_ENTRY_EXIT_DEBUG("Inside %s:%d\n",__func__, __LINE__);
24+ list.name = "uapsd_advertisement_enabled";
25+ list.value = enable?"1":"0";
26+
27+ sprintf(config_file,"%s%d.conf",CONFIG_PREFIX,apIndex);
28+ wifi_hostapdWrite(config_file, &list, 1);
29+ wifi_hostapdProcessUpdate(apIndex, &list, 1);
30+ wifi_reloadAp(apIndex);
31+ WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__);
32+
33+ return RETURN_OK;
34 }
35
36 // Sets the WMM ACK polity on the hardware. AckPolicy false means do not acknowledge, true means acknowledge
37--
382.29.2
39