On 11/6/2024 6:26 AM, Kalle Valo wrote: > From: Sriram R <quic_srirrama@xxxxxxxxxxx> > > Currently mac80211's struct ieee80211_sta deflink is used to fetch any sta > related configurations in driver. With MLO multiple link sta's (struct > ieee80211_link_sta) are affiliated to an ML sta and corresponding link configs > are present in sta->link[]. Fetch link sta of corresponding link from ML sta > and use the same for configurations. > > Add ath12k_get_link_sta() helper to fetch ieee80211_link_sta from arsta. But as > ath12k_mac_op_sta_rc_update() is called in atomic context the helper cannot be > used and instead rcu_dereference() has to be called directly. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-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@xxxxxxxxxxx> > Co-developed-by: Rameshkumar Sundaram <quic_ramess@xxxxxxxxxxx> > Signed-off-by: Rameshkumar Sundaram <quic_ramess@xxxxxxxxxxx> > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>