qcacmn: Add AST entry type check

There will not be any AST entry
for HMWDS Seconday

Hence add check for the same in
del_peer_del_ast to avoid deletion
for such entries

Change-Id: Ia96856d93531200e27e0d0a97b80ed6ec1baa42b
This commit is contained in:
phadiman 2018-10-18 16:08:40 +05:30 • committed by nshrivas
commit 6f1af61798
3 changed files with 6 additions and 5 deletions

View file

@ -928,7 +928,8 @@ static void dp_print_ast_stats(struct dp_soc *soc)
" ast_idx = %d"
" ast_hash = %d"
" pdev_id = %d"
" vdev_id = %d",
" vdev_id = %d"
" wmi_sent = %d",
++num_entries,
ase->mac_addr.raw,
ase->peer->mac_addr.raw,
@ -939,7 +940,8 @@ static void dp_print_ast_stats(struct dp_soc *soc)
ase->ast_idx,
ase->ast_hash_value,
ase->pdev_id,
ase->vdev_id);
ase->vdev_id,
ase->wmi_sent);
}
}
}

View file

@ -646,7 +646,8 @@ void dp_peer_del_ast(struct dp_soc *soc, struct dp_ast_entry *ast_entry)
{
struct dp_peer *peer = ast_entry->peer;
if (ast_entry->next_hop) {
if (ast_entry->next_hop &&
ast_entry->type != CDP_TXRX_AST_TYPE_WDS_HM_SEC) {
dp_peer_ast_send_wds_del(soc, ast_entry);
} else {
/*

View file

@ -673,10 +673,8 @@ struct dp_ast_entry {
uint16_t ast_hash_value;
qdf_atomic_t ref_cnt;
enum cdp_txrx_ast_entry_type type;
#ifdef AST_HKV1_WORKAROUND
bool wmi_sent;
void *cp_ctx;
#endif
TAILQ_ENTRY(dp_ast_entry) ase_list_elem;
TAILQ_ENTRY(dp_ast_entry) hash_list_elem;
};