From 18bed7536f3fe5a59284290514f664feed918328 Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Thu, 2 Apr 2020 21:15:47 +0530 Subject: [PATCH] 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 --- components/fw_offload/core/src/wlan_fw_offload_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/fw_offload/core/src/wlan_fw_offload_main.c b/components/fw_offload/core/src/wlan_fw_offload_main.c index 4ef20f4aab..8bacbed78e 100644 --- a/components/fw_offload/core/src/wlan_fw_offload_main.c +++ b/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; /*