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
2020-04-02 21:15:47 +05:30
提交者 nshrivas
父節點 9a17be030e
當前提交 18bed7536f

查看文件

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