blob: bbab9ce53f852fc2532ef4a19e34237290b583a9 [file] [log] [blame]
From c838f621e562f77ef9e659c317951540410a0741 Mon Sep 17 00:00:00 2001
From: "howard.hsu" <howard-yh.hsu@mediatek.com>
Date: Wed, 2 Mar 2022 15:43:20 +0800
Subject: [PATCH 05/18] [patch] HAL: implement wifi_down()
Change-Id: I578a2afd5aa6c9b7fe2ad3c114d62bbfe800ac1c
---
source/wifi/wifi_hal.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
index ed26dbff..187de56c 100644
--- a/source/wifi/wifi_hal.c
+++ b/source/wifi/wifi_hal.c
@@ -877,6 +877,8 @@ INT wifi_reset()
INT wifi_down()
{
//TODO: turns off transmit power for the entire Wifi subsystem, for all radios
+ system("systemctl stop hostapd.service");
+ sleep(2);
return RETURN_OK;
}
--
2.29.2