[PATCH ath-next v2 0/2] wifi: ath12k: remove duplicated STA state from link peers
Aishwarya R
aishwarya.r at oss.qualcomm.com
Sun Oct 11 21:01:55 PDT 2026
On 9/25/2026 10:40 AM, Aishwarya R wrote:
> ath12k_dp_link_peer currently carries state that is not inherently
> link-specific. Both the station pointer and authorization state are
> shared across the links belonging to the same logical peer or station,
> yet are stored separately in each link peer.
>
> This series moves ownership of these fields to structures matching their
> actual scope:
>
> * Store the station pointer only in ath12k_dp_peer.
> * Store authorization state only in ath12k_sta.
>
> Doing so eliminates duplicated state, reduces bookkeeping required when
> the state changes, and makes the ownership model clearer.
>
> Patch 1 removes the duplicate sta pointer from ath12k_dp_link_peer and
> updates users to retrieve it through ath12k_dp_peer.
>
> Patch 2 moves is_authorized from ath12k_dp_link_peer to ath12k_sta and
> updates authorization handling accordingly.
>
> ---
> Changes in v2:
> - Rebased the changes
> ---
> Aishwarya R (2):
> wifi: ath12k: store station pointer only in dp_peer
> wifi: ath12k: move is_authorized flag to ath12k_sta
>
> drivers/net/wireless/ath/ath12k/core.h | 2 +
> drivers/net/wireless/ath/ath12k/dp_htt.c | 2 +-
> drivers/net/wireless/ath/ath12k/dp_peer.c | 29 ------------
> drivers/net/wireless/ath/ath12k/dp_peer.h | 17 +++++--
> drivers/net/wireless/ath/ath12k/dp_rx.c | 2 +-
> drivers/net/wireless/ath/ath12k/mac.c | 47 ++++---------------
> drivers/net/wireless/ath/ath12k/peer.c | 2 -
> .../net/wireless/ath/ath12k/wifi7/dp_mon.c | 2 +-
> drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c | 15 +++---
> 9 files changed, 35 insertions(+), 83 deletions(-)
>
> base-commit: 414f2b40f7b0244ea3ec1f7411d194a6d9c89c33
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram at oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang at oss.qualcomm.com>
More information about the ath12k
mailing list