developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | From c838f621e562f77ef9e659c317951540410a0741 Mon Sep 17 00:00:00 2001 |
| 2 | From: "howard.hsu" <howard-yh.hsu@mediatek.com> |
| 3 | Date: Wed, 2 Mar 2022 15:43:20 +0800 |
| 4 | Subject: [PATCH 05/18] [patch] HAL: implement wifi_down() |
| 5 | |
| 6 | Change-Id: I578a2afd5aa6c9b7fe2ad3c114d62bbfe800ac1c |
| 7 | --- |
| 8 | source/wifi/wifi_hal.c | 2 ++ |
| 9 | 1 file changed, 2 insertions(+) |
| 10 | |
| 11 | diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c |
| 12 | index ed26dbff..187de56c 100644 |
| 13 | --- a/source/wifi/wifi_hal.c |
| 14 | +++ b/source/wifi/wifi_hal.c |
| 15 | @@ -877,6 +877,8 @@ INT wifi_reset() |
| 16 | INT wifi_down() |
| 17 | { |
| 18 | //TODO: turns off transmit power for the entire Wifi subsystem, for all radios |
| 19 | + system("systemctl stop hostapd.service"); |
| 20 | + sleep(2); |
| 21 | return RETURN_OK; |
| 22 | } |
| 23 | |
| 24 | -- |
| 25 | 2.29.2 |
| 26 | |