소스 검색

qcacld-3.0: Rectify sanity check for IE whitelisting bitmaps

Currently the sanity check present for the IE whitelisting bitmaps is
not proper. Instead of allowing the correct bitmaps to be used, it
prevents any of the bitmap to be used if a single one is zero.

Rectify the above check to allow the bitmaps to be used if atleast one
of them has a non zero value.

Change-Id: I496d6c6a1bda8c11d9bd42ea41a79ab04b539357
CRs-Fixed: 2647608
Sourav Mohapatra 5 년 전
부모
커밋
18bed7536f
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      components/fw_offload/core/src/wlan_fw_offload_main.c

+ 4 - 4
components/fw_offload/core/src/wlan_fw_offload_main.c

@@ -285,10 +285,10 @@ next_token:
 static bool fwol_validate_ie_bitmaps(struct wlan_objmgr_psoc *psoc,
 				     struct wlan_fwol_ie_whitelist *whitelist)
 {
-	if (!(whitelist->ie_bitmap_0 && whitelist->ie_bitmap_1 &&
-	      whitelist->ie_bitmap_2 && whitelist->ie_bitmap_3 &&
-	      whitelist->ie_bitmap_4 && whitelist->ie_bitmap_5 &&
-	      whitelist->ie_bitmap_6 && whitelist->ie_bitmap_7))
+	if (!(whitelist->ie_bitmap_0 || whitelist->ie_bitmap_1 ||
+	      whitelist->ie_bitmap_2 || whitelist->ie_bitmap_3 ||
+	      whitelist->ie_bitmap_4 || whitelist->ie_bitmap_5 ||
+	      whitelist->ie_bitmap_6 || whitelist->ie_bitmap_7))
 		return false;
 
 	/*