소스 검색

[components][drivers][wlan] 修复一处加锁错误

tangyuxin 6 년 전
부모
커밋
e094371969
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/drivers/wlan/wlan_mgnt.c

+ 1 - 1
components/drivers/wlan/wlan_mgnt.c

@@ -1800,7 +1800,7 @@ rt_err_t rt_wlan_register_event_handler(rt_wlan_event_t event, rt_wlan_event_han
     }
     RT_WLAN_LOG_D("%s is run event:%d", __FUNCTION__, event);
 
-    MGNT_UNLOCK();
+    MGNT_LOCK();
     /* Registering Callbacks */
     level = rt_hw_interrupt_disable();
     event_tab[event].handler = handler;