Explorar o código

qca-wifi: Reset unassoc entries for every cfr_pdev_open

After every wifi up/down or load/unload, it is expected that
cfr enabled entries should be reset. Earlier, associated clients'
entires are cleared by FW. Unassociated entries are maintained by
host and were not cleared. This change clears them properly at
cfr_pdev_open level

Change-Id: I2dd7ce861901ccca72bc987c2f91677a481d401e
CRs-Fixed: 2531961
Abhiram Jogadenu %!s(int64=5) %!d(string=hai) anos
pai
achega
f4a7a904f8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      target_if/cfr/src/target_if_cfr.c

+ 4 - 0
target_if/cfr/src/target_if_cfr.c

@@ -177,6 +177,10 @@ int target_if_cfr_init_pdev(struct wlan_objmgr_psoc *psoc,
 	if (pa == NULL)
 		return QDF_STATUS_E_FAILURE;
 
+	/* Reset unassociated entries for every init */
+	qdf_mem_zero(&pa->unassoc_pool[0], MAX_CFR_ENABLED_CLIENTS *
+		     sizeof(struct unassoc_pool_entry));
+
 	cfr_sc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
 						       WLAN_UMAC_COMP_CFR);