qcacmn: do not store vdev_id in ast_entry

Remove the vdev_id feild from ast_entry structure

Change-Id: I0f79d13399212397c4c88aa5c39d422719a17137
This commit is contained in:
Chaithanya Garrepalli 2019-09-13 18:31:51 +05:30 • committed by nshrivas
commit 6bc8263586
3 changed files with 4 additions and 8 deletions

View file

@ -668,7 +668,7 @@ static bool dp_peer_get_ast_info_by_soc_wifi3
}
ast_entry_info->type = ast_entry->type;
ast_entry_info->pdev_id = ast_entry->pdev_id;
ast_entry_info->vdev_id = ast_entry->vdev_id;
ast_entry_info->vdev_id = ast_entry->peer->vdev->vdev_id;
ast_entry_info->peer_id = ast_entry->peer->peer_ids[0];
qdf_mem_copy(&ast_entry_info->peer_mac_addr[0],
&ast_entry->peer->mac_addr.raw[0],
@ -713,7 +713,7 @@ static bool dp_peer_get_ast_info_by_pdevid_wifi3
}
ast_entry_info->type = ast_entry->type;
ast_entry_info->pdev_id = ast_entry->pdev_id;
ast_entry_info->vdev_id = ast_entry->vdev_id;
ast_entry_info->vdev_id = ast_entry->peer->vdev->vdev_id;
ast_entry_info->peer_id = ast_entry->peer->peer_ids[0];
qdf_mem_copy(&ast_entry_info->peer_mac_addr[0],
&ast_entry->peer->mac_addr.raw[0],
@ -1051,8 +1051,7 @@ void dp_print_ast_stats(struct dp_soc *soc)
ase->ast_idx,
ase->ast_hash_value,
ase->delete_in_progress,
ase->pdev_id,
ase->vdev_id);
ase->pdev_id);
}
}
}

View file

@ -761,7 +761,6 @@ add_ast_entry:
qdf_mem_copy(&ast_entry->mac_addr.raw[0], mac_addr, QDF_MAC_ADDR_SIZE);
ast_entry->pdev_id = vdev->pdev->pdev_id;
ast_entry->vdev_id = vdev->vdev_id;
ast_entry->is_mapped = false;
ast_entry->delete_in_progress = false;
@ -941,7 +940,7 @@ int dp_peer_update_ast(struct dp_soc *soc, struct dp_peer *peer,
*/
if (qdf_unlikely(ast_entry->peer == peer) &&
(ast_entry->type == CDP_TXRX_AST_TYPE_WDS) &&
(ast_entry->vdev_id == peer->vdev->vdev_id) &&
(ast_entry->peer->vdev == peer->vdev) &&
(ast_entry->is_active))
return 0;
@ -951,7 +950,6 @@ int dp_peer_update_ast(struct dp_soc *soc, struct dp_peer *peer,
ast_entry->peer = peer;
ast_entry->type = CDP_TXRX_AST_TYPE_WDS;
ast_entry->pdev_id = peer->vdev->pdev->pdev_id;
ast_entry->vdev_id = peer->vdev->vdev_id;
ast_entry->is_active = TRUE;
TAILQ_INSERT_TAIL(&peer->ast_entry_list, ast_entry, ase_list_elem);

View file

@ -813,7 +813,6 @@ struct dp_ast_entry {
bool is_active;
bool is_mapped;
uint8_t pdev_id;
uint8_t vdev_id;
uint16_t ast_hash_value;
qdf_atomic_t ref_cnt;
enum cdp_txrx_ast_entry_type type;