blob: f9eda3e112b51526d5e31bf982fce0e863065d87 [file] [log] [blame]
Soumya Bhatbe6cc172016-12-30 14:42:58 +05301/*
Vivek5747b782018-01-04 17:26:58 +05302 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
Soumya Bhatbe6cc172016-12-30 14:42:58 +05303 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18 /**
19 * DOC: This file provides the common definitions for object manager
20 */
21
22#ifndef _WLAN_CMN_H_
23#define _WLAN_CMN_H_
24
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +053025#include <qdf_types.h>
26
Soumya Bhatbe6cc172016-12-30 14:42:58 +053027/* Max no of UMAC components */
28#define WLAN_UMAC_MAX_COMPONENTS 25
29/* Max no. of radios, a pSoc/Device can support */
30#define WLAN_UMAC_MAX_PDEVS 3
31/* Max no. of VDEV per PSOC */
32#define WLAN_UMAC_PSOC_MAX_VDEVS 51
33/* Max no. of VDEVs, a PDEV can support */
34#define WLAN_UMAC_PDEV_MAX_VDEVS 17
35/* Max no. of Peers, a device can support */
36#define WLAN_UMAC_PSOC_MAX_PEERS 1024
37
38/* Max length of a SSID */
39#define WLAN_SSID_MAX_LEN 32
40
Vivek979a3f32017-03-17 09:42:20 +053041/* Max sequence number */
42#define WLAN_MAX_SEQ_NUM 4096
43
Soumya Bhatbe6cc172016-12-30 14:42:58 +053044/* Max no. of peers for STA vap */
45#define WLAN_UMAC_MAX_STA_PEERS 2
Selvaraj, Sridharafd3a5b2017-01-04 11:00:10 +053046/* Max vdev_id */
47#define WLAN_UMAC_VDEV_ID_MAX 0xFF
Soumya Bhatbe6cc172016-12-30 14:42:58 +053048
Sathish Kumar64cdfa82017-05-08 12:35:55 +053049/* Invalid pdev_id */
50#define WLAN_INVALID_PDEV_ID 0xFFFFFFFF
51
Vivek5747b782018-01-04 17:26:58 +053052/* Invalid free descriptor count */
53#define WLAN_INVALID_MGMT_DESC_COUNT 0xFFFFFFFF
54
55/* 802.11 cap info */
Soumya Bhatbe6cc172016-12-30 14:42:58 +053056/* 802.11 cap info */
57#define WLAN_CAPINFO_ESS 0x0001
58#define WLAN_CAPINFO_IBSS 0x0002
59#define WLAN_CAPINFO_CF_POLLABLE 0x0004
60#define WLAN_CAPINFO_CF_POLLREQ 0x0008
61#define WLAN_CAPINFO_PRIVACY 0x0010
62#define WLAN_CAPINFO_SHORT_PREAMBLE 0x0020
63#define WLAN_CAPINFO_PBCC 0x0040
64#define WLAN_CAPINFO_CHNL_AGILITY 0x0080
65#define WLAN_CAPINFO_SPECTRUM_MGMT 0x0100
66#define WLAN_CAPINFO_QOS 0x0200
67#define WLAN_CAPINFO_SHORT_SLOTTIME 0x0400
68#define WLAN_CAPINFO_APSD 0x0800
69#define WLAN_CAPINFO_RADIOMEAS 0x1000
70#define WLAN_CAPINFO_DSSSOFDM 0x2000
71
72/* Allowed time to wait for Object creation */
73#define WLAN_VDEV_CREATE_TIMEOUT_CNT 300
74 /* 25 msec */
Selvaraj, Sridharafd3a5b2017-01-04 11:00:10 +053075#define WLAN_VDEV_CREATE_TIMEOUT 25
Soumya Bhatbe6cc172016-12-30 14:42:58 +053076
77#define WLAN_PDEV_CREATE_TIMEOUT_CNT 300
78 /* 25 msec */
Selvaraj, Sridharafd3a5b2017-01-04 11:00:10 +053079#define WLAN_PDEV_CREATE_TIMEOUT 25
Soumya Bhatbe6cc172016-12-30 14:42:58 +053080
81#define WLAN_PSOC_CREATE_TIMEOUT_CNT 300
82/* 25 msec */
Selvaraj, Sridharafd3a5b2017-01-04 11:00:10 +053083#define WLAN_PSOC_CREATE_TIMEOUT 25
Sandeep Puligilla7acd31f2017-02-25 16:35:35 -080084#define WLAN_24_GHZ_BASE_FREQ (2407)
85#define WLAN_5_GHZ_BASE_FREQ (5000)
86#define WLAN_24_GHZ_CHANNEL_6 (6)
87#define WLAN_24_GHZ_CHANNEL_14 (14)
88#define WLAN_24_GHZ_CHANNEL_15 (15)
89#define WLAN_24_GHZ_CHANNEL_27 (27)
90#define WLAN_5_GHZ_CHANNEL_170 (170)
91#define WLAN_CHAN_SPACING_5MHZ (5)
92#define WLAN_CHAN_SPACING_20MHZ (20)
93#define WLAN_CHAN_14_FREQ (2484)
94#define WLAN_CHAN_15_FREQ (2512)
95#define WLAN_CHAN_170_FREQ (5852)
Soumya Bhatbe6cc172016-12-30 14:42:58 +053096
Wu Gaodfc571c2017-03-22 13:18:15 +080097#define WLAN_MAC_EID_VENDOR 221
Naveen Rawat8b1ec562017-09-01 17:01:01 -070098#define WLAN_MAC_EID_EXT 255
Wu Gaodfc571c2017-03-22 13:18:15 +080099
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530100/**
101 * enum wlan_umac_comp_id - UMAC component id
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530102 * @WLAN_UMAC_COMP_MLME: MLME
103 * @WLAN_UMAC_COMP_MGMT_TXRX: MGMT Tx/Rx
Krunal Sonic4e35922017-02-01 14:59:01 -0800104 * @WLAN_UMAC_COMP_SERIALIZATION: Serialization
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530105 * @WLAN_UMAC_COMP_SCAN: SCAN - as scan module uses services provided by
106 * MLME, MGMT_TXRX and SERIALIZATION, SCAN module
107 * must be initializes after above modules.
108 * @WLAN_UMAC_COMP_PMO: PMO component
109 * @WLAN_UMAC_COMP_P2P: P2P
110 * @WLAN_UMAC_COMP_POLICY_MGR: Policy Manager
111 * @WLAN_UMAC_COMP_CONFIG: Configuration
112 * @WLAN_UMAC_COMP_WIFI_POS: WIFI Positioning
113 * @WLAN_UMAC_COMP_TDLS: TDLS
114 * @WLAN_UMAC_COMP_ATF: Airtime Fairness
Venkateswara Swamy Bandaru0b9f5ec2017-05-11 10:45:35 +0530115 * @WLAN_UMAC_COMP_SA_API: Smart Antenna API
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530116 * @WLAN_UMAC_COMP_REGULATORY: REGULATORY
117 * @WLAN_UMAC_COMP_CRYPTO: CRYPTO
118 * @WLAN_UMAC_COMP_NAN: Neighbor Aware Networking
119 * @WLAN_UMAC_COMP_DFS: DFS
Edayilliam Jayadev642201f2017-04-05 14:29:18 +0530120 * @WLAN_UMAC_COMP_SPECTRAL: Spectral
Kiran Venkatappa34536742017-04-04 00:09:10 +0530121 * @WLAN_UMAC_COMP_OFFCHAN_TXRX: Offchan TxRx
Zhang Qian82377ce2018-01-04 12:15:29 +0800122 * @WLAN_UMAC_COMP_SON: SON
123 * @WLAN_UMAC_COMP_SPECTRAL: Spectral
Author: Neil Zhao5ad91c12017-05-15 14:25:05 -0700124 * @WLAN_UMAC_COMP_SPLITMAC: SplitMAC
Nachiket Kukade88ae8532017-12-15 12:36:58 +0530125 * @WLAN_UMAC_COMP_DISA: DISA encryption test
Himanshu Agarwalb3c81ac2018-01-10 14:21:53 +0530126 * @WLAN_UMAC_COMP_GREEN_AP: Green AP
akosigifffcebf2017-11-15 18:29:32 +0530127 * @WLAN_UMAC_COMP_FTM: FTM component
Subrat Mishrabf125872017-09-27 14:41:20 +0530128 * @WLAN_UMAC_COMP_FD: FILS Discovery
Zhang Qian82377ce2018-01-04 12:15:29 +0800129 * @WLAN_UMAC_COMP_OCB: OCB
akosigifffcebf2017-11-15 18:29:32 +0530130 * @WLAN_UMAC_COMP_ID_MAX: Maximum components in UMAC
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530131 *
132 * This id is static.
133 * On Adding new component, new id has to be assigned
134 */
135enum wlan_umac_comp_id {
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530136 WLAN_UMAC_COMP_MLME,
137 WLAN_UMAC_COMP_MGMT_TXRX,
138 WLAN_UMAC_COMP_SERIALIZATION,
139 WLAN_UMAC_COMP_SCAN,
140 WLAN_UMAC_COMP_PMO,
141 WLAN_UMAC_COMP_P2P,
142 WLAN_UMAC_COMP_POLICY_MGR,
143 WLAN_UMAC_COMP_CONFIG,
Sathish Kumar26190a12017-11-17 17:36:51 +0530144 WLAN_TARGET_IF_COMP_DIRECT_BUF_RX,
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530145 WLAN_UMAC_COMP_WIFI_POS,
146 WLAN_UMAC_COMP_TDLS,
147 WLAN_UMAC_COMP_ATF,
Venkateswara Swamy Bandaru0b9f5ec2017-05-11 10:45:35 +0530148 WLAN_UMAC_COMP_SA_API,
Abhijit Pradhan5ae2b3a2017-03-31 08:52:58 +0530149 WLAN_UMAC_COMP_REGULATORY,
150 WLAN_UMAC_COMP_CRYPTO,
151 WLAN_UMAC_COMP_NAN,
152 WLAN_UMAC_COMP_DFS,
Kiran Venkatappa34536742017-04-04 00:09:10 +0530153 WLAN_UMAC_COMP_OFFCHAN_TXRX,
Bharat Bhushan Chakravarty145d3932017-03-20 12:52:16 -0700154 WLAN_UMAC_COMP_SON,
Edayilliam Jayadev642201f2017-04-05 14:29:18 +0530155 WLAN_UMAC_COMP_SPECTRAL,
Author: Neil Zhao5ad91c12017-05-15 14:25:05 -0700156 WLAN_UMAC_COMP_SPLITMAC,
Nachiket Kukade88ae8532017-12-15 12:36:58 +0530157 WLAN_UMAC_COMP_DISA,
Himanshu Agarwalb3c81ac2018-01-10 14:21:53 +0530158 WLAN_UMAC_COMP_GREEN_AP,
akosigifffcebf2017-11-15 18:29:32 +0530159 WLAN_UMAC_COMP_FTM,
Subrat Mishrabf125872017-09-27 14:41:20 +0530160 WLAN_UMAC_COMP_FD,
Zhang Qian82377ce2018-01-04 12:15:29 +0800161 WLAN_UMAC_COMP_OCB,
Krunal Sonic4e35922017-02-01 14:59:01 -0800162 WLAN_UMAC_COMP_ID_MAX,
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530163};
164
165/**
166 * enum WLAN_DEV_TYPE - for DA or OL architecture types
167 * @WLAN_DEV_DA: Direct attach
168 * @WLAN_DEV_OL: Partial offload
169 * @WLAN_DEV_INVALID: Invalid dev type
170 */
171typedef enum {
172 WLAN_DEV_DA = 0,
173 WLAN_DEV_OL = 1,
174 WLAN_DEV_INVALID = 3,
175} WLAN_DEV_TYPE;
176
177/**
178 * enum wlan_phymode - phy mode
179 * @WLAN_PHYMODE_AUTO: autoselect
180 * @WLAN_PHYMODE_11A: 5GHz, OFDM
181 * @WLAN_PHYMODE_11B: 2GHz, CCK
182 * @WLAN_PHYMODE_11G: 2GHz, OFDM
183 * @WLAN_PHYMODE_11NA_HT20: 5Ghz, HT20
184 * @WLAN_PHYMODE_11NG_HT20: 2Ghz, HT20
185 * @WLAN_PHYMODE_11NA_HT40PLUS: 5Ghz, HT40 (ext ch +1)
186 * @WLAN_PHYMODE_11NA_HT40MINUS: 5Ghz, HT40 (ext ch -1)
187 * @WLAN_PHYMODE_11NG_HT40PLUS: 2Ghz, HT40 (ext ch +1)
188 * @WLAN_PHYMODE_11NG_HT40MINUS: 2Ghz, HT40 (ext ch -1)
189 * @WLAN_PHYMODE_11NG_HT40: 2Ghz, Auto HT40
190 * @WLAN_PHYMODE_11NA_HT40: 5Ghz, Auto HT40
191 * @WLAN_PHYMODE_11AC_VHT20: 5Ghz, VHT20
192 * @WLAN_PHYMODE_11AC_VHT40PLUS: 5Ghz, VHT40 (Ext ch +1)
193 * @WLAN_PHYMODE_11AC_VHT40MINUS:5Ghz VHT40 (Ext ch -1)
194 * @WLAN_PHYMODE_11AC_VHT40: 5Ghz, VHT40
195 * @WLAN_PHYMODE_11AC_VHT80: 5Ghz, VHT80
196 * @WLAN_PHYMODE_11AC_VHT160: 5Ghz, VHT160
197 * @WLAN_PHYMODE_11AC_VHT80_80: 5Ghz, VHT80_80
198 */
199enum wlan_phymode {
200 WLAN_PHYMODE_AUTO = 0,
201 WLAN_PHYMODE_11A = 1,
202 WLAN_PHYMODE_11B = 2,
203 WLAN_PHYMODE_11G = 3,
204 WLAN_PHYMODE_11NA_HT20 = 4,
205 WLAN_PHYMODE_11NG_HT20 = 5,
206 WLAN_PHYMODE_11NA_HT40PLUS = 6,
207 WLAN_PHYMODE_11NA_HT40MINUS = 7,
208 WLAN_PHYMODE_11NG_HT40PLUS = 8,
209 WLAN_PHYMODE_11NG_HT40MINUS = 9,
210 WLAN_PHYMODE_11NG_HT40 = 10,
211 WLAN_PHYMODE_11NA_HT40 = 11,
212 WLAN_PHYMODE_11AC_VHT20 = 12,
213 WLAN_PHYMODE_11AC_VHT40PLUS = 13,
214 WLAN_PHYMODE_11AC_VHT40MINUS = 14,
215 WLAN_PHYMODE_11AC_VHT40 = 15,
216 WLAN_PHYMODE_11AC_VHT80 = 16,
217 WLAN_PHYMODE_11AC_VHT160 = 17,
218 WLAN_PHYMODE_11AC_VHT80_80 = 18,
219};
220
221#define WLAN_PHYMODE_MAX (WLAN_PHYMODE_11AC_VHT80_80 + 1)
222
223/**
Frank Liuf54299e2017-05-17 14:03:37 +0800224 * enum wifi_traffic_ac - access category type
225 * @WIFI_AC_VO: Voice AC
226 * @WIFI_AC_VI: Video AC
227 * @WIFI_AC_BE: Best effort AC
228 * @WIFI_AC_BK: Background AC
229 * @WIFI_AC_MAX: MAX access category
230 */
231enum wifi_traffic_ac {
232 WIFI_AC_VO = 0,
233 WIFI_AC_VI = 1,
234 WIFI_AC_BE = 2,
235 WIFI_AC_BK = 3,
236 WIFI_AC_MAX = 4,
237};
238
239/**
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530240 * enum wlan_peer_type - peer type
241 * @WLAN_PEER_SELF: for AP mode, SELF PEER or AP PEER are same
242 * @WLAN_PEER_AP: BSS peer for STA mode, Self peer for AP mode
Rachit Kankane4475ff22017-04-19 11:49:18 +0530243 * @WLAN_PEER_P2P_GO: BSS peer for P2P CLI mode, Self peer for P2P GO mode
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530244 * @WLAN_PEER_STA: Self Peer for STA mode, STA peer for AP mode
Rachit Kankane4475ff22017-04-19 11:49:18 +0530245 * @WLAN_PEER_P2P_CLI: Self peer for P2P CLI mode, P2P CLI peer for P2P GO mode
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530246 * @WLAN_PEER_TDLS: TDLS Peer
247 * @WLAN_PEER_NAWDS: NAWDS Peer
248 * @WLAN_PEER_STA_TEMP: STA Peer Temp (its host only node)
Selvaraj, Sridharafd3a5b2017-01-04 11:00:10 +0530249 * @WLAN_PEER_IBSS: IBSS Peer
Naveen Rawat8aaf6f22017-11-02 17:04:46 -0700250 * @WLAN_PEER_NDP: NDP Peer
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530251 */
252enum wlan_peer_type {
253 WLAN_PEER_SELF = 1,
254 WLAN_PEER_AP = 2,
Rachit Kankane4475ff22017-04-19 11:49:18 +0530255 WLAN_PEER_P2P_GO = 3,
256 WLAN_PEER_STA = 4,
257 WLAN_PEER_P2P_CLI = 5,
258 WLAN_PEER_TDLS = 6,
259 WLAN_PEER_NAWDS = 7,
260 WLAN_PEER_STA_TEMP = 8,
261 WLAN_PEER_IBSS = 9,
Naveen Rawat8aaf6f22017-11-02 17:04:46 -0700262 WLAN_PEER_NDP = 10,
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530263};
264
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530265/**
266 * enum wlan_band - specifies operating channel band
267 * @WLAN_BAND_ALL: Any band
268 * @WLAN_BAND_2_4_GHZ: 2.4 GHz band
269 * @WLAN_BAND_5_GHZ: 5 GHz band
270 * @WLAN_BAND_4_9_GHZ: 4.9 GHz band
271 */
272enum wlan_band {
273 WLAN_BAND_ALL,
274 WLAN_BAND_2_4_GHZ,
275 WLAN_BAND_5_GHZ,
276 WLAN_BAND_4_9_GHZ,
277};
278
279/**
280 * enum wlan_bss_type - type of network
281 * @WLAN_TYPE_ANY: Default value
282 * @WLAN_TYPE_BSS: Type BSS
283 * @WLAN_TYPE_IBSS: Type IBSS
284 */
285enum wlan_bss_type {
286 WLAN_TYPE_ANY,
287 WLAN_TYPE_BSS,
288 WLAN_TYPE_IBSS,
289};
290
291/**
292 * enum wlan_pmf_cap: pmf capability
293 * @PMF_DISABLED: PMF is disabled
294 * @PMF_CAPABLE: PMF is supported
295 * @PMF_REQUIRED: PMF is mandatory
296 */
297enum wlan_pmf_cap {
298 WLAN_PMF_DISABLED,
299 WLAN_PMF_CAPABLE,
300 WLAN_PMF_REQUIRED,
301};
302
303/**
304 * enum wlan_auth_type - Enumeration of the various Auth types
305 * @WLAN_AUTH_TYPE_OPEN_SYSTEM: Open auth type
306 * @WLAN_AUTH_TYPE_SHARED_KEY: Shared Key Auth type
307 * @WLAN_AUTH_TYPE_AUTOSWITCH: Auto switch Open/Shared
Padma, Santhosh Kumar6f3e4a82017-09-21 19:14:42 +0530308 * @WLAN_AUTH_TYPE_SAE: SAE auth type
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530309 * @WLAN_AUTH_TYPE_WPA: WPA Enterprise
310 * @WLAN_AUTH_TYPE_WPA_PSK: WPA PSK
311 * @WLAN_AUTH_TYPE_WPA_NONE: WPA None
312 * @WLAN_AUTH_TYPE_RSN: RSN Enterprise
313 * @WLAN_AUTH_TYPE_RSN_PSK: RSN PSK
314 * @WLAN_AUTH_TYPE_FT_RSN: FT RSN Enterprise
315 * @WLAN_AUTH_TYPE_FT_RSN_PSK: FT RSN PSK
316 * @WLAN_AUTH_TYPE_WAPI_WAI_CERTIFICATE: WAPI certificate
317 * @WLAN_AUTH_TYPE_WAPI_WAI_PSK: WAPI PSK
318 * @WLAN_AUTH_TYPE_CCKM_WPA: CCKM WPA
319 * @WLAN_AUTH_TYPE_CCKM_RSN: CCKM RSN
320 * @WLAN_AUTH_TYPE_RSN_PSK_SHA256: SHA256 PSK
321 * @WLAN_AUTH_TYPE_RSN_8021X_SHA256: SHA256 Enterprise
Vishwajith Upendrae098ebd2017-08-11 13:29:07 +0530322 * @WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA256
323 * @WLAN_AUTH_TYPE_FILS_SHA384: FILS SHA384
324 * @WLAN_AUTH_TYPE_FT_FILS_SHA256: FILS SHA256 for 11r
325 * @WLAN_AUTH_TYPE_FT_FILS_SHA384: FILS SHA384 for 11r
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530326 * @WLAN_NUM_OF_SUPPORT_AUTH_TYPE: Max no of Auth type
327 */
328enum wlan_auth_type {
329 WLAN_AUTH_TYPE_OPEN_SYSTEM,
330 WLAN_AUTH_TYPE_SHARED_KEY,
331 WLAN_AUTH_TYPE_AUTOSWITCH,
Padma, Santhosh Kumar6f3e4a82017-09-21 19:14:42 +0530332 WLAN_AUTH_TYPE_SAE,
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530333 WLAN_AUTH_TYPE_WPA,
334 WLAN_AUTH_TYPE_WPA_PSK,
335 WLAN_AUTH_TYPE_WPA_NONE,
336 WLAN_AUTH_TYPE_RSN,
337 WLAN_AUTH_TYPE_RSN_PSK,
338 WLAN_AUTH_TYPE_FT_RSN,
339 WLAN_AUTH_TYPE_FT_RSN_PSK,
340 WLAN_AUTH_TYPE_WAPI_WAI_CERTIFICATE,
341 WLAN_AUTH_TYPE_WAPI_WAI_PSK,
342 WLAN_AUTH_TYPE_CCKM_WPA,
343 WLAN_AUTH_TYPE_CCKM_RSN,
344 WLAN_AUTH_TYPE_RSN_PSK_SHA256,
345 WLAN_AUTH_TYPE_RSN_8021X_SHA256,
Vishwajith Upendrae098ebd2017-08-11 13:29:07 +0530346 WLAN_AUTH_TYPE_FILS_SHA256,
347 WLAN_AUTH_TYPE_FILS_SHA384,
348 WLAN_AUTH_TYPE_FT_FILS_SHA256,
349 WLAN_AUTH_TYPE_FT_FILS_SHA384,
Abhishek Singha0f24212017-11-03 14:47:59 +0530350 WLAN_AUTH_TYPE_DPP_RSN,
Padma, Santhosh Kumarb5088bf2017-11-10 15:14:22 +0530351 WLAN_AUTH_TYPE_OWE,
Padma, Santhosh Kumarf379e372017-12-21 12:47:52 +0530352 WLAN_AUTH_TYPE_SUITEB_EAP_SHA256,
353 WLAN_AUTH_TYPE_SUITEB_EAP_SHA384,
Vishwajith Upendrae098ebd2017-08-11 13:29:07 +0530354
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530355 WLAN_NUM_OF_SUPPORT_AUTH_TYPE,
356};
357
358/**
359 * enum wlan_enc_type - Enumeration of the various Enc types
360 * @WLAN_ENCRYPT_TYPE_NONE: No encryption
361 * @WLAN_ENCRYPT_TYPE_WEP40_STATICKEY: WEP 40 Static key
362 * @WLAN_ENCRYPT_TYPE_WEP104_STATICKEY: WEP 104 Static key
363 * @WLAN_ENCRYPT_TYPE_WEP40: WEP 40
364 * @WLAN_ENCRYPT_TYPE_WEP104: WEP 104
365 * @WLAN_ENCRYPT_TYPE_TKIP: TKIP
366 * @WLAN_ENCRYPT_TYPE_AES: AES
367 * @WLAN_ENCRYPT_TYPE_WPI: WAPI
368 * @WLAN_ENCRYPT_TYPE_KRK: KRK
369 * @WLAN_ENCRYPT_TYPE_BTK: BTK
370 * @WLAN_ENCRYPT_TYPE_AES_CMAC: 11W BIP
371 * @WLAN_ENCRYPT_TYPE_ANY: Any
372 * @WLAN_NUM_OF_ENCRYPT_TYPE: Max value
373 */
374enum wlan_enc_type {
375 WLAN_ENCRYPT_TYPE_NONE,
376 WLAN_ENCRYPT_TYPE_WEP40_STATICKEY,
377 WLAN_ENCRYPT_TYPE_WEP104_STATICKEY,
378 WLAN_ENCRYPT_TYPE_WEP40,
379 WLAN_ENCRYPT_TYPE_WEP104,
380 WLAN_ENCRYPT_TYPE_TKIP,
381 WLAN_ENCRYPT_TYPE_AES,
382 WLAN_ENCRYPT_TYPE_WPI,
383 WLAN_ENCRYPT_TYPE_KRK,
384 WLAN_ENCRYPT_TYPE_BTK,
385 WLAN_ENCRYPT_TYPE_AES_CMAC,
Mukul Sharmaa17d5ec2017-07-04 12:39:17 +0530386 WLAN_ENCRYPT_TYPE_AES_GCMP,
387 WLAN_ENCRYPT_TYPE_AES_GCMP_256,
Om Prakash Tripathi7e3f45d2016-12-28 16:58:54 +0530388 WLAN_ENCRYPT_TYPE_ANY,
389 WLAN_NUM_OF_ENCRYPT_TYPE = WLAN_ENCRYPT_TYPE_ANY,
390};
391
392/**
393 * struct wlan_ssid - SSID info
394 * @length: ssid length of bss excluding null
395 * @ssid: ssid character array potentially non null terminated
396 */
397struct wlan_ssid {
398 uint8_t length;
399 uint8_t ssid[WLAN_SSID_MAX_LEN];
400};
401
Soumya Bhatbe6cc172016-12-30 14:42:58 +0530402/* MAC address length */
403#define WLAN_MACADDR_LEN 6
404/* Util API to copy the MAC address */
405#define WLAN_ADDR_COPY(dst, src) qdf_mem_copy(dst, src, WLAN_MACADDR_LEN)
406/* Util API to compare the MAC address */
407#define WLAN_ADDR_EQ(a1, a2) qdf_mem_cmp(a1, a2, WLAN_MACADDR_LEN)
408
409#endif /* _WLAN_OBJMGR_CMN_H_*/