wifi: ath12k: Cache vdev configs before vdev create
authorSriram R <quic_srirrama@quicinc.com>
Tue, 9 Apr 2024 11:49:34 +0000 (14:49 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 10 Apr 2024 14:12:15 +0000 (17:12 +0300)
commitb5068bc9180d06a5ac242b0f9263047c14f86211
treedb91265135249ea36097287ccc625832ae652942
parent0148e40c9f0ace0a7eaeff30a86b45090b50733f
wifi: ath12k: Cache vdev configs before vdev create

Since the vdev create for a corresponding vif is deferred
until a channel is assigned, cache the information which
are received through mac80211 ops between add_interface()
and assign_vif_chanctx() and set them once the vdev is
created on one of the ath12k radios as the channel gets
assigned via assign_vif_chanctx().

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Co-developed-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240405194519.1337906-8-quic_ramess@quicinc.com
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/mac.c