Skip to content

Commit 8e28732

Browse files
authored
Merge pull request #2366 from enkiller/master
[components][drivers][wlan] 修复一处加锁错误
2 parents 4723d5d + e094371 commit 8e28732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/wlan/wlan_mgnt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ rt_err_t rt_wlan_register_event_handler(rt_wlan_event_t event, rt_wlan_event_han
18001800
}
18011801
RT_WLAN_LOG_D("%s is run event:%d", __FUNCTION__, event);
18021802

1803-
MGNT_UNLOCK();
1803+
MGNT_LOCK();
18041804
/* Registering Callbacks */
18051805
level = rt_hw_interrupt_disable();
18061806
event_tab[event].handler = handler;

0 commit comments

Comments
 (0)