blob: 01512c677e3b4cdf7aeea52248bb5b3f6103504c [file] [log] [blame]
developer0d67a392022-07-15 11:55:52 +08001From 0d63e3eeb35f082a51f03517ad2dcff2609c5a4f Mon Sep 17 00:00:00 2001
2From: "howard.hsu" <howard-yh.hsu@mediatek.com>
3Date: Wed, 23 Feb 2022 14:33:12 +0800
4Subject: [PATCH 03/18] [patch] HAL: implement wifi_reset()
5
6Change-Id: I8e969e2f167c96852c02374b463bf9567de40365
7---
8 source/wifi/wifi_hal.c | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c
12index 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--
272.29.2
28