| 79 | } |
| 80 | |
| 81 | int rt_wlan_workqueue_init(void) |
| 82 | { |
| 83 | static rt_int8_t _init_flag = 0; |
| 84 | |
| 85 | if (_init_flag == 0) |
| 86 | { |
| 87 | wlan_workqueue = rt_workqueue_create(RT_WLAN_WORKQUEUE_THREAD_NAME, RT_WLAN_WORKQUEUE_THREAD_SIZE, |
| 88 | RT_WLAN_WORKQUEUE_THREAD_PRIO); |
| 89 | if (wlan_workqueue == RT_NULL) |
| 90 | { |
| 91 | LOG_E("F:%s L:%d wlan work queue create failed", __FUNCTION__, __LINE__); |
| 92 | return -1; |
| 93 | } |
| 94 | _init_flag = 1; |
| 95 | return 0; |
| 96 | } |
| 97 | return 0; |
| 98 | } |
| 99 | INIT_PREV_EXPORT(rt_wlan_workqueue_init); |
| 100 | |
| 101 | #endif |
nothing calls this directly
no test coverage detected