diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/decl.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/decl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/decl.h b/drivers/net/wireless/mwifiex/decl.h index 3a21bd03d6db..e7b3e16e5d34 100644 --- a/drivers/net/wireless/mwifiex/decl.h +++ b/drivers/net/wireless/mwifiex/decl.h | |||
@@ -75,10 +75,16 @@ | |||
75 | 75 | ||
76 | #define MWIFIEX_BUF_FLAG_REQUEUED_PKT BIT(0) | 76 | #define MWIFIEX_BUF_FLAG_REQUEUED_PKT BIT(0) |
77 | #define MWIFIEX_BUF_FLAG_BRIDGED_PKT BIT(1) | 77 | #define MWIFIEX_BUF_FLAG_BRIDGED_PKT BIT(1) |
78 | #define MWIFIEX_BUF_FLAG_TDLS_PKT BIT(2) | ||
78 | 79 | ||
79 | #define MWIFIEX_BRIDGED_PKTS_THR_HIGH 1024 | 80 | #define MWIFIEX_BRIDGED_PKTS_THR_HIGH 1024 |
80 | #define MWIFIEX_BRIDGED_PKTS_THR_LOW 128 | 81 | #define MWIFIEX_BRIDGED_PKTS_THR_LOW 128 |
81 | 82 | ||
83 | #define MWIFIEX_TDLS_DISABLE_LINK 0x00 | ||
84 | #define MWIFIEX_TDLS_ENABLE_LINK 0x01 | ||
85 | #define MWIFIEX_TDLS_CREATE_LINK 0x02 | ||
86 | #define MWIFIEX_TDLS_CONFIG_LINK 0x03 | ||
87 | |||
82 | enum mwifiex_bss_type { | 88 | enum mwifiex_bss_type { |
83 | MWIFIEX_BSS_TYPE_STA = 0, | 89 | MWIFIEX_BSS_TYPE_STA = 0, |
84 | MWIFIEX_BSS_TYPE_UAP = 1, | 90 | MWIFIEX_BSS_TYPE_UAP = 1, |
@@ -92,6 +98,23 @@ enum mwifiex_bss_role { | |||
92 | MWIFIEX_BSS_ROLE_ANY = 0xff, | 98 | MWIFIEX_BSS_ROLE_ANY = 0xff, |
93 | }; | 99 | }; |
94 | 100 | ||
101 | enum mwifiex_tdls_status { | ||
102 | TDLS_NOT_SETUP = 0, | ||
103 | TDLS_SETUP_INPROGRESS, | ||
104 | TDLS_SETUP_COMPLETE, | ||
105 | TDLS_SETUP_FAILURE, | ||
106 | TDLS_LINK_TEARDOWN, | ||
107 | }; | ||
108 | |||
109 | enum mwifiex_tdls_error_code { | ||
110 | TDLS_ERR_NO_ERROR = 0, | ||
111 | TDLS_ERR_INTERNAL_ERROR, | ||
112 | TDLS_ERR_MAX_LINKS_EST, | ||
113 | TDLS_ERR_LINK_EXISTS, | ||
114 | TDLS_ERR_LINK_NONEXISTENT, | ||
115 | TDLS_ERR_PEER_STA_UNREACHABLE = 25, | ||
116 | }; | ||
117 | |||
95 | #define BSS_ROLE_BIT_MASK BIT(0) | 118 | #define BSS_ROLE_BIT_MASK BIT(0) |
96 | 119 | ||
97 | #define GET_BSS_ROLE(priv) ((priv)->bss_role & BSS_ROLE_BIT_MASK) | 120 | #define GET_BSS_ROLE(priv) ((priv)->bss_role & BSS_ROLE_BIT_MASK) |