Browse Source

qcacmn: Use bh spinlock for CM

Use bh spinlock for CM

Change-Id: I28a0de73f98e386d9db9e5d63a51e5aee2c12b0e
Himanshu Batra 4 years ago
parent
commit
f994a48ab9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      umac/mlme/connection_mgr/core/src/wlan_cm_sm.h

+ 2 - 2
umac/mlme/connection_mgr/core/src/wlan_cm_sm.h

@@ -171,7 +171,7 @@ cm_lock_destroy(struct cnx_mgr *cm_ctx)
  */
  */
 static inline void cm_lock_acquire(struct cnx_mgr *cm_ctx)
 static inline void cm_lock_acquire(struct cnx_mgr *cm_ctx)
 {
 {
-	qdf_spinlock_acquire(&cm_ctx->sm.cm_sm_lock);
+	qdf_spin_lock_bh(&cm_ctx->sm.cm_sm_lock);
 }
 }
 
 
 /**
 /**
@@ -184,7 +184,7 @@ static inline void cm_lock_acquire(struct cnx_mgr *cm_ctx)
  */
  */
 static inline void cm_lock_release(struct cnx_mgr *cm_ctx)
 static inline void cm_lock_release(struct cnx_mgr *cm_ctx)
 {
 {
-	qdf_spinlock_release(&cm_ctx->sm.cm_sm_lock);
+	qdf_spin_unlock_bh(&cm_ctx->sm.cm_sm_lock);
 }
 }
 #else
 #else
 static inline void
 static inline void