Selaa lähdekoodia

qcacmn: Add support for host learning of AST on BE platforms

Add change to support learning of AST entries on host
for BE platforms(Waikiki) based on peer map and unmap event received
from FW.

Change-Id: I58aa6a18ca69d5ffc6fbcf9c18723adb39647950
CRs-Fixed: 3237934
Santosh Anbu 3 vuotta sitten
vanhempi
sitoutus
5bddbff670
2 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 10 0
      dp/wifi3.0/be/dp_be.c
  2. 1 0
      dp/wifi3.0/dp_types.h

+ 10 - 0
dp/wifi3.0/be/dp_be.c

@@ -1678,10 +1678,20 @@ dp_soc_max_peer_id_set(struct dp_soc *soc)
 
 static void dp_peer_map_detach_be(struct dp_soc *soc)
 {
+	if (soc->host_ast_db_enable)
+		dp_peer_ast_hash_detach(soc);
 }
 
 static QDF_STATUS dp_peer_map_attach_be(struct dp_soc *soc)
 {
+	QDF_STATUS status;
+
+	if (soc->host_ast_db_enable) {
+		status = dp_peer_ast_hash_attach(soc);
+		if (QDF_IS_STATUS_ERROR(status))
+			return status;
+	}
+
 	dp_soc_max_peer_id_set(soc);
 
 	return QDF_STATUS_SUCCESS;

+ 1 - 0
dp/wifi3.0/dp_types.h

@@ -2227,6 +2227,7 @@ struct dp_soc {
 	uint8_t wds_ast_aging_timer_cnt;
 	bool pending_ageout;
 	bool ast_offload_support;
+	bool host_ast_db_enable;
 	uint32_t max_ast_ageout_count;
 	uint8_t eapol_over_control_port;