1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 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 16 #ifndef WLAN_HDI_TYPES_H 17 #define WLAN_HDI_TYPES_H 18 19 #ifdef __cplusplus 20 #if __cplusplus 21 extern "C" { 22 #endif 23 #endif 24 25 typedef enum { 26 PROTOCOL_80211_IFTYPE_UNSPECIFIED, /**< Unspecified type */ 27 PROTOCOL_80211_IFTYPE_ADHOC, /**< Ad hoc network */ 28 PROTOCOL_80211_IFTYPE_STATION, /**< Station */ 29 PROTOCOL_80211_IFTYPE_AP, /**< Access point (AP) */ 30 PROTOCOL_80211_IFTYPE_AP_VLAN, /**< Virtual AP */ 31 PROTOCOL_80211_IFTYPE_WDS, /**< Wireless distributed system */ 32 PROTOCOL_80211_IFTYPE_MONITOR, /**< Listening */ 33 PROTOCOL_80211_IFTYPE_MESH_POINT, /**< Mesh network */ 34 PROTOCOL_80211_IFTYPE_P2P_CLIENT, /**< P2P client */ 35 PROTOCOL_80211_IFTYPE_P2P_GO, /**< P2P group owner */ 36 PROTOCOL_80211_IFTYPE_P2P_DEVICE, /**< P2P device */ 37 PROTOCOL_80211_IFTYPE_NUM, /**< Number of network ports */ 38 } FeatureType; 39 40 enum Ieee80211Band { 41 IEEE80211_BAND_2GHZ, /**< 2.4 GHz */ 42 IEEE80211_BAND_5GHZ, /**< 5 GHz */ 43 IEEE80211_NUM_BANDS /**< Reserved */ 44 }; 45 46 typedef enum { 47 CMD_CLOSE_GO_CAC, 48 CMD_SET_GO_CSA_CHANNEL, 49 CMD_SET_GO_RADAR_DETECT, 50 CMD_ID_MCC_STA_P2P_QUOTA_TIME, 51 CMD_ID_CTRL_ROAM_CHANNEL 52 } ProjectionScreenCmd; 53 54 typedef enum { 55 CMD_HID2D_MODULE_INIT, 56 CMD_SET_BATTERY_LEVEL, 57 CMD_SET_SUPP_COEX_CHAN_LIST, 58 CMD_SET_CHAN_ADJUST 59 } Hid2dCmdType; 60 61 #ifndef IFNAMSIZ 62 #define IFNAMSIZ 16 63 #endif 64 #define ETH_ADDR_LEN 6 65 #define WIFI_POWER_MODE_SLEEPING 0 66 #define WIFI_POWER_MODE_GENERAL 1 67 #define WIFI_POWER_MODE_THROUGH_WALL 2 68 #define WIFI_POWER_MODE_NUM 3 69 70 #ifdef __cplusplus 71 #if __cplusplus 72 } 73 #endif 74 #endif 75 76 #endif /* end of wlan_hdi_types.h */