qcacmn: Fix peer authentication for wds client

Fix the peer authentication for wds client, in SDX_WKK
wds client needs to get authenticate when packets receive
from exception path as wds client is not directly associated,
authentication is done by verifying from ast table

Change-Id: I93051d67fc3d5be0af9242e6579f44883b3f757d
CRs-Fixed: 3534370
此提交包含在:
Amrit Sahai
2023-06-16 17:56:04 +05:30
提交者 Rahul Choudhary
父節點 82d71c7059
當前提交 5aac5cb621
共有 2 個檔案被更改,包括 65 行新增6 行删除

查看文件

@@ -760,6 +760,28 @@ dp_peer_send_wds_disconnect(struct dp_soc *soc, struct dp_peer *peer)
}
#endif
/**
* dp_peer_check_ast_offload() - check ast offload support is enable or not
* @soc: soc handle
*
* Return: false in case of IPA and true/false in IPQ case
*
*/
#if defined(IPA_OFFLOAD) && defined(QCA_WIFI_QCN9224)
static inline bool dp_peer_check_ast_offload(struct dp_soc *soc)
{
return false;
}
#else
static inline bool dp_peer_check_ast_offload(struct dp_soc *soc)
{
if (soc->ast_offload_support)
return true;
return false;
}
#endif
/**
* dp_peer_get_ast_info_by_soc_wifi3() - search the soc AST hash table
* and return ast entry information
@@ -781,7 +803,7 @@ static bool dp_peer_get_ast_info_by_soc_wifi3
struct dp_soc *soc = (struct dp_soc *)soc_hdl;
struct dp_peer *peer = NULL;
if (soc->ast_offload_support)
if (dp_peer_check_ast_offload(soc))
return false;
qdf_spin_lock_bh(&soc->ast_lock);