Re: [PATCH 2/2] wifi: ath12k: handle ath12k_mac_ieee80211_sta_bw_to_wmi() for link sta

From: Aditya Kumar Singh
Date: Tue Jan 14 2025 - 23:53:02 EST


On 1/15/25 00:09, Kalle Valo wrote:
Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx> writes:

Currently ath12k_mac_ieee80211_sta_bw_to_wmi() handles the bandwidth from
sta's deflink member. This works only for non-ML station. Now that MLO
support is there, extend this function to use link sta instead of deflink.

Additionally, in ath12k_mac_handle_link_sta_state(), the link sta structure
is not accessible, making it difficult to fetch the bandwidth there.
However, ath12k_mac_station_assoc() does reference the link sta structure.
Therefore, move the initial assignment of the arsta bandwidth member to
ath12k_mac_station_assoc().

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx>

So how does this help in practice? Ie. what are the user visible
symptoms this patch is fixing?


For MLO station, any bandwidth change post initial association, the data will not go in the latest bandwidth of that link. Since to firmware, only deflink's bandwidth will always be configured.

For non-ML stations, no affect.

--
Aditya