Browse Source

qcacld-3.0: Enable NS and ARP patterns for active offload disabled

Currently, if active offload is disabled and ARP offload,
NS offload is enabled from ini host doesn't configure 
NS and ARP patterns to fw. This results in frame drop when
device is in RTPM and NS, ARP frame is received as fw
doesn't send WOW wakeup to host.

To address this issue, configure ARP, NS pattern to fw if
active offload is disabled.

Change-Id: Iad54263f7a8a52f0a9ca3c56f9a2e3ccb19ea6c0
CRs-Fixed: 3468310
Asutosh Mohapatra 1 year ago
parent
commit
7447f04d4a
1 changed files with 7 additions and 4 deletions
  1. 7 4
      components/pmo/core/src/wlan_pmo_static_config.c

+ 7 - 4
components/pmo/core/src/wlan_pmo_static_config.c

@@ -292,10 +292,12 @@ static QDF_STATUS pmo_configure_wow_sta(struct wlan_objmgr_vdev *vdev)
 
 	/*
 	 * when arp offload or ns offloaded is disabled
-	 * from ini file, configure broad cast arp pattern
-	 * to fw, so that host can wake up
+	 * or active offload is disabled from ini file,
+	 * configure broad cast arp pattern to fw, so
+	 * that host can wake up
 	 */
-	if (!vdev_ctx->pmo_psoc_ctx->psoc_cfg.arp_offload_enable) {
+	if (!vdev_ctx->pmo_psoc_ctx->psoc_cfg.arp_offload_enable ||
+	    !vdev_ctx->pmo_psoc_ctx->psoc_cfg.active_mode_offload) {
 		/* Setup all ARP pkt pattern */
 		pmo_debug("ARP offload is disabled in INI enable WoW for ARP");
 		ret = pmo_tgt_send_wow_patterns_to_fw(vdev,
@@ -309,7 +311,8 @@ static QDF_STATUS pmo_configure_wow_sta(struct wlan_objmgr_vdev *vdev)
 		}
 	}
 	/* for NS or NDP offload packets */
-	if (!vdev_ctx->pmo_psoc_ctx->psoc_cfg.ns_offload_enable_static) {
+	if (!vdev_ctx->pmo_psoc_ctx->psoc_cfg.ns_offload_enable_static ||
+	    !vdev_ctx->pmo_psoc_ctx->psoc_cfg.active_mode_offload) {
 		/* Setup all NS pkt pattern */
 		pmo_debug("NS offload is disabled in INI enable WoW for NS");
 		ret = pmo_tgt_send_wow_patterns_to_fw(vdev,