]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ath11k: fix duplication peer create on same radio
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Wed, 8 Apr 2020 11:03:15 +0000 (16:33 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Apr 2020 08:07:48 +0000 (11:07 +0300)
commit1e744bf218b54d2e241aa6107484828d4f4a9fdc
tree34d14a6f4df18c6b86daed2502704a9753576ddf
parentc61a748370438ca1ae8389071664b2520f16820c
ath11k: fix duplication peer create on same radio

Add the pdev index information in the peer object to validate
the peer creation. Ignore the peer creation request, if the given
MAC address is already present in the peer list with same radio.
If we allow the peer creation in above scenario, FW assert will happen.
Above scenario occurred in two cases, where Multiple AP VAP created in
the same radio.

1. when testing tool sends association request to two AP with same
   MAC address
2. when a station do roaming from one AP VAP to another AP VAP.

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1586343795-21422-1-git-send-email-periyasa@codeaurora.org
drivers/net/wireless/ath/ath11k/peer.c
drivers/net/wireless/ath/ath11k/peer.h