]> Git Repo - esp-hosted.git/blame - esp_hosted_ng/host/include/esp_cmd.h
esp_hosted_ng: Update LICENCE in SPDX format
[esp-hosted.git] / esp_hosted_ng / host / include / esp_cmd.h
CommitLineData
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
19struct 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
27int esp_commands_setup(struct esp_adapter *adapter);
28int esp_commands_teardown(struct esp_adapter *adapter);
774e9b2e
MM
29int cmd_init_interface(struct esp_wifi_device *priv);
30int cmd_deinit_interface(struct esp_wifi_device *priv);
225e14eb 31int process_cmd_resp(struct esp_adapter *adapter, struct sk_buff *skb);
774e9b2e
MM
32int cmd_scan_request(struct esp_wifi_device *priv,
33 struct cfg80211_scan_request *request);
34int cmd_get_mac(struct esp_wifi_device *priv);
225e14eb 35int process_cmd_event(struct esp_wifi_device *priv, struct sk_buff *skb);
774e9b2e
MM
36int cmd_connect_request(struct esp_wifi_device *priv,
37 struct cfg80211_connect_params *params);
7b6ed49e
MM
38int cmd_auth_request(struct esp_wifi_device *priv,
39 struct cfg80211_auth_request *req);
40int cmd_assoc_request(struct esp_wifi_device *priv,
41 struct cfg80211_assoc_request *req);
774e9b2e
MM
42int cmd_disconnect_request(struct esp_wifi_device *priv, u16 reason_code);
43int cmd_add_key(struct esp_wifi_device *priv, u8 key_index, bool pairwise,
44 const u8 *mac_addr, struct key_params *params);
45int cmd_del_key(struct esp_wifi_device *priv, u8 key_index, bool pairwise,
46 const u8 *mac_addr);
47int cmd_set_default_key(struct esp_wifi_device *priv, u8 key_index);
7406fe82
MM
48int cmd_set_ip_address(struct esp_wifi_device *priv, u32 ip);
49int cmd_set_mcast_mac_list(struct esp_wifi_device *priv, struct multicast_list *list);
774e9b2e 50#endif
This page took 0.029353 seconds and 4 git commands to generate.