소스 검색

qcacmn: Change return value to true if cm ctx is NULL

In case if cm ctx is NULL, the disconnect state check API is returning
false which makes the caller assume vdev is not disconnected.
Hence, change the return value to true in this case.

Change-Id: Iadd52d94d6f561974101aa245ddbfdb1eb301b06
CRs-Fixed: 3246161
Himanshu Batra 3 년 전
부모
커밋
52cd69199f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      umac/mlme/connection_mgr/core/src/wlan_cm_util.c

+ 1 - 1
umac/mlme/connection_mgr/core/src/wlan_cm_util.c

@@ -1088,7 +1088,7 @@ bool cm_is_vdev_disconnected(struct wlan_objmgr_vdev *vdev)
 
 	cm_ctx = cm_get_cm_ctx(vdev);
 	if (!cm_ctx)
-		return false;
+		return true;
 
 	state = cm_get_state(cm_ctx);