qcacmn: Fix AST index for STA Vdev overwritten issue
For KIWI, STA AST index lookup search is enabled and remote AP peer's AST index will be stored in STA Vdev if receive AP peer htt peer map msg. but if STA TDLS connection happened, host will receive another peer map msg for remote TDLS STA peer, this remote TDLS STA peer's AST index will overwrite original AP's AST index. if TDLS disconnected, STA vdev will still use remote TDLS STA's AST index for TX, then TX to AP might fail. Add is_tdls_peer flag in dp peer and configure this value by cdp_peer_set_peer_as_tdls() from control path right after TDLS peer created. if is_tdls_peer is true, do not store this TDLS peer's AST index to STA Vdev, skip bss_peer flag setting as well. Change-Id: I7b5df1caca6a0b5305a6e867cd92099b5f6a4890 CRs-Fixed: 3151035
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
5d0d6db673
کامیت
691ffe9f3f
@@ -1929,6 +1929,17 @@ int dp_get_peer_state(struct cdp_soc_t *soc, uint8_t vdev_id,
|
||||
void dp_local_peer_id_pool_init(struct dp_pdev *pdev);
|
||||
void dp_local_peer_id_alloc(struct dp_pdev *pdev, struct dp_peer *peer);
|
||||
void dp_local_peer_id_free(struct dp_pdev *pdev, struct dp_peer *peer);
|
||||
/**
|
||||
* dp_set_peer_as_tdls_peer() - set tdls peer flag to peer
|
||||
* @soc_hdl: datapath soc handle
|
||||
* @vdev_id: vdev_id
|
||||
* @peer_mac: peer mac addr
|
||||
* @val: tdls peer flag
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
void dp_set_peer_as_tdls_peer(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
|
||||
uint8_t *peer_mac, bool val);
|
||||
#else
|
||||
/**
|
||||
* dp_get_vdevid() - Get virtual interface id which peer registered
|
||||
@@ -1960,7 +1971,14 @@ static inline
|
||||
void dp_local_peer_id_free(struct dp_pdev *pdev, struct dp_peer *peer)
|
||||
{
|
||||
}
|
||||
|
||||
static inline
|
||||
void dp_set_peer_as_tdls_peer(struct cdp_soc_t *soc_hdl, uint8_t vdev_id,
|
||||
uint8_t *peer_mac, bool val)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
int dp_addba_resp_tx_completion_wifi3(struct cdp_soc_t *cdp_soc,
|
||||
uint8_t *peer_mac, uint16_t vdev_id,
|
||||
uint8_t tid,
|
||||
|
مرجع در شماره جدید
Block a user