[PATCH ath-next 0/2] wifi: ath12k: remove duplicated STA state from link peers
Jeff Johnson
jeff.johnson at oss.qualcomm.com
Wed Sep 23 13:45:46 PDT 2026
On 9/1/2026 1:56 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.
>
> 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
This series no longer applies, can you please rebase?
If the conflict resolution is trivial make sure to carry forward the
Reviewed-by tags.
Applying: wifi: ath12k: store station pointer only in dp_peer
Using index info to reconstruct a base tree...
M drivers/net/wireless/ath/ath12k/dp_rx.c
M drivers/net/wireless/ath/ath12k/mac.c
M drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c
M drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
M drivers/net/wireless/ath/ath12k/wmi.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/net/wireless/ath/ath12k/wmi.c
CONFLICT (content): Merge conflict in drivers/net/wireless/ath/ath12k/wmi.c
Auto-merging drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
Auto-merging drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c
Auto-merging drivers/net/wireless/ath/ath12k/mac.c
Auto-merging drivers/net/wireless/ath/ath12k/dp_rx.c
Recorded preimage for 'drivers/net/wireless/ath/ath12k/wmi.c'
error: Failed to merge in the changes.
Patch failed at 0001 wifi: ath12k: store station pointer only in dp_peer
More information about the ath12k
mailing list