From 13bbe4141464377d2fb09904c49a5615a5967c00 Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Fri, 14 Dec 2018 17:14:26 +0530 Subject: [PATCH] qcacld-3.0: Don't configure RA filtering when APF is supported RA filter is getting configured while APF is supported. Since APF implementation internally handles RA filtering, this is not needed. Therefore if APF is enabled in INI and target supports it, do not configure RA filtering. Don't configure RA filtering when APF is supported. Change-Id: Iabb75b46fce64b2c4a7a303848d7cb6b4714253b CRs-Fixed: 2352248 --- components/pmo/core/src/wlan_pmo_static_config.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/pmo/core/src/wlan_pmo_static_config.c b/components/pmo/core/src/wlan_pmo_static_config.c index fb52d45bfd0f..928b3eb5b2d8 100644 --- a/components/pmo/core/src/wlan_pmo_static_config.c +++ b/components/pmo/core/src/wlan_pmo_static_config.c @@ -352,7 +352,17 @@ void pmo_register_wow_default_patterns(struct wlan_objmgr_vdev *vdev) vdev_id); pmo_configure_wow_sta(vdev); psoc_ctx = vdev_ctx->pmo_psoc_ctx; - if (psoc_ctx && psoc_ctx->psoc_cfg.ra_ratelimit_enable) { + if (!psoc_ctx) { + pmo_err("PMO PSOC Context is NULL!"); + return; + } + + /* + * No need for configuring RA filter while APF is enabled, since + * APF internally handles RA filtering. + */ + if (psoc_ctx->psoc_cfg.ra_ratelimit_enable && + !pmo_intersect_apf(psoc_ctx)) { pmo_debug("Config STA RA wow pattern vdev_id %d", vdev_id); pmo_tgt_send_ra_filter_req(vdev);