qcacmn: Fix use after free of AST entry

In WDS learn API add changes to avoid accessing the
AST entry which is deleted

Change-Id: I9f0152e72ec99fe0ae6029d5ddbc125f3b1e9d5a
CRs-Fixed: 3453018
This commit is contained in:
Chaithanya Garrepalli
2023-03-31 20:01:37 +05:30
gecommit door Madan Koyyalamudi
bovenliggende 1192e50c58
commit 9a52f07701

Bestand weergeven

@@ -341,6 +341,7 @@ dp_rx_wds_add_or_update_ast(struct dp_soc *soc,
* radio
*/
dp_peer_del_ast(soc, ast);
return;
} else {
/* this case is when a STA roams from one
* reapter to another repeater, but inside
@@ -353,6 +354,7 @@ dp_rx_wds_add_or_update_ast(struct dp_soc *soc,
if (soc->ast_override_support &&
(ta_peer->vdev->opmode == wlan_op_mode_sta)) {
dp_peer_del_ast(soc, ast);
return;
} else {
ta_base_peer =
dp_peer_get_ref_by_id(soc,