1 // Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef _WIFI_TYPES_H 16 #define _WIFI_TYPES_H 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 /** 23 * @brief WiFi ioctl command type 24 * 25 */ 26 typedef enum { 27 WIFI_IOCTL_SET_STA_HT2040_COEX = 1, /**< Set the configuration of STA's HT2040 coexist management */ 28 WIFI_IOCTL_GET_STA_HT2040_COEX, /**< Get the configuration of STA's HT2040 coexist management */ 29 WIFI_IOCTL_MAX, 30 } wifi_ioctl_cmd_t; 31 32 /** 33 * @brief Configuration for STA's HT2040 coexist management 34 * 35 */ 36 typedef struct { 37 int enable; /**< Indicate whether STA's HT2040 coexist management is enabled or not */ 38 } wifi_ht2040_coex_t; 39 40 /** 41 * @brief Configuration for WiFi ioctl 42 * 43 */ 44 typedef struct { 45 union { 46 wifi_ht2040_coex_t ht2040_coex; /**< Configuration of STA's HT2040 coexist management */ 47 } data; /**< Configuration of ioctl command */ 48 } wifi_ioctl_config_t; 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 #endif 55