]>
Commit | Line | Data |
---|---|---|
774e9b2e MM |
1 | #ifndef __esp_wpa_utils_h_ |
2 | #define __esp_wpa_utils_h_ | |
3 | ||
1af447de MM |
4 | /* |
5 | * Espressif Systems Wireless LAN device driver | |
6 | * | |
d7215282 | 7 | * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD |
1af447de | 8 | * |
d7215282 | 9 | * SPDX-License-Identifier: GPL-2.0-only |
1af447de | 10 | */ |
6968597b MM |
11 | #include "esp.h" |
12 | ||
774e9b2e MM |
13 | #define WPA_CIPHER_NONE BIT(0) |
14 | #define WPA_CIPHER_WEP40 BIT(7) | |
15 | #define WPA_CIPHER_WEP104 BIT(8) | |
16 | #define WPA_CIPHER_TKIP BIT(1) | |
17 | #define WPA_CIPHER_CCMP BIT(3) | |
18 | #define WPA_CIPHER_AES_128_CMAC BIT(5) | |
19 | #define WPA_CIPHER_SMS4 BIT(10) | |
20 | #define WPA_CIPHER_GCMP BIT(11) | |
21 | #define WPA_CIPHER_GCMP_256 BIT(12) | |
22 | #define WPA_CIPHER_BIP_GMAC_128 BIT(13) | |
23 | #define WPA_CIPHER_BIP_GMAC_256 BIT(14) | |
24 | ||
25 | enum wpa_alg { | |
26 | WIFI_WPA_ALG_NONE = 0, | |
27 | WIFI_WPA_ALG_WEP40 = 1, | |
28 | WIFI_WPA_ALG_TKIP = 2, | |
29 | WIFI_WPA_ALG_CCMP = 3, | |
30 | WIFI_WAPI_ALG_SMS4 = 4, | |
31 | WIFI_WPA_ALG_WEP104 = 5, | |
32 | WIFI_WPA_ALG_WEP = 6, | |
33 | WIFI_WPA_ALG_IGTK = 7, | |
34 | WIFI_WPA_ALG_PMK = 8, | |
35 | WIFI_WPA_ALG_GCMP = 9, | |
6968597b MM |
36 | }; |
37 | ||
774e9b2e MM |
38 | int wpa_cipher_to_alg(int cipher); |
39 | ||
6968597b MM |
40 | |
41 | #endif |