diff options
Diffstat (limited to 'drivers/net/wireless/sd8797/mlan/mlan_decl.h')
-rw-r--r-- | drivers/net/wireless/sd8797/mlan/mlan_decl.h | 565 |
1 files changed, 284 insertions, 281 deletions
diff --git a/drivers/net/wireless/sd8797/mlan/mlan_decl.h b/drivers/net/wireless/sd8797/mlan/mlan_decl.h index 28ab785045e3..60d4659cef39 100644 --- a/drivers/net/wireless/sd8797/mlan/mlan_decl.h +++ b/drivers/net/wireless/sd8797/mlan/mlan_decl.h @@ -2,7 +2,7 @@ * * @brief This file declares the generic data structures and APIs. * - * Copyright (C) 2008-2011, Marvell International Ltd. + * Copyright (C) 2008-2011, Marvell International Ltd. * * This software file (the "File") is distributed by Marvell International * Ltd. under the terms of the GNU General Public License Version 2, June 1991 @@ -27,7 +27,7 @@ Change log: #define _MLAN_DECL_H_ /** MLAN release version */ -#define MLAN_RELEASE_VERSION "394" +#define MLAN_RELEASE_VERSION "404" /** Re-define generic data types for MLAN/MOAL */ /** Signed char (1-byte) */ @@ -293,68 +293,68 @@ typedef t_u8 mlan_802_11_mac_addr[MLAN_MAC_ADDR_LENGTH]; /** mlan_status */ typedef enum _mlan_status { - MLAN_STATUS_FAILURE = 0xffffffff, - MLAN_STATUS_SUCCESS = 0, - MLAN_STATUS_PENDING, - MLAN_STATUS_RESOURCE, + MLAN_STATUS_FAILURE = 0xffffffff, + MLAN_STATUS_SUCCESS = 0, + MLAN_STATUS_PENDING, + MLAN_STATUS_RESOURCE, } mlan_status; /** mlan_error_code */ typedef enum _mlan_error_code { /** No error */ - MLAN_ERROR_NO_ERROR = 0, + MLAN_ERROR_NO_ERROR = 0, /** Firmware/device errors below (MSB=0) */ - MLAN_ERROR_FW_NOT_READY = 0x00000001, - MLAN_ERROR_FW_BUSY = 0x00000002, - MLAN_ERROR_FW_CMDRESP = 0x00000003, - MLAN_ERROR_DATA_TX_FAIL = 0x00000004, - MLAN_ERROR_DATA_RX_FAIL = 0x00000005, + MLAN_ERROR_FW_NOT_READY = 0x00000001, + MLAN_ERROR_FW_BUSY = 0x00000002, + MLAN_ERROR_FW_CMDRESP = 0x00000003, + MLAN_ERROR_DATA_TX_FAIL = 0x00000004, + MLAN_ERROR_DATA_RX_FAIL = 0x00000005, /** Driver errors below (MSB=1) */ - MLAN_ERROR_PKT_SIZE_INVALID = 0x80000001, - MLAN_ERROR_PKT_TIMEOUT = 0x80000002, - MLAN_ERROR_PKT_INVALID = 0x80000003, - MLAN_ERROR_CMD_INVALID = 0x80000004, - MLAN_ERROR_CMD_TIMEOUT = 0x80000005, - MLAN_ERROR_CMD_DNLD_FAIL = 0x80000006, - MLAN_ERROR_CMD_CANCEL = 0x80000007, - MLAN_ERROR_CMD_RESP_FAIL = 0x80000008, - MLAN_ERROR_CMD_ASSOC_FAIL = 0x80000009, - MLAN_ERROR_CMD_SCAN_FAIL = 0x8000000A, - MLAN_ERROR_IOCTL_INVALID = 0x8000000B, - MLAN_ERROR_IOCTL_FAIL = 0x8000000C, - MLAN_ERROR_EVENT_UNKNOWN = 0x8000000D, - MLAN_ERROR_INVALID_PARAMETER = 0x8000000E, - MLAN_ERROR_NO_MEM = 0x8000000F, + MLAN_ERROR_PKT_SIZE_INVALID = 0x80000001, + MLAN_ERROR_PKT_TIMEOUT = 0x80000002, + MLAN_ERROR_PKT_INVALID = 0x80000003, + MLAN_ERROR_CMD_INVALID = 0x80000004, + MLAN_ERROR_CMD_TIMEOUT = 0x80000005, + MLAN_ERROR_CMD_DNLD_FAIL = 0x80000006, + MLAN_ERROR_CMD_CANCEL = 0x80000007, + MLAN_ERROR_CMD_RESP_FAIL = 0x80000008, + MLAN_ERROR_CMD_ASSOC_FAIL = 0x80000009, + MLAN_ERROR_CMD_SCAN_FAIL = 0x8000000A, + MLAN_ERROR_IOCTL_INVALID = 0x8000000B, + MLAN_ERROR_IOCTL_FAIL = 0x8000000C, + MLAN_ERROR_EVENT_UNKNOWN = 0x8000000D, + MLAN_ERROR_INVALID_PARAMETER = 0x8000000E, + MLAN_ERROR_NO_MEM = 0x8000000F, /** More to add */ } mlan_error_code; /** mlan_buf_type */ typedef enum _mlan_buf_type { - MLAN_BUF_TYPE_CMD = 1, - MLAN_BUF_TYPE_DATA, - MLAN_BUF_TYPE_EVENT, - MLAN_BUF_TYPE_RAW_DATA, + MLAN_BUF_TYPE_CMD = 1, + MLAN_BUF_TYPE_DATA, + MLAN_BUF_TYPE_EVENT, + MLAN_BUF_TYPE_RAW_DATA, } mlan_buf_type; /** MLAN BSS type */ typedef enum _mlan_bss_type { - MLAN_BSS_TYPE_STA = 0, - MLAN_BSS_TYPE_UAP = 1, + MLAN_BSS_TYPE_STA = 0, + MLAN_BSS_TYPE_UAP = 1, #ifdef WIFI_DIRECT_SUPPORT - MLAN_BSS_TYPE_WIFIDIRECT = 2, + MLAN_BSS_TYPE_WIFIDIRECT = 2, #endif - MLAN_BSS_TYPE_ANY = 0xff, + MLAN_BSS_TYPE_ANY = 0xff, } mlan_bss_type; /** MLAN BSS role */ typedef enum _mlan_bss_role { - MLAN_BSS_ROLE_STA = 0, - MLAN_BSS_ROLE_UAP = 1, - MLAN_BSS_ROLE_ANY = 0xff, + MLAN_BSS_ROLE_STA = 0, + MLAN_BSS_ROLE_UAP = 1, + MLAN_BSS_ROLE_ANY = 0xff, } mlan_bss_role; /** BSS role bit mask */ @@ -366,69 +366,69 @@ typedef enum _mlan_bss_role /** mlan_data_frame_type */ typedef enum _mlan_data_frame_type { - MLAN_DATA_FRAME_TYPE_ETH_II = 0, - MLAN_DATA_FRAME_TYPE_802_11, + MLAN_DATA_FRAME_TYPE_ETH_II = 0, + MLAN_DATA_FRAME_TYPE_802_11, } mlan_data_frame_type; /** mlan_event_id */ typedef enum _mlan_event_id { - /* Event generated by firmware (MSB=0) */ - MLAN_EVENT_ID_FW_UNKNOWN = 0x00000001, - MLAN_EVENT_ID_FW_ADHOC_LINK_SENSED = 0x00000002, - MLAN_EVENT_ID_FW_ADHOC_LINK_LOST = 0x00000003, - MLAN_EVENT_ID_FW_DISCONNECTED = 0x00000004, - MLAN_EVENT_ID_FW_MIC_ERR_UNI = 0x00000005, - MLAN_EVENT_ID_FW_MIC_ERR_MUL = 0x00000006, - MLAN_EVENT_ID_FW_BCN_RSSI_LOW = 0x00000007, - MLAN_EVENT_ID_FW_BCN_RSSI_HIGH = 0x00000008, - MLAN_EVENT_ID_FW_BCN_SNR_LOW = 0x00000009, - MLAN_EVENT_ID_FW_BCN_SNR_HIGH = 0x0000000A, - MLAN_EVENT_ID_FW_MAX_FAIL = 0x0000000B, - MLAN_EVENT_ID_FW_DATA_RSSI_LOW = 0x0000000C, - MLAN_EVENT_ID_FW_DATA_RSSI_HIGH = 0x0000000D, - MLAN_EVENT_ID_FW_DATA_SNR_LOW = 0x0000000E, - MLAN_EVENT_ID_FW_DATA_SNR_HIGH = 0x0000000F, - MLAN_EVENT_ID_FW_LINK_QUALITY = 0x00000010, - MLAN_EVENT_ID_FW_PORT_RELEASE = 0x00000011, - MLAN_EVENT_ID_FW_PRE_BCN_LOST = 0x00000012, - MLAN_EVENT_ID_FW_DEBUG_INFO = 0x00000013, - MLAN_EVENT_ID_FW_WMM_CONFIG_CHANGE = 0x0000001A, - MLAN_EVENT_ID_FW_HS_WAKEUP = 0x0000001B, - MLAN_EVENT_ID_FW_BG_SCAN = 0x0000001D, - MLAN_EVENT_ID_FW_BG_SCAN_STOPPED = 0x0000001E, - MLAN_EVENT_ID_FW_WEP_ICV_ERR = 0x00000020, - MLAN_EVENT_ID_FW_STOP_TX = 0x00000021, - MLAN_EVENT_ID_FW_START_TX = 0x00000022, - MLAN_EVENT_ID_FW_CHANNEL_SWITCH_ANN = 0x00000023, - MLAN_EVENT_ID_FW_RADAR_DETECTED = 0x00000024, - MLAN_EVENT_ID_FW_CHANNEL_REPORT_RDY = 0x00000025, - MLAN_EVENT_ID_FW_BW_CHANGED = 0x00000026, + /* Event generated by firmware (MSB=0) */ + MLAN_EVENT_ID_FW_UNKNOWN = 0x00000001, + MLAN_EVENT_ID_FW_ADHOC_LINK_SENSED = 0x00000002, + MLAN_EVENT_ID_FW_ADHOC_LINK_LOST = 0x00000003, + MLAN_EVENT_ID_FW_DISCONNECTED = 0x00000004, + MLAN_EVENT_ID_FW_MIC_ERR_UNI = 0x00000005, + MLAN_EVENT_ID_FW_MIC_ERR_MUL = 0x00000006, + MLAN_EVENT_ID_FW_BCN_RSSI_LOW = 0x00000007, + MLAN_EVENT_ID_FW_BCN_RSSI_HIGH = 0x00000008, + MLAN_EVENT_ID_FW_BCN_SNR_LOW = 0x00000009, + MLAN_EVENT_ID_FW_BCN_SNR_HIGH = 0x0000000A, + MLAN_EVENT_ID_FW_MAX_FAIL = 0x0000000B, + MLAN_EVENT_ID_FW_DATA_RSSI_LOW = 0x0000000C, + MLAN_EVENT_ID_FW_DATA_RSSI_HIGH = 0x0000000D, + MLAN_EVENT_ID_FW_DATA_SNR_LOW = 0x0000000E, + MLAN_EVENT_ID_FW_DATA_SNR_HIGH = 0x0000000F, + MLAN_EVENT_ID_FW_LINK_QUALITY = 0x00000010, + MLAN_EVENT_ID_FW_PORT_RELEASE = 0x00000011, + MLAN_EVENT_ID_FW_PRE_BCN_LOST = 0x00000012, + MLAN_EVENT_ID_FW_DEBUG_INFO = 0x00000013, + MLAN_EVENT_ID_FW_WMM_CONFIG_CHANGE = 0x0000001A, + MLAN_EVENT_ID_FW_HS_WAKEUP = 0x0000001B, + MLAN_EVENT_ID_FW_BG_SCAN = 0x0000001D, + MLAN_EVENT_ID_FW_BG_SCAN_STOPPED = 0x0000001E, + MLAN_EVENT_ID_FW_WEP_ICV_ERR = 0x00000020, + MLAN_EVENT_ID_FW_STOP_TX = 0x00000021, + MLAN_EVENT_ID_FW_START_TX = 0x00000022, + MLAN_EVENT_ID_FW_CHANNEL_SWITCH_ANN = 0x00000023, + MLAN_EVENT_ID_FW_RADAR_DETECTED = 0x00000024, + MLAN_EVENT_ID_FW_CHANNEL_REPORT_RDY = 0x00000025, + MLAN_EVENT_ID_FW_BW_CHANGED = 0x00000026, #ifdef WIFI_DIRECT_SUPPORT - MLAN_EVENT_ID_FW_REMAIN_ON_CHAN_EXPIRED = 0x0000002B, + MLAN_EVENT_ID_FW_REMAIN_ON_CHAN_EXPIRED = 0x0000002B, #endif #ifdef UAP_SUPPORT - MLAN_EVENT_ID_UAP_FW_BSS_START = 0x0000002C, - MLAN_EVENT_ID_UAP_FW_BSS_ACTIVE = 0x0000002D, - MLAN_EVENT_ID_UAP_FW_BSS_IDLE = 0x0000002E, - MLAN_EVENT_ID_UAP_FW_STA_CONNECT = 0x00000030, - MLAN_EVENT_ID_UAP_FW_STA_DISCONNECT = 0x00000031, + MLAN_EVENT_ID_UAP_FW_BSS_START = 0x0000002C, + MLAN_EVENT_ID_UAP_FW_BSS_ACTIVE = 0x0000002D, + MLAN_EVENT_ID_UAP_FW_BSS_IDLE = 0x0000002E, + MLAN_EVENT_ID_UAP_FW_STA_CONNECT = 0x00000030, + MLAN_EVENT_ID_UAP_FW_STA_DISCONNECT = 0x00000031, #endif - /* Event generated by MLAN driver (MSB=1) */ - MLAN_EVENT_ID_DRV_CONNECTED = 0x80000001, - MLAN_EVENT_ID_DRV_DEFER_HANDLING = 0x80000002, - MLAN_EVENT_ID_DRV_HS_ACTIVATED = 0x80000003, - MLAN_EVENT_ID_DRV_HS_DEACTIVATED = 0x80000004, - MLAN_EVENT_ID_DRV_MGMT_FRAME = 0x80000005, - MLAN_EVENT_ID_DRV_OBSS_SCAN_PARAM = 0x80000006, - MLAN_EVENT_ID_DRV_PASSTHRU = 0x80000007, - MLAN_EVENT_ID_DRV_SCAN_REPORT = 0x80000009, - MLAN_EVENT_ID_DRV_MEAS_REPORT = 0x8000000A, - MLAN_EVENT_ID_DRV_ASSOC_FAILURE_REPORT = 0x8000000B, - MLAN_EVENT_ID_DRV_REPORT_STRING = 0x8000000F, - MLAN_EVENT_ID_DRV_DBG_DUMP = 0x80000012, - MLAN_EVENT_ID_DRV_BGSCAN_RESULT = 0x80000013, + /* Event generated by MLAN driver (MSB=1) */ + MLAN_EVENT_ID_DRV_CONNECTED = 0x80000001, + MLAN_EVENT_ID_DRV_DEFER_HANDLING = 0x80000002, + MLAN_EVENT_ID_DRV_HS_ACTIVATED = 0x80000003, + MLAN_EVENT_ID_DRV_HS_DEACTIVATED = 0x80000004, + MLAN_EVENT_ID_DRV_MGMT_FRAME = 0x80000005, + MLAN_EVENT_ID_DRV_OBSS_SCAN_PARAM = 0x80000006, + MLAN_EVENT_ID_DRV_PASSTHRU = 0x80000007, + MLAN_EVENT_ID_DRV_SCAN_REPORT = 0x80000009, + MLAN_EVENT_ID_DRV_MEAS_REPORT = 0x8000000A, + MLAN_EVENT_ID_DRV_ASSOC_FAILURE_REPORT = 0x8000000B, + MLAN_EVENT_ID_DRV_REPORT_STRING = 0x8000000F, + MLAN_EVENT_ID_DRV_DBG_DUMP = 0x80000012, + MLAN_EVENT_ID_DRV_BGSCAN_RESULT = 0x80000013, } mlan_event_id; /** Data Structures */ @@ -436,22 +436,22 @@ typedef enum _mlan_event_id typedef struct _mlan_fw_image { /** Helper image buffer pointer */ - t_u8 *phelper_buf; + t_u8 *phelper_buf; /** Helper image length */ - t_u32 helper_len; + t_u32 helper_len; /** Firmware image buffer pointer */ - t_u8 *pfw_buf; + t_u8 *pfw_buf; /** Firmware image length */ - t_u32 fw_len; + t_u32 fw_len; } mlan_fw_image, *pmlan_fw_image; /** Custom data structure */ typedef struct _mlan_init_param { /** Cal data buffer pointer */ - t_u8 *pcal_data_buf; + t_u8 *pcal_data_buf; /** Cal data length */ - t_u32 cal_data_len; + t_u32 cal_data_len; /** Other custom data */ } mlan_init_param, *pmlan_init_param; @@ -459,115 +459,115 @@ typedef struct _mlan_init_param typedef struct _mlan_event { /** BSS index number for multiple BSS support */ - t_u32 bss_index; + t_u32 bss_index; /** Event ID */ - mlan_event_id event_id; + mlan_event_id event_id; /** Event length */ - t_u32 event_len; + t_u32 event_len; /** Event buffer */ - t_u8 event_buf[1]; + t_u8 event_buf[1]; } mlan_event, *pmlan_event; /** mlan_event_scan_result data structure */ typedef MLAN_PACK_START struct _mlan_event_scan_result { /** Event ID */ - t_u16 event_id; + t_u16 event_id; /** BSS index number for multiple BSS support */ - t_u8 bss_index; + t_u8 bss_index; /** BSS type */ - t_u8 bss_type; + t_u8 bss_type; /** More event available or not */ - t_u8 more_event; + t_u8 more_event; /** Reserved */ - t_u8 reserved[3]; + t_u8 reserved[3]; /** Size of the response buffer */ - t_u16 buf_size; + t_u16 buf_size; /** Number of BSS in scan response */ - t_u8 num_of_set; + t_u8 num_of_set; } MLAN_PACK_END mlan_event_scan_result, *pmlan_event_scan_result; /** mlan_ioctl_req data structure */ typedef struct _mlan_ioctl_req { /** Status code from firmware/driver */ - t_u32 status_code; + t_u32 status_code; /** BSS index number for multiple BSS support */ - t_u32 bss_index; + t_u32 bss_index; /** Request id */ - t_u32 req_id; + t_u32 req_id; /** Action: set or get */ - t_u32 action; + t_u32 action; /** Pointer to buffer */ - t_u8 *pbuf; + t_u8 *pbuf; /** Length of buffer */ - t_u32 buf_len; + t_u32 buf_len; /** Length of the data read/written in buffer */ - t_u32 data_read_written; + t_u32 data_read_written; /** Length of buffer needed */ - t_u32 buf_len_needed; + t_u32 buf_len_needed; /** Reserved for MOAL module */ - t_ptr reserved_1; + t_ptr reserved_1; } mlan_ioctl_req, *pmlan_ioctl_req; /** mlan_buffer data structure */ typedef struct _mlan_buffer { /** Pointer to previous mlan_buffer */ - struct _mlan_buffer *pprev; + struct _mlan_buffer *pprev; /** Pointer to next mlan_buffer */ - struct _mlan_buffer *pnext; + struct _mlan_buffer *pnext; /** Status code from firmware/driver */ - t_u32 status_code; + t_u32 status_code; /** Flags for this buffer */ - t_u32 flags; + t_u32 flags; /** BSS index number for multiple BSS support */ - t_u32 bss_index; + t_u32 bss_index; /** Buffer descriptor, e.g. skb in Linux */ - t_void *pdesc; + t_void *pdesc; /** Pointer to buffer */ - t_u8 *pbuf; + t_u8 *pbuf; /** Offset to data */ - t_u32 data_offset; + t_u32 data_offset; /** Data length */ - t_u32 data_len; + t_u32 data_len; /** Buffer type: data, cmd, event etc. */ - mlan_buf_type buf_type; + mlan_buf_type buf_type; /** Fields below are valid for data packet only */ /** QoS priority */ - t_u32 priority; + t_u32 priority; /** Time stamp when packet is received (seconds) */ - t_u32 in_ts_sec; + t_u32 in_ts_sec; /** Time stamp when packet is received (micro seconds) */ - t_u32 in_ts_usec; + t_u32 in_ts_usec; /** Time stamp when packet is processed (seconds) */ - t_u32 out_ts_sec; + t_u32 out_ts_sec; /** Time stamp when packet is processed (micro seconds) */ - t_u32 out_ts_usec; + t_u32 out_ts_usec; /** Fields below are valid for MLAN module only */ /** Pointer to parent mlan_buffer */ - struct _mlan_buffer *pparent; + struct _mlan_buffer *pparent; /** Use count for this buffer */ - t_u32 use_count; + t_u32 use_count; } mlan_buffer, *pmlan_buffer; /** mlan_bss_attr data structure */ typedef struct _mlan_bss_attr { /** BSS type */ - t_u32 bss_type; + t_u32 bss_type; /** Data frame type: Ethernet II, 802.11, etc. */ - t_u32 frame_type; + t_u32 frame_type; /** The BSS is active (non-0) or not (0). */ - t_u32 active; + t_u32 active; /** BSS Priority */ - t_u32 bss_priority; + t_u32 bss_priority; /** BSS number */ - t_u32 bss_num; + t_u32 bss_num; /** The BSS is virtual */ - t_u32 bss_virtual; + t_u32 bss_virtual; } mlan_bss_attr, *pmlan_bss_attr; #ifdef PRAGMA_PACK @@ -577,39 +577,39 @@ typedef struct _mlan_bss_attr /** Type enumeration for the command result */ typedef MLAN_PACK_START enum _mlan_cmd_result_e { - MLAN_CMD_RESULT_SUCCESS = 0, - MLAN_CMD_RESULT_FAILURE = 1, - MLAN_CMD_RESULT_TIMEOUT = 2, - MLAN_CMD_RESULT_INVALID_DATA = 3 + MLAN_CMD_RESULT_SUCCESS = 0, + MLAN_CMD_RESULT_FAILURE = 1, + MLAN_CMD_RESULT_TIMEOUT = 2, + MLAN_CMD_RESULT_INVALID_DATA = 3 } MLAN_PACK_END mlan_cmd_result_e; /** Type enumeration of WMM AC_QUEUES */ typedef MLAN_PACK_START enum _mlan_wmm_ac_e { - WMM_AC_BK, - WMM_AC_BE, - WMM_AC_VI, - WMM_AC_VO + WMM_AC_BK, + WMM_AC_BE, + WMM_AC_VI, + WMM_AC_VO } MLAN_PACK_END mlan_wmm_ac_e; /** Type enumeration for the action field in the Queue Config command */ typedef MLAN_PACK_START enum _mlan_wmm_queue_config_action_e { - MLAN_WMM_QUEUE_CONFIG_ACTION_GET = 0, - MLAN_WMM_QUEUE_CONFIG_ACTION_SET = 1, - MLAN_WMM_QUEUE_CONFIG_ACTION_DEFAULT = 2, - MLAN_WMM_QUEUE_CONFIG_ACTION_MAX + MLAN_WMM_QUEUE_CONFIG_ACTION_GET = 0, + MLAN_WMM_QUEUE_CONFIG_ACTION_SET = 1, + MLAN_WMM_QUEUE_CONFIG_ACTION_DEFAULT = 2, + MLAN_WMM_QUEUE_CONFIG_ACTION_MAX } MLAN_PACK_END mlan_wmm_queue_config_action_e; /** Type enumeration for the action field in the queue stats command */ typedef MLAN_PACK_START enum _mlan_wmm_queue_stats_action_e { - MLAN_WMM_STATS_ACTION_START = 0, - MLAN_WMM_STATS_ACTION_STOP = 1, - MLAN_WMM_STATS_ACTION_GET_CLR = 2, - MLAN_WMM_STATS_ACTION_SET_CFG = 3, /* Not currently used */ - MLAN_WMM_STATS_ACTION_GET_CFG = 4, /* Not currently used */ - MLAN_WMM_STATS_ACTION_MAX + MLAN_WMM_STATS_ACTION_START = 0, + MLAN_WMM_STATS_ACTION_STOP = 1, + MLAN_WMM_STATS_ACTION_GET_CLR = 2, + MLAN_WMM_STATS_ACTION_SET_CFG = 3, /* Not currently used */ + MLAN_WMM_STATS_ACTION_GET_CFG = 4, /* Not currently used */ + MLAN_WMM_STATS_ACTION_MAX } MLAN_PACK_END mlan_wmm_queue_stats_action_e; /** @@ -619,22 +619,22 @@ typedef MLAN_PACK_START enum _mlan_wmm_queue_stats_action_e typedef MLAN_PACK_START struct { /** TSID: Range: 0->7 */ - t_u8 tid; + t_u8 tid; /** TSID specified is valid */ - t_u8 valid; + t_u8 valid; /** AC TSID is active on */ - t_u8 access_category; + t_u8 access_category; /** UP specified for the TSID */ - t_u8 user_priority; + t_u8 user_priority; /** Power save mode for TSID: 0 (legacy), 1 (UAPSD) */ - t_u8 psb; + t_u8 psb; /** Upstream(0), Downlink(1), Bidirectional(3) */ - t_u8 flow_dir; + t_u8 flow_dir; /** Medium time granted for the TSID */ - t_u16 medium_time; + t_u16 medium_time; } MLAN_PACK_END wlan_ioctl_wmm_ts_status_t, /** Type definition of mlan_ds_wmm_ts_status for MLAN_OID_WMM_CFG_TS_STATUS */ - mlan_ds_wmm_ts_status, *pmlan_ds_wmm_ts_status; + mlan_ds_wmm_ts_status, *pmlan_ds_wmm_ts_status; /** Max Ie length */ #define MAX_IE_SIZE 256 @@ -643,13 +643,13 @@ typedef MLAN_PACK_START struct typedef MLAN_PACK_START struct _custom_ie { /** IE Index */ - t_u16 ie_index; + t_u16 ie_index; /** Mgmt Subtype Mask */ - t_u16 mgmt_subtype_mask; + t_u16 mgmt_subtype_mask; /** IE Length */ - t_u16 ie_length; + t_u16 ie_length; /** IE buffer */ - t_u8 ie_buffer[MAX_IE_SIZE]; + t_u8 ie_buffer[MAX_IE_SIZE]; } MLAN_PACK_END custom_ie; /** Max IE index to FW */ @@ -661,35 +661,35 @@ typedef MLAN_PACK_START struct _custom_ie typedef MLAN_PACK_START struct _custom_ie_info { /** size of buffer */ - t_u16 buf_size; + t_u16 buf_size; /** no of buffers of buf_size */ - t_u16 buf_count; + t_u16 buf_count; } MLAN_PACK_END custom_ie_info; /** TLV buffer : Max Mgmt IE */ typedef MLAN_PACK_START struct _tlvbuf_max_mgmt_ie { /** Type */ - t_u16 type; + t_u16 type; /** Length */ - t_u16 len; + t_u16 len; /** No of tuples */ - t_u16 count; + t_u16 count; /** custom IE info tuples */ - custom_ie_info info[MAX_MGMT_IE_INDEX]; + custom_ie_info info[MAX_MGMT_IE_INDEX]; } MLAN_PACK_END tlvbuf_max_mgmt_ie; /** TLV buffer : custom IE */ typedef MLAN_PACK_START struct _tlvbuf_custom_ie { /** Type */ - t_u16 type; + t_u16 type; /** Length */ - t_u16 len; + t_u16 len; /** IE data */ - custom_ie ie_data_list[MAX_MGMT_IE_INDEX_TO_FW]; + custom_ie ie_data_list[MAX_MGMT_IE_INDEX_TO_FW]; /** Max mgmt IE TLV */ - tlvbuf_max_mgmt_ie max_mgmt_ie; + tlvbuf_max_mgmt_ie max_mgmt_ie; } MLAN_PACK_END mlan_ds_misc_custom_ie; #ifdef PRAGMA_PACK @@ -700,121 +700,124 @@ typedef MLAN_PACK_START struct _tlvbuf_custom_ie typedef struct _mlan_callbacks { /** moal_get_fw_data */ - mlan_status(*moal_get_fw_data) (IN t_void * pmoal_handle, - IN t_u32 offset, - IN t_u32 len, OUT t_u8 * pbuf); + mlan_status(*moal_get_fw_data) (IN t_void * pmoal_handle, + IN t_u32 offset, + IN t_u32 len, OUT t_u8 * pbuf); /** moal_init_fw_complete */ - mlan_status(*moal_init_fw_complete) (IN t_void * pmoal_handle, - IN mlan_status status); + mlan_status(*moal_init_fw_complete) (IN t_void * pmoal_handle, + IN mlan_status status); /** moal_shutdown_fw_complete */ - mlan_status(*moal_shutdown_fw_complete) (IN t_void * pmoal_handle, - IN mlan_status status); + mlan_status(*moal_shutdown_fw_complete) (IN t_void * pmoal_handle, + IN mlan_status status); /** moal_send_packet_complete */ - mlan_status(*moal_send_packet_complete) (IN t_void * pmoal_handle, - IN pmlan_buffer pmbuf, - IN mlan_status status); + mlan_status(*moal_send_packet_complete) (IN t_void * pmoal_handle, + IN pmlan_buffer pmbuf, + IN mlan_status status); /** moal_recv_complete */ - mlan_status(*moal_recv_complete) (IN t_void * pmoal_handle, - IN pmlan_buffer pmbuf, - IN t_u32 port, IN mlan_status status); + mlan_status(*moal_recv_complete) (IN t_void * pmoal_handle, + IN pmlan_buffer pmbuf, + IN t_u32 port, IN mlan_status status); /** moal_recv_packet */ - mlan_status(*moal_recv_packet) (IN t_void * pmoal_handle, - IN pmlan_buffer pmbuf); + mlan_status(*moal_recv_packet) (IN t_void * pmoal_handle, + IN pmlan_buffer pmbuf); /** moal_recv_event */ - mlan_status(*moal_recv_event) (IN t_void * pmoal_handle, - IN pmlan_event pmevent); + mlan_status(*moal_recv_event) (IN t_void * pmoal_handle, + IN pmlan_event pmevent); /** moal_ioctl_complete */ - mlan_status(*moal_ioctl_complete) (IN t_void * pmoal_handle, - IN pmlan_ioctl_req pioctl_req, - IN mlan_status status); + mlan_status(*moal_ioctl_complete) (IN t_void * pmoal_handle, + IN pmlan_ioctl_req pioctl_req, + IN mlan_status status); /** moal_alloc_mlan_buffer */ - mlan_status(*moal_alloc_mlan_buffer) (IN t_void * pmoal_handle, - IN t_u32 size, - OUT pmlan_buffer * pmbuf); + mlan_status(*moal_alloc_mlan_buffer) (IN t_void * pmoal_handle, + IN t_u32 size, + OUT pmlan_buffer * pmbuf); /** moal_free_mlan_buffer */ - mlan_status(*moal_free_mlan_buffer) (IN t_void * pmoal_handle, - IN pmlan_buffer pmbuf); + mlan_status(*moal_free_mlan_buffer) (IN t_void * pmoal_handle, + IN pmlan_buffer pmbuf); /** moal_write_reg */ - mlan_status(*moal_write_reg) (IN t_void * pmoal_handle, - IN t_u32 reg, IN t_u32 data); + mlan_status(*moal_write_reg) (IN t_void * pmoal_handle, + IN t_u32 reg, IN t_u32 data); /** moal_read_reg */ - mlan_status(*moal_read_reg) (IN t_void * pmoal_handle, - IN t_u32 reg, OUT t_u32 * data); + mlan_status(*moal_read_reg) (IN t_void * pmoal_handle, + IN t_u32 reg, OUT t_u32 * data); /** moal_write_data_sync */ - mlan_status(*moal_write_data_sync) (IN t_void * pmoal_handle, - IN pmlan_buffer pmbuf, - IN t_u32 port, IN t_u32 timeout); + mlan_status(*moal_write_data_sync) (IN t_void * pmoal_handle, + IN pmlan_buffer pmbuf, + IN t_u32 port, IN t_u32 timeout); /** moal_read_data_sync */ - mlan_status(*moal_read_data_sync) (IN t_void * pmoal_handle, - IN OUT pmlan_buffer pmbuf, - IN t_u32 port, IN t_u32 timeout); + mlan_status(*moal_read_data_sync) (IN t_void * pmoal_handle, + IN OUT pmlan_buffer pmbuf, + IN t_u32 port, IN t_u32 timeout); /** moal_malloc */ - mlan_status(*moal_malloc) (IN t_void * pmoal_handle, - IN t_u32 size, IN t_u32 flag, OUT t_u8 ** ppbuf); + mlan_status(*moal_malloc) (IN t_void * pmoal_handle, + IN t_u32 size, + IN t_u32 flag, OUT t_u8 ** ppbuf); /** moal_mfree */ - mlan_status(*moal_mfree) (IN t_void * pmoal_handle, IN t_u8 * pbuf); + mlan_status(*moal_mfree) (IN t_void * pmoal_handle, IN t_u8 * pbuf); /** moal_vmalloc */ - mlan_status(*moal_vmalloc) (IN t_void * pmoal_handle, - IN t_u32 size, OUT t_u8 ** ppbuf); + mlan_status(*moal_vmalloc) (IN t_void * pmoal_handle, + IN t_u32 size, OUT t_u8 ** ppbuf); /** moal_vfree */ - mlan_status(*moal_vfree) (IN t_void * pmoal_handle, IN t_u8 * pbuf); + mlan_status(*moal_vfree) (IN t_void * pmoal_handle, IN t_u8 * pbuf); /** moal_memset */ - t_void *(*moal_memset) (IN t_void * pmoal_handle, - IN t_void * pmem, IN t_u8 byte, IN t_u32 num); + t_void *(*moal_memset) (IN t_void * pmoal_handle, + IN t_void * pmem, IN t_u8 byte, IN t_u32 num); /** moal_memcpy */ - t_void *(*moal_memcpy) (IN t_void * pmoal_handle, - IN t_void * pdest, - IN const t_void * psrc, IN t_u32 num); + t_void *(*moal_memcpy) (IN t_void * pmoal_handle, + IN t_void * pdest, + IN const t_void * psrc, IN t_u32 num); /** moal_memmove */ - t_void *(*moal_memmove) (IN t_void * pmoal_handle, - IN t_void * pdest, - IN const t_void * psrc, IN t_u32 num); + t_void *(*moal_memmove) (IN t_void * pmoal_handle, + IN t_void * pdest, + IN const t_void * psrc, IN t_u32 num); /** moal_memcmp */ - t_s32(*moal_memcmp) (IN t_void * pmoal_handle, - IN const t_void * pmem1, - IN const t_void * pmem2, IN t_u32 num); + t_s32(*moal_memcmp) (IN t_void * pmoal_handle, + IN const t_void * pmem1, + IN const t_void * pmem2, IN t_u32 num); /** moal_udelay */ - t_void(*moal_udelay) (IN t_void * pmoal_handle, IN t_u32 udelay); + t_void(*moal_udelay) (IN t_void * pmoal_handle, IN t_u32 udelay); /** moal_get_system_time */ - mlan_status(*moal_get_system_time) (IN t_void * pmoal_handle, - OUT t_u32 * psec, OUT t_u32 * pusec); + mlan_status(*moal_get_system_time) (IN t_void * pmoal_handle, + OUT t_u32 * psec, + OUT t_u32 * pusec); /** moal_init_timer*/ - mlan_status(*moal_init_timer) (IN t_void * pmoal_handle, - OUT t_void ** pptimer, - IN t_void(*callback) (t_void * pcontext), - IN t_void * pcontext); + mlan_status(*moal_init_timer) (IN t_void * pmoal_handle, + OUT t_void ** pptimer, + IN t_void(*callback) (t_void * + pcontext), + IN t_void * pcontext); /** moal_free_timer */ - mlan_status(*moal_free_timer) (IN t_void * pmoal_handle, - IN t_void * ptimer); + mlan_status(*moal_free_timer) (IN t_void * pmoal_handle, + IN t_void * ptimer); /** moal_start_timer*/ - mlan_status(*moal_start_timer) (IN t_void * pmoal_handle, - IN t_void * ptimer, - IN t_u8 periodic, IN t_u32 msec); + mlan_status(*moal_start_timer) (IN t_void * pmoal_handle, + IN t_void * ptimer, + IN t_u8 periodic, IN t_u32 msec); /** moal_stop_timer*/ - mlan_status(*moal_stop_timer) (IN t_void * pmoal_handle, - IN t_void * ptimer); + mlan_status(*moal_stop_timer) (IN t_void * pmoal_handle, + IN t_void * ptimer); /** moal_init_lock */ - mlan_status(*moal_init_lock) (IN t_void * pmoal_handle, - OUT t_void ** pplock); + mlan_status(*moal_init_lock) (IN t_void * pmoal_handle, + OUT t_void ** pplock); /** moal_free_lock */ - mlan_status(*moal_free_lock) (IN t_void * pmoal_handle, - IN t_void * plock); + mlan_status(*moal_free_lock) (IN t_void * pmoal_handle, + IN t_void * plock); /** moal_spin_lock */ - mlan_status(*moal_spin_lock) (IN t_void * pmoal_handle, - IN t_void * plock); + mlan_status(*moal_spin_lock) (IN t_void * pmoal_handle, + IN t_void * plock); /** moal_spin_unlock */ - mlan_status(*moal_spin_unlock) (IN t_void * pmoal_handle, - IN t_void * plock); + mlan_status(*moal_spin_unlock) (IN t_void * pmoal_handle, + IN t_void * plock); /** moal_print */ - t_void(*moal_print) (IN t_void * pmoal_handle, - IN t_u32 level, IN char *pformat, IN ...); + t_void(*moal_print) (IN t_void * pmoal_handle, + IN t_u32 level, IN char *pformat, IN ...); /** moal_print_netintf */ - t_void(*moal_print_netintf) (IN t_void * pmoal_handle, - IN t_u32 bss_index, IN t_u32 level); + t_void(*moal_print_netintf) (IN t_void * pmoal_handle, + IN t_u32 bss_index, IN t_u32 level); /** moal_assert */ - t_void(*moal_assert) (IN t_void * pmoal_handle, IN t_u32 cond); + t_void(*moal_assert) (IN t_void * pmoal_handle, IN t_u32 cond); } mlan_callbacks, *pmlan_callbacks; /** Interrupt Mode SDIO */ @@ -841,43 +844,43 @@ typedef struct _mlan_callbacks typedef struct _mlan_device { /** MOAL Handle */ - t_void *pmoal_handle; + t_void *pmoal_handle; /** BSS Attributes */ - mlan_bss_attr bss_attr[MLAN_MAX_BSS_NUM]; + mlan_bss_attr bss_attr[MLAN_MAX_BSS_NUM]; /** Callbacks */ - mlan_callbacks callbacks; + mlan_callbacks callbacks; #ifdef MFG_CMD_SUPPORT /** MFG mode */ - t_u32 mfg_mode; + t_u32 mfg_mode; #endif /** SDIO interrupt mode (0: INT_MODE_SDIO, 1: INT_MODE_GPIO) */ - t_u32 int_mode; + t_u32 int_mode; /** GPIO interrupt pin number */ - t_u32 gpio_pin; + t_u32 gpio_pin; #ifdef DEBUG_LEVEL1 /** Driver debug bit masks */ - t_u32 drvdbg; + t_u32 drvdbg; #endif #ifdef SDIO_MULTI_PORT_TX_AGGR /** SDIO MPA Tx */ - t_u32 mpa_tx_cfg; + t_u32 mpa_tx_cfg; #endif #ifdef SDIO_MULTI_PORT_RX_AGGR /** SDIO MPA Rx */ - t_u32 mpa_rx_cfg; + t_u32 mpa_rx_cfg; #endif /** Auto deep sleep */ - t_u32 auto_ds; + t_u32 auto_ds; /** IEEE PS mode */ - t_u32 ps_mode; + t_u32 ps_mode; /** Max Tx buffer size */ - t_u32 max_tx_buf; + t_u32 max_tx_buf; #if defined(STA_SUPPORT) /** 802.11d configuration */ - t_u32 cfg_11d; + t_u32 cfg_11d; #endif /** Feature control bitmask */ - t_u32 feature_control; + t_u32 feature_control; } mlan_device, *pmlan_device; /** MLAN API function prototype */ @@ -885,18 +888,18 @@ typedef struct _mlan_device /** Registration */ MLAN_API mlan_status mlan_register(IN pmlan_device pmdevice, - OUT t_void ** ppmlan_adapter); + OUT t_void ** ppmlan_adapter); /** Un-registration */ MLAN_API mlan_status mlan_unregister(IN t_void * pmlan_adapter); /** Firmware Downloading */ MLAN_API mlan_status mlan_dnld_fw(IN t_void * pmlan_adapter, - IN pmlan_fw_image pmfw); + IN pmlan_fw_image pmfw); /** Custom data pass API */ MLAN_API mlan_status mlan_set_init_param(IN t_void * pmlan_adapter, - IN pmlan_init_param pparam); + IN pmlan_init_param pparam); /** Firmware Initialization */ MLAN_API mlan_status mlan_init_fw(IN t_void * pmlan_adapter); @@ -909,20 +912,20 @@ MLAN_API mlan_status mlan_main_process(IN t_void * pmlan_adapter); /** Packet Transmission */ MLAN_API mlan_status mlan_send_packet(IN t_void * pmlan_adapter, - IN pmlan_buffer pmbuf); + IN pmlan_buffer pmbuf); /** Packet Reception complete callback */ MLAN_API mlan_status mlan_recv_packet_complete(IN t_void * pmlan_adapter, - IN pmlan_buffer pmbuf, - IN mlan_status status); + IN pmlan_buffer pmbuf, + IN mlan_status status); /** interrupt handler */ MLAN_API t_void mlan_interrupt(IN t_void * pmlan_adapter); /** mlan ioctl */ MLAN_API mlan_status mlan_ioctl(IN t_void * pmlan_adapter, - IN pmlan_ioctl_req pioctl_req); + IN pmlan_ioctl_req pioctl_req); /** mlan select wmm queue */ MLAN_API t_u8 mlan_select_wmm_queue(IN t_void * pmlan_adapter, - IN t_u8 bss_num, IN t_u8 tid); + IN t_u8 bss_num, IN t_u8 tid); #endif /* !_MLAN_DECL_H_ */ |