developer | 0d67a39 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 1 | From 0d63e3eeb35f082a51f03517ad2dcff2609c5a4f Mon Sep 17 00:00:00 2001 |
| 2 | From: "howard.hsu" <howard-yh.hsu@mediatek.com> |
| 3 | Date: Wed, 23 Feb 2022 14:33:12 +0800 |
| 4 | Subject: [PATCH 03/18] [patch] HAL: implement wifi_reset() |
| 5 | |
| 6 | Change-Id: I8e969e2f167c96852c02374b463bf9567de40365 |
| 7 | --- |
| 8 | source/wifi/wifi_hal.c | 4 ++++ |
| 9 | 1 file changed, 4 insertions(+) |
| 10 | |
| 11 | diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c |
| 12 | index 19f7508c..be9d4f67 100644 |
| 13 | --- a/source/wifi/wifi_hal.c |
| 14 | +++ b/source/wifi/wifi_hal.c |
| 15 | @@ -848,6 +848,10 @@ INT wifi_init() //RDKB |
| 16 | INT wifi_reset() |
| 17 | { |
| 18 | //TODO: resets the wifi subsystem, deletes all APs |
| 19 | + system("systemctl stop hostapd.service"); |
| 20 | + sleep(2); |
| 21 | + system("systemctl start hostapd.service"); |
| 22 | + sleep(5); |
| 23 | return RETURN_OK; |
| 24 | } |
| 25 | |
| 26 | -- |
| 27 | 2.29.2 |
| 28 | |