blob: bdb7ac5b1ed94aa3aa3dad9b88132337dd863d39 [file] [log] [blame]
From 10e72bb7444664bfcd111713bfbfe2701772c8d5 Mon Sep 17 00:00:00 2001
From: "howard.hsu" <howard-yh.hsu@mediatek.com>
Date: Mon, 7 Mar 2022 19:18:56 +0800
Subject: [PATCH 12/18] [patch] HAL: implement wifi_setApWmmUapsdEnable()
Change-Id: I9d3d86f06d9b276ca3624e3679356aa6da3ea591
---
source/wifi/wifi_hal.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
index 62350c1b..cb5c6109 100644
--- a/source/wifi/wifi_hal.c
+++ b/source/wifi/wifi_hal.c
@@ -4554,7 +4554,20 @@ INT wifi_getApWmmUapsdEnable(INT apIndex, BOOL *output)
INT wifi_setApWmmUapsdEnable(INT apIndex, BOOL enable)
{
//save config and apply instantly.
- return RETURN_ERR;
+ char config_file[MAX_BUF_SIZE] = {0};
+ struct params list;
+
+ WIFI_ENTRY_EXIT_DEBUG("Inside %s:%d\n",__func__, __LINE__);
+ list.name = "uapsd_advertisement_enabled";
+ list.value = enable?"1":"0";
+
+ sprintf(config_file,"%s%d.conf",CONFIG_PREFIX,apIndex);
+ wifi_hostapdWrite(config_file, &list, 1);
+ wifi_hostapdProcessUpdate(apIndex, &list, 1);
+ wifi_reloadAp(apIndex);
+ WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__);
+
+ return RETURN_OK;
}
// Sets the WMM ACK polity on the hardware. AckPolicy false means do not acknowledge, true means acknowledge
--
2.29.2