MT7697_WIFI_PHY_11AGN_MIXED,/**< 10, both 2.4G and 5G band. */
MT7697_WIFI_PHY_11N_5G,/**< 11, 11n-only with 5GHz band. */
};
/** @brief This enumeration defines the RX filter register's bitmap. Each bit indicates a specific drop frame.
*/
/**
* @brief This enumeration defines the RX filter register's bitmap. Each bit
* indicates a specific drop frame.
*/
enummt7697_wifi_rx_filter_t{
MT7697_WIFI_RX_FILTER_DROP_STBC_BCN_BC_MC,/**< bit 0 Drops the STBC beacon/BC/MC frames. */
MT7697_WIFI_RX_FILTER_DROP_FCS_ERR,/**< bit 1 Drops the FCS error frames. */
MT7697_WIFI_RX_FILTER_RESERVED,/**< bit 2 A reserved bit, not used. */
MT7697_WIFI_RX_FILTER_DROP_VER_NOT_0,/**< bit 3 Drops the version field of Frame Control field. It cannot be 0. */
MT7697_WIFI_RX_FILTER_DROP_PROBE_REQ,/**< bit 4 Drops the probe request frame. */
MT7697_WIFI_RX_FILTER_DROP_MC_FRAME,/**< bit 5 Drops multicast frame. */
MT7697_WIFI_RX_FILTER_DROP_BC_FRAME,/**< bit 6 Drops broadcast frame. */
MT7697_WIFI_RX_FILTER_RM_FRAME_REPORT_EN=12,/**< bit 12 Enables report frames. */
MT7697_WIFI_RX_FILTER_DROP_CTRL_RSV,/**< bit 13 Drops reserved definition control frames. */
MT7697_WIFI_RX_FILTER_DROP_CTS,/**< bit 14 Drops CTS frames. */
MT7697_WIFI_RX_FILTER_DROP_RTS,/**< bit 15 Drops RTS frames. */
MT7697_WIFI_RX_FILTER_DROP_DUPLICATE,/**< bit 16 Drops duplicate frames. */
MT7697_WIFI_RX_FILTER_DROP_NOT_MY_BSSID,/**< bit 17 Drops not my BSSID frames. */
MT7697_WIFI_RX_FILTER_DROP_NOT_UC2ME,/**< bit 18 Drops not unicast to me frames. */
MT7697_WIFI_RX_FILTER_DROP_DIFF_BSSID_BTIM,/**< bit 19 Drops different BSSID TIM (Traffic Indication Map) Broadcast frame. */
MT7697_WIFI_RX_FILTER_DROP_NDPA/**< bit 20 Drops the NDPA or not. */
MT7697_WIFI_RX_FILTER_DROP_STBC_BCN_BC_MC,/**< bit 0 Drops the STBC beacon/BC/MC frames. */
MT7697_WIFI_RX_FILTER_DROP_FCS_ERR,/**< bit 1 Drops the FCS error frames. */
MT7697_WIFI_RX_FILTER_RESERVED,/**< bit 2 A reserved bit, not used. */
MT7697_WIFI_RX_FILTER_DROP_VER_NOT_0,/**< bit 3 Drops the version field of Frame Control field. It cannot be 0. */
MT7697_WIFI_RX_FILTER_DROP_PROBE_REQ,/**< bit 4 Drops the probe request frame. */
MT7697_WIFI_RX_FILTER_DROP_MC_FRAME,/**< bit 5 Drops multicast frame. */
MT7697_WIFI_RX_FILTER_DROP_BC_FRAME,/**< bit 6 Drops broadcast frame. */
MT7697_WIFI_RX_FILTER_RM_FRAME_REPORT_EN=12,/**< bit 12 Enables report frames. */
MT7697_WIFI_RX_FILTER_DROP_CTRL_RSV,/**< bit 13 Drops reserved definition control frames. */
MT7697_WIFI_RX_FILTER_DROP_CTS,/**< bit 14 Drops CTS frames. */
MT7697_WIFI_RX_FILTER_DROP_RTS,/**< bit 15 Drops RTS frames. */
MT7697_WIFI_RX_FILTER_DROP_DUPLICATE,/**< bit 16 Drops duplicate frames. */
MT7697_WIFI_RX_FILTER_DROP_NOT_MY_BSSID,/**< bit 17 Drops not my BSSID frames. */
MT7697_WIFI_RX_FILTER_DROP_NOT_UC2ME,/**< bit 18 Drops not unicast to me frames. */
MT7697_WIFI_RX_FILTER_DROP_DIFF_BSSID_BTIM,/**< bit 19 Drops different BSSID TIM (Traffic Indication Map) Broadcast frame. */
MT7697_WIFI_RX_FILTER_DROP_NDPA/**< bit 20 Drops the NDPA or not. */
};
/** @brief This structure is the Wi-Fi configuration for initialization in STA mode.
*/
/**
* @brief This structure is the Wi-Fi configuration for initialization in STA
* mode.
*/
structmt7697_wifi_sta_config_t{
u8ssid[IEEE80211_MAX_SSID_LEN];/**< The SSID of the target AP. */
u8ssid_len;/**< The length of the SSID. */
u8bssid_present;/**< The BSSID is present if it is set to 1. Otherwise, it is set to 0. */
u8bssid[ETH_ALEN];/**< The MAC address of the target AP. */
u8pw[MT7697_WIFI_LENGTH_PASSPHRASE];/**< The password of the target AP. */
u8pw_len;/**< The length of the password. */
u8ssid[IEEE80211_MAX_SSID_LEN];/**< The SSID of the target AP. */
u8ssid_len;/**< The length of the SSID. */
u8bssid_present;/**< The BSSID is present if it is set to 1. Otherwise, it is set to 0. */
u8bssid[ETH_ALEN];/**< The MAC address of the target AP. */
u8pw[MT7697_WIFI_LENGTH_PASSPHRASE];/**< The password of the target AP. */
u8pw_len;/**< The length of the password. */
}__attribute__((__packed__));
/** @brief This structure is the Wi-Fi configuration for initialization in AP mode.
*/
structmt7697_wifi_ap_config_t{
u8ssid[IEEE80211_MAX_SSID_LEN];/**< The SSID of the AP. */
u8ssid_len;/**< The length of the SSID. */
u8pw[MT7697_WIFI_LENGTH_PASSPHRASE];/**< The password of the AP. */
u8pw_len;/**< The length of the password. */
u8auth_mode;/**< The authentication mode. */
u8encrypt_type;/**< The encryption mode. */
u8ch;/**< The channel. */
u8bandwidth;/**< The bandwidth that is either #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ or #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ. */
u8bandwidth_ext;/**< The bandwidth extension. It is only applicable when the bandwidth is set to #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ. */
u8ssid[IEEE80211_MAX_SSID_LEN];/**< The SSID of the AP. */
u8ssid_len;/**< The length of the SSID. */
u8pw[MT7697_WIFI_LENGTH_PASSPHRASE];/**< The password of the AP. */
u8pw_len;/**< The length of the password. */
u8auth_mode;/**< The authentication mode. */
u8encrypt_type;/**< The encryption mode. */
u8ch;/**< The channel. */
u8bandwidth;/**< The bandwidth that is either #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ or #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ. */
u8bandwidth_ext;/**< The bandwidth extension. It is only applicable when the bandwidth is set to #WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ. */
}__attribute__((__packed__));
/** @brief Wi-Fi configuration for initialization.
*/
structmt7697_wifi_config_t{
u8opmode;/**< The operation mode. The value should be #WIFI_MODE_STA_ONLY, #WIFI_MODE_AP_ONLY, #WIFI_MODE_REPEATER or #WIFI_MODE_MONITOR*/
structmt7697_wifi_sta_config_tsta;/**< The configurations for the STA. It should be set when the OPMODE is #WIFI_MODE_STA_ONLY or #WIFI_MODE_REPEATER. */
structmt7697_wifi_ap_config_tap;/**< The configurations for the AP. It should be set when the OPMODE is #WIFI_MODE_AP_ONLY or #WIFI_MODE_REPEATER. */
u8opmode;/**< The operation mode. The value should be #WIFI_MODE_STA_ONLY, #WIFI_MODE_AP_ONLY, #WIFI_MODE_REPEATER or #WIFI_MODE_MONITOR*/
structmt7697_wifi_sta_config_tsta;/**< The configurations for the STA. It should be set when the OPMODE is #WIFI_MODE_STA_ONLY or #WIFI_MODE_REPEATER. */
structmt7697_wifi_ap_config_tap;/**< The configurations for the AP. It should be set when the OPMODE is #WIFI_MODE_AP_ONLY or #WIFI_MODE_REPEATER. */