wifi: ath11k: remove invalid peer create logic
authorBaochen Qiang <quic_bqiang@quicinc.com>
Tue, 23 Jan 2024 02:56:57 +0000 (10:56 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 25 Jan 2024 16:44:01 +0000 (18:44 +0200)
commit171203f0c4093dfe7e73ceb6c38033595f329f56
tree8290a4fc462ca3d22bf8521fc7db9910dc83e6fe
parentdbd73acb22d85873ecca51fdb33a0e50d11e8021
wifi: ath11k: remove invalid peer create logic

In ath11k_mac_op_assign_vif_chanctx(), there is a logic to
create peer using ar->mac_addr for a STA vdev. This is invalid
because a STA vdev should have a peer created using AP's
MAC address. Besides, if we run into that logic, it means a peer
has already been created earlier, we should not create it again.
So remove it.

This is found during code review.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240123025700.2929-2-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c