diff --git a/components/pmo/core/src/wlan_pmo_apf.c b/components/pmo/core/src/wlan_pmo_apf.c index bf67e3f865..8acc3c11f9 100644 --- a/components/pmo/core/src/wlan_pmo_apf.c +++ b/components/pmo/core/src/wlan_pmo_apf.c @@ -31,12 +31,12 @@ uint32_t pmo_get_apf_instruction_size(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool enabled; + bool apf = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { - enabled = pmo_intersect_apf(psoc_ctx); + apf = pmo_intersect_apf(psoc_ctx); } - return enabled ? PMO_APF_SIZE_AUTO : PMO_APF_SIZE_DISABLE; + return apf ? PMO_APF_SIZE_AUTO : PMO_APF_SIZE_DISABLE; } diff --git a/components/pmo/core/src/wlan_pmo_pkt_filter.c b/components/pmo/core/src/wlan_pmo_pkt_filter.c index 8aaa32e246..62268104a8 100644 --- a/components/pmo/core/src/wlan_pmo_pkt_filter.c +++ b/components/pmo/core/src/wlan_pmo_pkt_filter.c @@ -30,13 +30,13 @@ uint8_t pmo_get_num_packet_filters(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool enabled; + bool pkt_filter = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { - enabled = pmo_intersect_packet_filter(psoc_ctx); + pkt_filter = pmo_intersect_packet_filter(psoc_ctx); } - return enabled ? PMO_PKT_FILTERS_DEFAULT : PMO_PKT_FILTERS_DISABLED; + return pkt_filter ? PMO_PKT_FILTERS_DEFAULT : PMO_PKT_FILTERS_DISABLED; } QDF_STATUS pmo_core_set_pkt_filter(struct wlan_objmgr_psoc *psoc, diff --git a/components/pmo/core/src/wlan_pmo_wow.c b/components/pmo/core/src/wlan_pmo_wow.c index e1d2710328..4d589dd1c3 100644 --- a/components/pmo/core/src/wlan_pmo_wow.c +++ b/components/pmo/core/src/wlan_pmo_wow.c @@ -423,9 +423,9 @@ void pmo_set_sap_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size) uint8_t pmo_get_num_wow_filters(struct wlan_objmgr_psoc *psoc) { struct pmo_psoc_priv_obj *psoc_ctx; - bool apf; - bool arp_ns; - bool pkt_filter; + bool apf = false; + bool arp_ns = false; + bool pkt_filter = false; pmo_psoc_with_ctx(psoc, psoc_ctx) { apf = pmo_intersect_apf(psoc_ctx);