Skip to content

Commit 51516d9

Browse files
Jeff Johnsonkvalo
authored andcommitted
wifi: ath12k: 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 <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7d4a702 commit 51516d9

File tree

1 file changed

+19
-42
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+19
-42
lines changed

drivers/net/wireless/ath/ath12k/wmi.h

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
22
/*
33
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4-
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
4+
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
55
*/
66

77
#ifndef ATH12K_WMI_H
@@ -1146,25 +1146,27 @@ enum wmi_tlv_vdev_param {
11461146
};
11471147

11481148
enum wmi_tlv_peer_flags {
1149-
WMI_TLV_PEER_AUTH = 0x00000001,
1150-
WMI_TLV_PEER_QOS = 0x00000002,
1151-
WMI_TLV_PEER_NEED_PTK_4_WAY = 0x00000004,
1152-
WMI_TLV_PEER_NEED_GTK_2_WAY = 0x00000010,
1153-
WMI_TLV_PEER_APSD = 0x00000800,
1154-
WMI_TLV_PEER_HT = 0x00001000,
1155-
WMI_TLV_PEER_40MHZ = 0x00002000,
1156-
WMI_TLV_PEER_STBC = 0x00008000,
1157-
WMI_TLV_PEER_LDPC = 0x00010000,
1158-
WMI_TLV_PEER_DYN_MIMOPS = 0x00020000,
1159-
WMI_TLV_PEER_STATIC_MIMOPS = 0x00040000,
1160-
WMI_TLV_PEER_SPATIAL_MUX = 0x00200000,
1161-
WMI_TLV_PEER_VHT = 0x02000000,
1162-
WMI_TLV_PEER_80MHZ = 0x04000000,
1163-
WMI_TLV_PEER_PMF = 0x08000000,
1149+
WMI_PEER_AUTH = 0x00000001,
1150+
WMI_PEER_QOS = 0x00000002,
1151+
WMI_PEER_NEED_PTK_4_WAY = 0x00000004,
1152+
WMI_PEER_NEED_GTK_2_WAY = 0x00000010,
1153+
WMI_PEER_HE = 0x00000400,
1154+
WMI_PEER_APSD = 0x00000800,
1155+
WMI_PEER_HT = 0x00001000,
1156+
WMI_PEER_40MHZ = 0x00002000,
1157+
WMI_PEER_STBC = 0x00008000,
1158+
WMI_PEER_LDPC = 0x00010000,
1159+
WMI_PEER_DYN_MIMOPS = 0x00020000,
1160+
WMI_PEER_STATIC_MIMOPS = 0x00040000,
1161+
WMI_PEER_SPATIAL_MUX = 0x00200000,
1162+
WMI_PEER_TWT_REQ = 0x00400000,
1163+
WMI_PEER_TWT_RESP = 0x00800000,
1164+
WMI_PEER_VHT = 0x02000000,
1165+
WMI_PEER_80MHZ = 0x04000000,
1166+
WMI_PEER_PMF = 0x08000000,
11641167
WMI_PEER_IS_P2P_CAPABLE = 0x20000000,
11651168
WMI_PEER_160MHZ = 0x40000000,
11661169
WMI_PEER_SAFEMODE_EN = 0x80000000,
1167-
11681170
};
11691171

11701172
enum wmi_tlv_peer_flags_ext {
@@ -3844,31 +3846,6 @@ struct wmi_unit_test_cmd {
38443846

38453847
#define MAX_SUPPORTED_RATES 128
38463848

3847-
#define WMI_PEER_AUTH 0x00000001
3848-
#define WMI_PEER_QOS 0x00000002
3849-
#define WMI_PEER_NEED_PTK_4_WAY 0x00000004
3850-
#define WMI_PEER_NEED_GTK_2_WAY 0x00000010
3851-
#define WMI_PEER_HE 0x00000400
3852-
#define WMI_PEER_APSD 0x00000800
3853-
#define WMI_PEER_HT 0x00001000
3854-
#define WMI_PEER_40MHZ 0x00002000
3855-
#define WMI_PEER_STBC 0x00008000
3856-
#define WMI_PEER_LDPC 0x00010000
3857-
#define WMI_PEER_DYN_MIMOPS 0x00020000
3858-
#define WMI_PEER_STATIC_MIMOPS 0x00040000
3859-
#define WMI_PEER_SPATIAL_MUX 0x00200000
3860-
#define WMI_PEER_TWT_REQ 0x00400000
3861-
#define WMI_PEER_TWT_RESP 0x00800000
3862-
#define WMI_PEER_VHT 0x02000000
3863-
#define WMI_PEER_80MHZ 0x04000000
3864-
#define WMI_PEER_PMF 0x08000000
3865-
/* TODO: Place holder for WLAN_PEER_F_PS_PRESEND_REQUIRED = 0x10000000.
3866-
* Need to be cleaned up
3867-
*/
3868-
#define WMI_PEER_IS_P2P_CAPABLE 0x20000000
3869-
#define WMI_PEER_160MHZ 0x40000000
3870-
#define WMI_PEER_SAFEMODE_EN 0x80000000
3871-
38723849
struct ath12k_wmi_vht_rate_set_params {
38733850
__le32 tlv_header;
38743851
__le32 rx_max_rate;

0 commit comments

Comments
 (0)