qcacmn: Add AST type to distinquish bss on STA
When a BSS peer gets associated with vap configured in sta mode, the ast type associated with that entry should be different from that of regular static entries, The reason being bridge on root AP can pick up the mac address of AP VAP. Change-Id: Ie322a015d883e2712f41623f71ccbc255b99baf3
This commit is contained in:

committed by
nshrivas

parent
8a339e8a87
commit
273407908f
@@ -515,6 +515,8 @@ int dp_peer_add_ast(struct dp_soc *soc,
|
||||
case CDP_TXRX_AST_TYPE_STATIC:
|
||||
peer->self_ast_entry = ast_entry;
|
||||
ast_entry->type = CDP_TXRX_AST_TYPE_STATIC;
|
||||
if (peer->vdev->opmode == wlan_op_mode_sta)
|
||||
ast_entry->type = CDP_TXRX_AST_TYPE_STA_BSS;
|
||||
break;
|
||||
case CDP_TXRX_AST_TYPE_SELF:
|
||||
peer->self_ast_entry = ast_entry;
|
||||
@@ -549,7 +551,8 @@ int dp_peer_add_ast(struct dp_soc *soc,
|
||||
qdf_mem_copy(next_node_mac, peer->mac_addr.raw, 6);
|
||||
|
||||
if ((ast_entry->type != CDP_TXRX_AST_TYPE_STATIC) &&
|
||||
(ast_entry->type != CDP_TXRX_AST_TYPE_SELF)) {
|
||||
(ast_entry->type != CDP_TXRX_AST_TYPE_SELF) &&
|
||||
(ast_entry->type != CDP_TXRX_AST_TYPE_STA_BSS)) {
|
||||
if (QDF_STATUS_SUCCESS ==
|
||||
soc->cdp_soc.ol_ops->peer_add_wds_entry(
|
||||
peer->vdev->osif_vdev,
|
||||
@@ -630,7 +633,8 @@ int dp_peer_update_ast(struct dp_soc *soc, struct dp_peer *peer,
|
||||
struct dp_peer *old_peer;
|
||||
|
||||
if ((ast_entry->type == CDP_TXRX_AST_TYPE_STATIC) ||
|
||||
(ast_entry->type == CDP_TXRX_AST_TYPE_SELF))
|
||||
(ast_entry->type == CDP_TXRX_AST_TYPE_SELF) ||
|
||||
(ast_entry->type == CDP_TXRX_AST_TYPE_STA_BSS))
|
||||
return 0;
|
||||
|
||||
old_peer = ast_entry->peer;
|
||||
|
Reference in New Issue
Block a user