소스 검색

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 5 년 전
부모
커밋
f4a7a904f8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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);