[PATCH ath-next 0/2] wifi: ath12k: remove duplicated STA state from link peers
Aishwarya R
aishwarya.r at oss.qualcomm.com
Tue Sep 1 01:56:14 PDT 2026
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.
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 +++---
drivers/net/wireless/ath/ath12k/wmi.c | 2 +-
10 files changed, 36 insertions(+), 84 deletions(-)
base-commit: e07447e654476262558bee570f4cf456e2b32565
--
2.34.1
More information about the ath12k
mailing list