[PATCH] BugID:20688421:Set all wifi task to be with same priority
@@ -33,7 +33,7 @@ r_u32 rda_hut_dump = 0;
#define RECONN_TIMES 3
#define DAEMON_MAILQ_SIZE 10
-#define AOS_MACLIB_APP_PRI 16
+#define RDA_WIFI_TASK_PRI 16
static bool rda_lwip_tcpip_init_flag = false;
static sys_sem_t rda_lwip_tcpip_inited;
@@ -646,9 +646,9 @@ r_s32 rda59xx_wifi_init()
//tcpip_init(NULL, NULL);
//maclib_init();
if(thread_init_flag == 0){
- rda_thread_new("maclib_thread", maclib_task, NULL, 512*8, AOS_MACLIB_APP_PRI);
- rda_thread_new("wland_thread", rda59xx_wland_task, NULL, 512*8, AOS_DEFAULT_APP_PRI);
- rda_thread_new("daemon_thread", rda59xx_daemon, NULL, 512*5, AOS_DEFAULT_APP_PRI);
+ rda_thread_new("maclib_thread", maclib_task, NULL, 512*8, RDA_WIFI_TASK_PRI);
+ rda_thread_new("wland_thread", rda59xx_wland_task, NULL, 512*8, RDA_WIFI_TASK_PRI);
+ rda_thread_new("daemon_thread", rda59xx_daemon, NULL, 512*5, RDA_WIFI_TASK_PRI);
/* Allow the PHY task to detect the initial link state and set up the proper flags */
rda_msleep(100);//wait for maclib_task running
thread_init_flag = 1;
