050370de465feb86ca58c0e1f6598e637e82ad88
[oweals/openwrt.git] /
1 From 4b4a8d808c58fc0defc32a26b2fea35d66692c45 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Thu, 28 Jun 2018 08:16:13 +0200
4 Subject: [PATCH] brcmfmac: define more bits for the flags of struct
5  brcmf_sta_info_le
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 That struct is passed by a firmware when querying for STA info. Flags
11 are used to indicate what info could be obtained.
12
13 These new defines may allow passing more info to the cfg80211 in the
14 future. They had been obtained from Broadcom's SDK file wlioctl_defs.h
15 used by DD-WRT.
16
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
19 ---
20  .../broadcom/brcm80211/brcmfmac/fwil_types.h       | 29 ++++++++++++++++++----
21  1 file changed, 24 insertions(+), 5 deletions(-)
22
23 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h
24 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h
25 @@ -32,11 +32,30 @@
26  #define        BRCMF_BSS_INFO_VERSION  109 /* curr ver of brcmf_bss_info_le struct */
27  #define BRCMF_BSS_RSSI_ON_CHANNEL      0x0002
28  
29 -#define BRCMF_STA_WME              0x00000002      /* WMM association */
30 -#define BRCMF_STA_AUTHE            0x00000008      /* Authenticated */
31 -#define BRCMF_STA_ASSOC            0x00000010      /* Associated */
32 -#define BRCMF_STA_AUTHO            0x00000020      /* Authorized */
33 -#define BRCMF_STA_SCBSTATS         0x00004000      /* Per STA debug stats */
34 +#define BRCMF_STA_BRCM                 0x00000001      /* Running a Broadcom driver */
35 +#define BRCMF_STA_WME                  0x00000002      /* WMM association */
36 +#define BRCMF_STA_NONERP               0x00000004      /* No ERP */
37 +#define BRCMF_STA_AUTHE                        0x00000008      /* Authenticated */
38 +#define BRCMF_STA_ASSOC                        0x00000010      /* Associated */
39 +#define BRCMF_STA_AUTHO                        0x00000020      /* Authorized */
40 +#define BRCMF_STA_WDS                  0x00000040      /* Wireless Distribution System */
41 +#define BRCMF_STA_WDS_LINKUP           0x00000080      /* WDS traffic/probes flowing properly */
42 +#define BRCMF_STA_PS                   0x00000100      /* STA is in power save mode from AP's viewpoint */
43 +#define BRCMF_STA_APSD_BE              0x00000200      /* APSD delv/trigger for AC_BE is default enabled */
44 +#define BRCMF_STA_APSD_BK              0x00000400      /* APSD delv/trigger for AC_BK is default enabled */
45 +#define BRCMF_STA_APSD_VI              0x00000800      /* APSD delv/trigger for AC_VI is default enabled */
46 +#define BRCMF_STA_APSD_VO              0x00001000      /* APSD delv/trigger for AC_VO is default enabled */
47 +#define BRCMF_STA_N_CAP                        0x00002000      /* STA 802.11n capable */
48 +#define BRCMF_STA_SCBSTATS             0x00004000      /* Per STA debug stats */
49 +#define BRCMF_STA_AMPDU_CAP            0x00008000      /* STA AMPDU capable */
50 +#define BRCMF_STA_AMSDU_CAP            0x00010000      /* STA AMSDU capable */
51 +#define BRCMF_STA_MIMO_PS              0x00020000      /* mimo ps mode is enabled */
52 +#define BRCMF_STA_MIMO_RTS             0x00040000      /* send rts in mimo ps mode */
53 +#define BRCMF_STA_RIFS_CAP             0x00080000      /* rifs enabled */
54 +#define BRCMF_STA_VHT_CAP              0x00100000      /* STA VHT(11ac) capable */
55 +#define BRCMF_STA_WPS                  0x00200000      /* WPS state */
56 +#define BRCMF_STA_DWDS_CAP             0x01000000      /* DWDS CAP */
57 +#define BRCMF_STA_DWDS                 0x02000000      /* DWDS active */
58  
59  /* size of brcmf_scan_params not including variable length array */
60  #define BRCMF_SCAN_PARAMS_FIXED_SIZE   64