]>
Commit | Line | Data |
---|---|---|
774e9b2e MM |
1 | #ifndef __esp_cmd_h_ |
2 | #define __esp_cmd_h_ | |
3 | ||
4 | /* | |
5 | * Espressif Systems Wireless LAN device driver | |
6 | * | |
d7215282 | 7 | * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD |
774e9b2e | 8 | * |
d7215282 | 9 | * SPDX-License-Identifier: GPL-2.0-only |
774e9b2e | 10 | */ |
774e9b2e MM |
11 | #include "esp.h" |
12 | ||
13 | #define ESP_NUM_OF_CMD_NODES 20 | |
14 | #define ESP_SIZE_OF_CMD_NODE 2048 | |
15 | ||
16 | #define ESP_CMD_HIGH_PRIO 1 | |
17 | #define ESP_CMD_DFLT_PRIO 0 | |
18 | ||
7406fe82 MM |
19 | struct multicast_list |
20 | { | |
21 | struct esp_wifi_device *priv; | |
5a47b073 MM |
22 | u8 addr_count; |
23 | u8 mcast_addr[MAX_MULTICAST_ADDR_COUNT][MAC_ADDR_LEN]; | |
7406fe82 MM |
24 | }; |
25 | ||
26 | ||
225e14eb YM |
27 | int esp_commands_setup(struct esp_adapter *adapter); |
28 | int esp_commands_teardown(struct esp_adapter *adapter); | |
774e9b2e MM |
29 | int cmd_init_interface(struct esp_wifi_device *priv); |
30 | int cmd_deinit_interface(struct esp_wifi_device *priv); | |
225e14eb | 31 | int process_cmd_resp(struct esp_adapter *adapter, struct sk_buff *skb); |
774e9b2e MM |
32 | int cmd_scan_request(struct esp_wifi_device *priv, |
33 | struct cfg80211_scan_request *request); | |
34 | int cmd_get_mac(struct esp_wifi_device *priv); | |
225e14eb | 35 | int process_cmd_event(struct esp_wifi_device *priv, struct sk_buff *skb); |
774e9b2e MM |
36 | int cmd_connect_request(struct esp_wifi_device *priv, |
37 | struct cfg80211_connect_params *params); | |
7b6ed49e MM |
38 | int cmd_auth_request(struct esp_wifi_device *priv, |
39 | struct cfg80211_auth_request *req); | |
40 | int cmd_assoc_request(struct esp_wifi_device *priv, | |
41 | struct cfg80211_assoc_request *req); | |
774e9b2e MM |
42 | int cmd_disconnect_request(struct esp_wifi_device *priv, u16 reason_code); |
43 | int cmd_add_key(struct esp_wifi_device *priv, u8 key_index, bool pairwise, | |
44 | const u8 *mac_addr, struct key_params *params); | |
45 | int cmd_del_key(struct esp_wifi_device *priv, u8 key_index, bool pairwise, | |
46 | const u8 *mac_addr); | |
47 | int cmd_set_default_key(struct esp_wifi_device *priv, u8 key_index); | |
7406fe82 MM |
48 | int cmd_set_ip_address(struct esp_wifi_device *priv, u32 ip); |
49 | int cmd_set_mcast_mac_list(struct esp_wifi_device *priv, struct multicast_list *list); | |
774e9b2e | 50 | #endif |