Quellcode durchsuchen

qcacmn: do not send AST update until peer map is received

For newly created AST entry do not send AST update until
we get the MAP event for create

Change-Id: I840ef62825d4537439a4020a8a5a5547b575a664
CRs-fixed: 2468833
Chaithanya Garrepalli vor 5 Jahren
Ursprung
Commit
1a39da4d04
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      dp/wifi3.0/dp_peer.c

+ 7 - 1
dp/wifi3.0/dp_peer.c

@@ -900,7 +900,13 @@ int dp_peer_update_ast(struct dp_soc *soc, struct dp_peer *peer,
 		  peer->vdev->vdev_id, flags, ast_entry->mac_addr.raw,
 		  peer->mac_addr.raw);
 
-	if (ast_entry->delete_in_progress)
+	/* Do not send AST update in below cases
+	 *  1) Ast entry delete has already triggered
+	 *  2) Peer delete is already triggered
+	 *  3) We did not get the HTT map for create event
+	 */
+	if (ast_entry->delete_in_progress || peer->delete_in_progress ||
+	    !ast_entry->is_mapped)
 		return ret;
 
 	if ((ast_entry->type == CDP_TXRX_AST_TYPE_STATIC) ||