|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "oal_ext_if.h"#include "wal_main.h"#include "hmac_ext_if.h"#include "wal_ioctl.h"#include "wal_ccpriv.h"#include "wal_scan.h"#include "oal_net.h"#include "soc_wifi_driver_wpa_if.h"
结构体 | |
| struct | cookie_arry |
类型定义 | |
| typedef struct cookie_arry | cookie_arry_stru |
函数 | |
| osal_s32 | wal_cfg80211_mgmt_tx_status (hmac_vap_stru *hmac_vap, frw_msg *msg) |
| td_void | wal_cfg80211_reset_bands (td_void) |
| td_u32 | wal_cfg80211_add_vap (const hmac_cfg_add_vap_param_stru *add_vap_param) |
| td_u32 | wal_cfg80211_set_default_key (oal_net_device_stru *netdev, td_u8 key_index, td_bool unicast, td_bool multicast) |
| td_u32 | wal_cfg80211_add_key (oal_net_device_stru *netdev, const cfg80211_add_key_info_stru *cfg80211_add_key_info, const td_u8 *mac_addr, oal_key_params_stru *params) |
| td_u32 | wal_cfg80211_remove_key (oal_net_device_stru *netdev, td_u8 key_index, td_bool pairwise, const td_u8 *mac_addr) |
| td_u32 | wal_cfg80211_p2p_mgmt_tx (oal_wireless_dev *wdev, oal_ieee80211_channel *chan, ext_mlme_data_stru *data, osal_u64 *pull_cookie) |
| td_u32 | wal_cfg80211_mgmt_tx (oal_net_device_stru *netdev, oal_ieee80211_channel *chan, ext_mlme_data_stru *mlme_data) |
| td_u32 | wal_cfg80211_intf_mode_check (oal_net_device_stru *netdev, nl80211_iftype_uint8 type) |
| td_u32 | wal_cfg80211_scan (oal_cfg80211_scan_request_stru *request, hmac_scan_stru *scan_mgmt) |
| td_s32 | uapi_wifi_app_service (const td_char *ifname, td_void *buf) |
| td_u32 | wal_cfg80211_del_station (oal_net_device_stru *netdev, const td_u8 *mac_addr) |
| td_u32 | wal_cfg80211_start_ap (oal_net_device_stru *netdev, oal_ap_settings_stru *ap_settings) |
| td_u32 | wal_cfg80211_change_beacon (oal_net_device_stru *netdev, oal_beacon_data_stru *beacon_info) |
| td_u32 | wal_cfg80211_disconnect (oal_net_device_stru *netdev, td_u16 reason_code) |
| td_u32 | wal_cfg80211_connect (oal_net_device_stru *netdev, oal_cfg80211_connect_params_stru *sme) |
| td_u32 | wal_cfg80211_set_pmksa (oal_net_device_stru *netdev, const ext_pmkid_params *pmkid_params) |
| osal_s32 | wal_report_csa_done (hmac_vap_stru *hmac_vap, frw_msg *msg) |
| td_u32 | wal_cfg80211_remove_pmksa (oal_net_device_stru *netdev, const ext_pmkid_params *pmkid_params) |
| td_u32 | wal_cfg80211_flush_pmksa (oal_net_device_stru *netdev) |
| oal_ieee80211_channel * | wal_get_g_wifi_2ghz_channels (td_void) |
| oal_ieee80211_supported_band * | wal_get_wifi_2ghz_band (td_void) |
| oal_ieee80211_channel * | wal_cfg80211_get_channel (td_s32 freq) |
| td_u32 | wal_cfg80211_del_beacon (oal_net_device_stru *netdev) |
| #define chan2g | ( | _channel, | |
| _freq, | |||
| _flags | |||
| ) |
| #define IEEE80211_FCTL_FTYPE 0x000c |
| #define IEEE80211_FCTL_STYPE 0x00f0 |
| #define IEEE80211_FTYPE_MGMT 0x0000 |
| #define IEEE80211_HT_CAP_40MHZ_INTOLERANT 0x4000 |
| #define IEEE80211_HT_CAP_DELAY_BA 0x0400 |
| #define IEEE80211_HT_CAP_DSSSCCK40 0x1000 |
| #define IEEE80211_HT_CAP_GRN_FLD 0x0010 |
| #define IEEE80211_HT_CAP_LDPC_CODING 0x0001 |
| #define IEEE80211_HT_CAP_LSIG_TXOP_PROT 0x8000 |
| #define IEEE80211_HT_CAP_MAX_AMSDU 0x0800 |
| #define IEEE80211_HT_CAP_RESERVED 0x2000 |
| #define IEEE80211_HT_CAP_RX_STBC 0x0300 |
| #define IEEE80211_HT_CAP_SGI_20 0x0020 |
| #define IEEE80211_HT_CAP_SGI_40 0x0040 |
| #define IEEE80211_HT_CAP_SM_PS 0x000C |
| #define IEEE80211_HT_CAP_SM_PS_SHIFT 2 |
| #define IEEE80211_HT_CAP_SUP_WIDTH_20_40 0x0002 |
| #define IEEE80211_HT_CAP_TX_STBC 0x0080 |
| #define IEEE80211_STYPE_ACTION 0x00D0 |
| #define IEEE80211_STYPE_ASSOC_REQ 0x0000 |
| #define IEEE80211_STYPE_ASSOC_RESP 0x0010 |
| #define IEEE80211_STYPE_ATIM 0x0090 |
| #define IEEE80211_STYPE_AUTH 0x00B0 |
| #define IEEE80211_STYPE_BEACON 0x0080 |
| #define IEEE80211_STYPE_DEAUTH 0x00C0 |
| #define IEEE80211_STYPE_DISASSOC 0x00A0 |
| #define IEEE80211_STYPE_PROBE_REQ 0x0040 |
| #define IEEE80211_STYPE_PROBE_RESP 0x0050 |
| #define IEEE80211_STYPE_REASSOC_REQ 0x0020 |
| #define IEEE80211_STYPE_REASSOC_RESP 0x0030 |
| #define IEEE80211_VHT_CAP_BEAMFORMER_ANTENNAS_MAX 0x00006000 |
| #define IEEE80211_VHT_CAP_HTC_VHT 0x00400000 |
| #define IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK (7 << IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT) |
| #define IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT 23 |
| #define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 0x00000002 |
| #define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 0x00000000 |
| #define IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991 0x00000001 |
| #define IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE 0x00100000 |
| #define IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE 0x00080000 |
| #define IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN 0x10000000 |
| #define IEEE80211_VHT_CAP_RXLDPC 0x00000010 |
| #define IEEE80211_VHT_CAP_RXSTBC_1 0x00000100 |
| #define IEEE80211_VHT_CAP_RXSTBC_2 0x00000200 |
| #define IEEE80211_VHT_CAP_RXSTBC_3 0x00000300 |
| #define IEEE80211_VHT_CAP_RXSTBC_4 0x00000400 |
| #define IEEE80211_VHT_CAP_RXSTBC_MASK 0x00000700 |
| #define IEEE80211_VHT_CAP_SHORT_GI_160 0x00000040 |
| #define IEEE80211_VHT_CAP_SHORT_GI_80 0x00000020 |
| #define IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MAX 0x00030000 |
| #define IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE 0x00001000 |
| #define IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE 0x00000800 |
| #define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ 0x00000008 |
| #define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ 0x00000004 |
| #define IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK 0x0000000C |
| #define IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN 0x20000000 |
| #define IEEE80211_VHT_CAP_TXSTBC 0x00000080 |
| #define IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB 0x0c000000 |
| #define IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_UNSOL_MFB 0x08000000 |
| #define IEEE80211_VHT_CAP_VHT_TXOP_PS 0x00200000 |
| #define ratetab_ent | ( | _rate, | |
| _rateid, | |||
| _flags | |||
| ) |
| #define WAL_COOKIE_ARRAY_SIZE 8 /* 采用8bit 的map 作为保存cookie 的索引状态 */ |
| #define WAL_GET_STATION_THRESHOLD 1000 /* 固定时间内允许一次抛事件读DMAC RSSI */ |
| #define WAL_MAX_CHANNEL_2G 14 |
| #define WAL_MAX_FRAG_THRESHOLD 7536 |
| #define WAL_MAX_FREQ_2G 2484 |
| #define WAL_MAX_RTS_THRESHOLD 0xFFFF |
| #define WAL_MAX_SCAN_IE_LEN 1000 |
| #define WAL_MAX_SCAN_TIME_PER_CHANNEL 400 |
| #define WAL_MAX_SCAN_TIME_PER_SCAN_REQ (5 * 1000) /* wpa_s下发扫描请求,超时时间为5s,单位为ms */ |
| #define WAL_MAX_WAIT_TIME 3000 |
| #define WAL_MGMT_TX_RETRY_CNT 8 /* WAL 发送管理帧最大重传次数 */ |
| #define WAL_MGMT_TX_TIMEOUT_MSEC 500 /* WAL 发送管理帧超时时间 */ |
| #define WAL_MIN_CHANNEL_2G 1 |
| #define WAL_MIN_FRAG_THRESHOLD 256 |
| #define WAL_MIN_FREQ_2G (2412 + 5*(WAL_MIN_CHANNEL_2G - 1)) |
| #define WAL_MIN_RTS_THRESHOLD 256 |
| typedef struct cookie_arry cookie_arry_stru |
| td_u32 wal_cfg80211_add_key | ( | oal_net_device_stru * | netdev, |
| const cfg80211_add_key_info_stru * | cfg80211_add_key_info, | ||
| const td_u8 * | mac_addr, | ||
| oal_key_params_stru * | params | ||
| ) |
| td_u32 wal_cfg80211_add_vap | ( | const hmac_cfg_add_vap_param_stru * | add_vap_param | ) |
| td_u32 wal_cfg80211_change_beacon | ( | oal_net_device_stru * | netdev, |
| oal_beacon_data_stru * | beacon_info | ||
| ) |
| td_u32 wal_cfg80211_connect | ( | oal_net_device_stru * | netdev, |
| oal_cfg80211_connect_params_stru * | sme | ||
| ) |
| td_u32 wal_cfg80211_del_beacon | ( | oal_net_device_stru * | netdev | ) |
| td_u32 wal_cfg80211_flush_pmksa | ( | oal_net_device_stru * | netdev | ) |
| oal_ieee80211_channel * wal_cfg80211_get_channel | ( | td_s32 | freq | ) |
| td_u32 wal_cfg80211_intf_mode_check | ( | oal_net_device_stru * | netdev, |
| nl80211_iftype_uint8 | type | ||
| ) |
| td_u32 wal_cfg80211_mgmt_tx | ( | oal_net_device_stru * | netdev, |
| oal_ieee80211_channel * | chan, | ||
| ext_mlme_data_stru * | mlme_data | ||
| ) |
| osal_s32 wal_cfg80211_mgmt_tx_status | ( | hmac_vap_stru * | hmac_vap, |
| frw_msg * | msg | ||
| ) |
| td_u32 wal_cfg80211_p2p_mgmt_tx | ( | oal_wireless_dev * | wdev, |
| oal_ieee80211_channel * | chan, | ||
| ext_mlme_data_stru * | data, | ||
| osal_u64 * | pull_cookie | ||
| ) |
| td_u32 wal_cfg80211_remove_key | ( | oal_net_device_stru * | netdev, |
| td_u8 | key_index, | ||
| td_bool | pairwise, | ||
| const td_u8 * | mac_addr | ||
| ) |
| td_u32 wal_cfg80211_remove_pmksa | ( | oal_net_device_stru * | netdev, |
| const ext_pmkid_params * | pmkid_params | ||
| ) |
| td_u32 wal_cfg80211_scan | ( | oal_cfg80211_scan_request_stru * | request, |
| hmac_scan_stru * | scan_mgmt | ||
| ) |
| td_u32 wal_cfg80211_set_default_key | ( | oal_net_device_stru * | netdev, |
| td_u8 | key_index, | ||
| td_bool | unicast, | ||
| td_bool | multicast | ||
| ) |
| td_u32 wal_cfg80211_set_pmksa | ( | oal_net_device_stru * | netdev, |
| const ext_pmkid_params * | pmkid_params | ||
| ) |
| td_u32 wal_cfg80211_start_ap | ( | oal_net_device_stru * | netdev, |
| oal_ap_settings_stru * | ap_settings | ||
| ) |
| oal_ieee80211_channel * wal_get_g_wifi_2ghz_channels | ( | td_void | ) |
| oal_ieee80211_supported_band * wal_get_wifi_2ghz_band | ( | td_void | ) |
| osal_s32 wal_report_csa_done | ( | hmac_vap_stru * | hmac_vap, |
| frw_msg * | msg | ||
| ) |