wifi: ath11k: Consolidate WMI peer flags
authorJeff Johnson <quic_jjohnson@quicinc.com>
Mon, 6 Nov 2023 18:26:05 +0000 (10:26 -0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 22 Nov 2023 18:25:15 +0000 (20:25 +0200)
commit7d4a70201204def2d771571518efcbe37ee6b85d
treeaa5266b875a81a9498c8d3ce1cee0ba6a95df4a4
parent69bc79faa616c7e7258a06b1141b7b4cffb7823c
wifi: ath11k: Consolidate WMI peer flags

Currently wmi.h has two separate set of definitions for peer
flags. One set of flags is defined in enum wmi_tlv_peer_flags, and,
except for the last three, are named WMI_TLV_PEER_*. The other set of
flags are defined as macros, and are named WMI_PEER_*. The last three
macros have the same name as the last three wmi_tlv_peer_flags
enumerators.

The code only uses the WMI_PEER_* names; the WMI_TLV_PEER_* names are
unused. So as a first step in consolidation, remove all the
WMI_TLV_PEER_* names.

But since having an enum to define all the flags is actually a good
thing since that provides a handle by which to refer to the entire set
of flags, recast the WMI_PEER_* macros into enumerators.

Compile tested only.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231106-ath-peer-flags-v1-3-781e83b7e8e8@quicinc.com
drivers/net/wireless/ath/ath11k/wmi.h