diff options
| author | Meco Man <[email protected]> | 2021-11-17 15:57:15 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-17 15:57:15 -0500 |
| commit | df9a23c534f57e6f5b06acfbe6db8b636894e0ad (patch) | |
| tree | a59dee4012835d6a8d1d1b4566b4a49a719798bd /components/drivers/wlan | |
| parent | fbca0c7f7d195eb8901902c4f94f4bab4395db61 (diff) | |
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
Diffstat (limited to 'components/drivers/wlan')
| -rw-r--r-- | components/drivers/wlan/wlan_cfg.c | 2 | ||||
| -rw-r--r-- | components/drivers/wlan/wlan_dev.c | 2 | ||||
| -rw-r--r-- | components/drivers/wlan/wlan_mgnt.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/components/drivers/wlan/wlan_cfg.c b/components/drivers/wlan/wlan_cfg.c index 0befe6e7da..24a37e0b72 100644 --- a/components/drivers/wlan/wlan_cfg.c +++ b/components/drivers/wlan/wlan_cfg.c @@ -84,7 +84,7 @@ void rt_wlan_cfg_init(void) rt_memset(cfg_cache, 0, sizeof(struct rt_wlan_cfg_des)); } /* init mutex lock */ - rt_mutex_init(&cfg_mutex, "wlan_cfg", RT_IPC_FLAG_FIFO); + rt_mutex_init(&cfg_mutex, "wlan_cfg", RT_IPC_FLAG_PRIO); } } diff --git a/components/drivers/wlan/wlan_dev.c b/components/drivers/wlan/wlan_dev.c index 4db8d5e43d..49c39f1fd1 100644 --- a/components/drivers/wlan/wlan_dev.c +++ b/components/drivers/wlan/wlan_dev.c @@ -650,7 +650,7 @@ static rt_err_t _rt_wlan_dev_init(rt_device_t dev) struct rt_wlan_device *wlan = (struct rt_wlan_device *)dev; rt_err_t result = RT_EOK; - rt_mutex_init(&wlan->lock, "wlan_dev", RT_IPC_FLAG_FIFO); + rt_mutex_init(&wlan->lock, "wlan_dev", RT_IPC_FLAG_PRIO); if (wlan->ops->wlan_init) result = wlan->ops->wlan_init(wlan); diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/wlan_mgnt.c index 6abac5691c..fd16469028 100644 --- a/components/drivers/wlan/wlan_mgnt.c +++ b/components/drivers/wlan/wlan_mgnt.c @@ -2011,10 +2011,10 @@ int rt_wlan_init(void) rt_memset(&_ap_mgnt, 0, sizeof(struct rt_wlan_mgnt_des)); rt_memset(&scan_result, 0, sizeof(struct rt_wlan_scan_result)); rt_memset(&sta_info, 0, sizeof(struct rt_wlan_sta_des)); - rt_mutex_init(&mgnt_mutex, "mgnt", RT_IPC_FLAG_FIFO); - rt_mutex_init(&scan_result_mutex, "scan", RT_IPC_FLAG_FIFO); - rt_mutex_init(&sta_info_mutex, "sta", RT_IPC_FLAG_FIFO); - rt_mutex_init(&complete_mutex, "complete", RT_IPC_FLAG_FIFO); + rt_mutex_init(&mgnt_mutex, "mgnt", RT_IPC_FLAG_PRIO); + rt_mutex_init(&scan_result_mutex, "scan", RT_IPC_FLAG_PRIO); + rt_mutex_init(&sta_info_mutex, "sta", RT_IPC_FLAG_PRIO); + rt_mutex_init(&complete_mutex, "complete", RT_IPC_FLAG_PRIO); #ifdef RT_WLAN_AUTO_CONNECT_ENABLE rt_timer_init(&reconnect_time, "wifi_tim", rt_wlan_cyclic_check, RT_NULL, rt_tick_from_millisecond(AUTO_CONNECTION_PERIOD_MS), |
