[BugFix][API-1651]add check dnsmasq status active & retry
Affected branch:MR3.0-xx && GSW3.0
Affected module:wifi
Is it addected on both ZXIC and MTK: only MTK
Self-test: YES
Doc Update: No
Change-Id: I97eab60734ff3a87313c9d90edb5bc3da5c28a95
diff --git a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
index 5323831..5b48a80 100755
--- a/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
+++ b/IC_src/mtk/lib/liblynq-wifi6/libwifi6.c
@@ -90,6 +90,7 @@
const char * start_stop_sta_script = "/etc/wg870/scripts/start_stop_sta.sh";
const char * start_stop_ap_script = "/etc/wg870/scripts/start_stop_ap.sh";
const char * sta_status_change_script = "/etc/wg870/scripts/sta_status_change.sh";
+const char * check_dnsmasq_dhcp_status = "/etc/wg870/scripts/check_dnsmasq_dhcp_status.sh";
static char s_ap_iterface_name[64] = {0};
@@ -523,6 +524,10 @@
return 1;
}
+static void check_dnsmasq_dhcp(void)
+{
+ system_call_v("%s", check_dnsmasq_dhcp_status);
+}
static inline void inner_notify_ap_msg(lynq_wifi_ap_status_s status)
{
pthread_mutex_lock(&s_ap_callback_mutex);
@@ -586,6 +591,7 @@
else if (strstr(msg_notify, "AP-STA-CONNECTED") != NULL)
{
inner_notify_ap_msg(LYNQ_WIFI_STATUS_CONNECT);
+ check_dnsmasq_dhcp();
if (g_gbw_enabled == 1 && g_gbw_mac != NULL)
{
RLOGD("conect %d, %s ,%s\n", g_gbw_enabled, g_gbw_mac, strstr(msg_notify, (const char*)g_gbw_mac));