Skip to content

Commit

Permalink
BugID:19897687: Change the code to stop monitor for mk3080 (changes p…
Browse files Browse the repository at this point in the history
…ulled from 618 branch).

Change-Id: I7d1f15afc7c398459cc5916247bc45ef0f9ecf6f
  • Loading branch information
gofortime authored and jun-ping committed Apr 16, 2019
1 parent f2db439 commit fd5a191
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions platform/mcu/rtl8710bn/hal/wifi_port.c
Expand Up @@ -548,21 +548,30 @@ static void start_monitor(hal_wifi_module_t *m)
return;
}

void wifi_stop_monitor_task(void *arg)
{
DBG_8195A("stop_monitor task create\r\n");
wifi_set_promisc(RTW_PROMISC_DISABLE, NULL, 0);
#if CONFIG_AUTO_RECONNECT
wifi_set_autoreconnect(RTW_AUTORECONNECT_INFINITE);
#endif
aos_task_exit(0);
}

static void stop_monitor(hal_wifi_module_t *m)
{
DBG_8195A("stop_monitor\r\n");

//wifi_set_promisc(RTW_PROMISC_DISABLE, NULL, 0);
#if CONFIG_AUTO_RECONNECT
//wifi_set_autoreconnect(RTW_AUTORECONNECT_INFINITE);
#endif
aos_task_new("wifi", wifi_stop_monitor_task, NULL, 1024);
g_promisc_callback = NULL;

return;
}


static void register_monitor_cb(hal_wifi_module_t *m, monitor_data_cb_t fn)
{
g_promisc_callback = fn;
g_promisc_callback = fn;
DBG_8195A("register_monitor_cb, fn 0x%x\r\n", fn);
return;
}
Expand Down

0 comments on commit fd5a191

Please sign in to comment.