Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
main.h File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/ip.h>
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <net/sock.h>
#include <net/lib80211.h>
#include <linux/firmware.h>
#include <linux/ctype.h>
#include "decl.h"
#include "ioctl.h"
#include "util.h"
#include "fw.h"
#include "pcie.h"

Go to the source code of this file.

Data Structures

struct  mwifiex_dbg
 
struct  mwifiex_tx_param
 
struct  mwifiex_add_ba_param
 
struct  mwifiex_tx_aggr
 
struct  mwifiex_ra_list_tbl
 
struct  mwifiex_tid_tbl
 
struct  mwifiex_wmm_desc
 
struct  mwifiex_802_11_security
 
struct  ieee_types_header
 
struct  ieee_types_vendor_specific
 
struct  ieee_types_generic
 
struct  mwifiex_bssdescriptor
 
struct  mwifiex_current_bss_params
 
struct  mwifiex_sleep_params
 
struct  mwifiex_sleep_period
 
struct  mwifiex_wep_key
 
struct  mwifiex_chan_freq_power
 
struct  mwifiex_802_11d_domain_reg
 
struct  mwifiex_vendor_spec_cfg_ie
 
struct  wps
 
struct  mwifiex_roc_cfg
 
struct  mwifiex_private
 
struct  mwifiex_tx_ba_stream_tbl
 
struct  reorder_tmr_cnxt
 
struct  mwifiex_rx_reorder_tbl
 
struct  mwifiex_bss_prio_node
 
struct  mwifiex_bss_prio_tbl
 
struct  cmd_ctrl_node
 
struct  mwifiex_bss_priv
 
struct  mwifiex_sta_node
 
struct  mwifiex_if_ops
 
struct  mwifiex_adapter
 

Macros

#define MWIFIEX_MAX_AP   64
 
#define MWIFIEX_DEFAULT_WATCHDOG_TIMEOUT   (5 * HZ)
 
#define MWIFIEX_TIMER_10S   10000
 
#define MWIFIEX_TIMER_1S   1000
 
#define MAX_TX_PENDING   100
 
#define LOW_TX_PENDING   80
 
#define MWIFIEX_UPLD_SIZE   (2312)
 
#define MAX_EVENT_SIZE   1024
 
#define ARP_FILTER_MAX_BUF_SIZE   68
 
#define MWIFIEX_KEY_BUFFER_SIZE   16
 
#define MWIFIEX_DEFAULT_LISTEN_INTERVAL   10
 
#define MWIFIEX_MAX_REGION_CODE   7
 
#define DEFAULT_BCN_AVG_FACTOR   8
 
#define DEFAULT_DATA_AVG_FACTOR   8
 
#define FIRST_VALID_CHANNEL   0xff
 
#define DEFAULT_AD_HOC_CHANNEL   6
 
#define DEFAULT_AD_HOC_CHANNEL_A   36
 
#define DEFAULT_BCN_MISS_TIMEOUT   5
 
#define MAX_SCAN_BEACON_BUFFER   8000
 
#define SCAN_BEACON_ENTRY_PAD   6
 
#define MWIFIEX_PASSIVE_SCAN_CHAN_TIME   110
 
#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME   30
 
#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME   30
 
#define SCAN_RSSI(RSSI)   (0x100 - ((u8)(RSSI)))
 
#define MWIFIEX_MAX_TOTAL_SCAN_TIME   (MWIFIEX_TIMER_10S - MWIFIEX_TIMER_1S)
 
#define MWIFIEX_MAX_SCAN_DELAY_CNT   50
 
#define MWIFIEX_MAX_EMPTY_TX_Q_CNT   10
 
#define MWIFIEX_SCAN_DELAY_MSEC   20
 
#define MWIFIEX_MIN_TX_PENDING_TO_CANCEL_SCAN   2
 
#define RSN_GTK_OUI_OFFSET   2
 
#define MWIFIEX_OUI_NOT_PRESENT   0
 
#define MWIFIEX_OUI_PRESENT   1
 
#define PKT_TYPE_MGMT   0xE5
 
#define IS_CARD_RX_RCVD(adapter)
 
#define MWIFIEX_TYPE_CMD   1
 
#define MWIFIEX_TYPE_DATA   0
 
#define MWIFIEX_TYPE_EVENT   3
 
#define DBG_CMD_NUM   5
 
#define MAX_BITMAP_RATES_SIZE   10
 
#define MAX_CHANNEL_BAND_BG   14
 
#define MAX_CHANNEL_BAND_A   165
 
#define MAX_FREQUENCY_BAND_BG   2484
 
#define MWIFIEX_EVENT_HEADER_LEN   4
 
#define MWIFIEX_UAP_EVENT_EXTRA_HEADER   2
 
#define MWIFIEX_TYPE_LEN   4
 
#define MWIFIEX_USB_TYPE_CMD   0xF00DFACE
 
#define MWIFIEX_USB_TYPE_DATA   0xBEADC0DE
 
#define MWIFIEX_USB_TYPE_EVENT   0xBEEFFACE
 
#define WMM_HIGHEST_PRIORITY   7
 
#define HIGH_PRIO_TID   7
 
#define LOW_PRIO_TID   0
 
#define NO_PKT_PRIO_TID   (-1)
 
#define MAX_REGION_CHANNEL_NUM   2
 
#define MWIFIEX_MAX_TRIPLET_802_11D   83
 
#define MWIFIEX_ASSOC_RSP_BUF_SIZE   500
 
#define MWIFIEX_GENIE_BUF_SIZE   256
 
#define MWIFIEX_ASSOC_TLV_BUF_SIZE   256
 

Enumerations

enum  { MWIFIEX_ASYNC_CMD, MWIFIEX_SYNC_CMD }
 
enum  MWIFIEX_HARDWARE_STATUS {
  MWIFIEX_HW_STATUS_READY, MWIFIEX_HW_STATUS_INITIALIZING, MWIFIEX_HW_STATUS_FW_READY, MWIFIEX_HW_STATUS_INIT_DONE,
  MWIFIEX_HW_STATUS_RESET, MWIFIEX_HW_STATUS_CLOSING, MWIFIEX_HW_STATUS_NOT_READY
}
 
enum  MWIFIEX_802_11_POWER_MODE { MWIFIEX_802_11_POWER_MODE_CAM, MWIFIEX_802_11_POWER_MODE_PSP }
 
enum  MWIFIEX_PS_STATE { PS_STATE_AWAKE, PS_STATE_PRE_SLEEP, PS_STATE_SLEEP_CFM, PS_STATE_SLEEP }
 
enum  mwifiex_iface_type { MWIFIEX_SDIO, MWIFIEX_PCIE, MWIFIEX_USB }
 
enum  state_11d_t { DISABLE_11D = 0, ENABLE_11D = 1 }
 
enum  mwifiex_ba_status { BA_SETUP_NONE = 0, BA_SETUP_INPROGRESS, BA_SETUP_COMPLETE }
 

Functions

int mwifiex_init_lock_list (struct mwifiex_adapter *adapter)
 
void mwifiex_set_trans_start (struct net_device *dev)
 
void mwifiex_stop_net_dev_queue (struct net_device *netdev, struct mwifiex_adapter *adapter)
 
void mwifiex_wake_up_net_dev_queue (struct net_device *netdev, struct mwifiex_adapter *adapter)
 
int mwifiex_init_priv (struct mwifiex_private *priv)
 
void mwifiex_free_priv (struct mwifiex_private *priv)
 
int mwifiex_init_fw (struct mwifiex_adapter *adapter)
 
int mwifiex_init_fw_complete (struct mwifiex_adapter *adapter)
 
int mwifiex_shutdown_drv (struct mwifiex_adapter *adapter)
 
int mwifiex_shutdown_fw_complete (struct mwifiex_adapter *adapter)
 
int mwifiex_dnld_fw (struct mwifiex_adapter *, struct mwifiex_fw_image *)
 
int mwifiex_recv_packet (struct mwifiex_adapter *, struct sk_buff *skb)
 
int mwifiex_process_mgmt_packet (struct mwifiex_adapter *adapter, struct sk_buff *skb)
 
int mwifiex_process_event (struct mwifiex_adapter *adapter)
 
int mwifiex_complete_cmd (struct mwifiex_adapter *adapter, struct cmd_ctrl_node *cmd_node)
 
int mwifiex_send_cmd_async (struct mwifiex_private *priv, uint16_t cmd_no, u16 cmd_action, u32 cmd_oid, void *data_buf)
 
int mwifiex_send_cmd_sync (struct mwifiex_private *priv, uint16_t cmd_no, u16 cmd_action, u32 cmd_oid, void *data_buf)
 
void mwifiex_cmd_timeout_func (unsigned long function_context)
 
int mwifiex_get_debug_info (struct mwifiex_private *, struct mwifiex_debug_info *)
 
int mwifiex_alloc_cmd_buffer (struct mwifiex_adapter *adapter)
 
int mwifiex_free_cmd_buffer (struct mwifiex_adapter *adapter)
 
void mwifiex_cancel_all_pending_cmd (struct mwifiex_adapter *adapter)
 
void mwifiex_cancel_pending_ioctl (struct mwifiex_adapter *adapter)
 
void mwifiex_insert_cmd_to_free_q (struct mwifiex_adapter *adapter, struct cmd_ctrl_node *cmd_node)
 
void mwifiex_insert_cmd_to_pending_q (struct mwifiex_adapter *adapter, struct cmd_ctrl_node *cmd_node, u32 addtail)
 
int mwifiex_exec_next_cmd (struct mwifiex_adapter *adapter)
 
int mwifiex_process_cmdresp (struct mwifiex_adapter *adapter)
 
int mwifiex_handle_rx_packet (struct mwifiex_adapter *adapter, struct sk_buff *skb)
 
int mwifiex_process_tx (struct mwifiex_private *priv, struct sk_buff *skb, struct mwifiex_tx_param *tx_param)
 
int mwifiex_send_null_packet (struct mwifiex_private *priv, u8 flags)
 
int mwifiex_write_data_complete (struct mwifiex_adapter *adapter, struct sk_buff *skb, int status)
 
void mwifiex_clean_txrx (struct mwifiex_private *priv)
 
u8 mwifiex_check_last_packet_indication (struct mwifiex_private *priv)
 
void mwifiex_check_ps_cond (struct mwifiex_adapter *adapter)
 
void mwifiex_process_sleep_confirm_resp (struct mwifiex_adapter *, u8 *, u32)
 
int mwifiex_cmd_enh_power_mode (struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, u16 cmd_action, uint16_t ps_bitmap, struct mwifiex_ds_auto_ds *auto_ds)
 
int mwifiex_ret_enh_power_mode (struct mwifiex_private *priv, struct host_cmd_ds_command *resp, struct mwifiex_ds_pm_cfg *pm_cfg)
 
void mwifiex_process_hs_config (struct mwifiex_adapter *adapter)
 
void mwifiex_hs_activated_event (struct mwifiex_private *priv, u8 activated)
 
int mwifiex_ret_802_11_hs_cfg (struct mwifiex_private *priv, struct host_cmd_ds_command *resp)
 
int mwifiex_process_rx_packet (struct mwifiex_adapter *adapter, struct sk_buff *skb)
 
int mwifiex_sta_prepare_cmd (struct mwifiex_private *, uint16_t cmd_no, u16 cmd_action, u32 cmd_oid, void *data_buf, void *cmd_buf)
 
int mwifiex_uap_prepare_cmd (struct mwifiex_private *priv, uint16_t cmd_no, u16 cmd_action, u32 cmd_oid, void *data_buf, void *cmd_buf)
 
int mwifiex_process_sta_cmdresp (struct mwifiex_private *, u16 cmdresp_no, struct host_cmd_ds_command *resp)
 
int mwifiex_process_sta_rx_packet (struct mwifiex_adapter *, struct sk_buff *skb)
 
int mwifiex_process_uap_rx_packet (struct mwifiex_adapter *adapter, struct sk_buff *skb)
 
int mwifiex_handle_uap_rx_forward (struct mwifiex_private *priv, struct sk_buff *skb)
 
int mwifiex_process_sta_event (struct mwifiex_private *)
 
int mwifiex_process_uap_event (struct mwifiex_private *)
 
struct mwifiex_sta_nodemwifiex_get_sta_entry (struct mwifiex_private *priv, u8 *mac)
 
void mwifiex_delete_all_station_list (struct mwifiex_private *priv)
 
voidmwifiex_process_sta_txpd (struct mwifiex_private *, struct sk_buff *skb)
 
voidmwifiex_process_uap_txpd (struct mwifiex_private *, struct sk_buff *skb)
 
int mwifiex_sta_init_cmd (struct mwifiex_private *, u8 first_sta)
 
int mwifiex_cmd_802_11_scan (struct host_cmd_ds_command *cmd, struct mwifiex_scan_cmd_config *scan_cfg)
 
void mwifiex_queue_scan_cmd (struct mwifiex_private *priv, struct cmd_ctrl_node *cmd_node)
 
int mwifiex_ret_802_11_scan (struct mwifiex_private *priv, struct host_cmd_ds_command *resp)
 
s32 mwifiex_ssid_cmp (struct cfg80211_ssid *ssid1, struct cfg80211_ssid *ssid2)
 
int mwifiex_associate (struct mwifiex_private *priv, struct mwifiex_bssdescriptor *bss_desc)
 
int mwifiex_cmd_802_11_associate (struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct mwifiex_bssdescriptor *bss_desc)
 
int mwifiex_ret_802_11_associate (struct mwifiex_private *priv, struct host_cmd_ds_command *resp)
 
void mwifiex_reset_connect_state (struct mwifiex_private *priv, u16 reason)
 
u8 mwifiex_band_to_radio_type (u8 band)
 
int mwifiex_deauthenticate (struct mwifiex_private *priv, u8 *mac)
 
int mwifiex_adhoc_start (struct mwifiex_private *priv, struct cfg80211_ssid *adhoc_ssid)
 
int mwifiex_adhoc_join (struct mwifiex_private *priv, struct mwifiex_bssdescriptor *bss_desc)
 
int mwifiex_cmd_802_11_ad_hoc_start (struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct cfg80211_ssid *req_ssid)
 
int mwifiex_cmd_802_11_ad_hoc_join (struct mwifiex_private *priv, struct host_cmd_ds_command *cmd, struct mwifiex_bssdescriptor *bss_desc)
 
int mwifiex_ret_802_11_ad_hoc (struct mwifiex_private *priv, struct host_cmd_ds_command *resp)
 
int mwifiex_cmd_802_11_bg_scan_query (struct host_cmd_ds_command *cmd)
 
struct mwifiex_chan_freq_powermwifiex_get_cfp (struct mwifiex_private *priv, u8 band, u16 channel, u32 freq)
 
u32 mwifiex_index_to_data_rate (struct mwifiex_private *priv, u8 index, u8 ht_info)
 
u32 mwifiex_find_freq_from_band_chan (u8, u8)
 
int mwifiex_cmd_append_vsie_tlv (struct mwifiex_private *priv, u16 vsie_mask, u8 **buffer)
 
u32 mwifiex_get_active_data_rates (struct mwifiex_private *priv, u8 *rates)
 
u32 mwifiex_get_supported_rates (struct mwifiex_private *priv, u8 *rates)
 
u8 mwifiex_is_rate_auto (struct mwifiex_private *priv)
 
void mwifiex_save_curr_bcn (struct mwifiex_private *priv)
 
void mwifiex_free_curr_bcn (struct mwifiex_private *priv)
 
int mwifiex_cmd_get_hw_spec (struct mwifiex_private *priv, struct host_cmd_ds_command *cmd)
 
int mwifiex_ret_get_hw_spec (struct mwifiex_private *priv, struct host_cmd_ds_command *resp)
 
int is_command_pending (struct mwifiex_adapter *adapter)
 
void mwifiex_init_priv_params (struct mwifiex_private *priv, struct net_device *dev)
 
int mwifiex_set_secure_params (struct mwifiex_private *priv, struct mwifiex_uap_bss_param *bss_config, struct cfg80211_ap_settings *params)
 
void mwifiex_set_ht_params (struct mwifiex_private *priv, struct mwifiex_uap_bss_param *bss_cfg, struct cfg80211_ap_settings *params)
 
void mwifiex_set_uap_rates (struct mwifiex_uap_bss_param *bss_cfg, struct cfg80211_ap_settings *params)
 
int mwifiex_init_shutdown_fw (struct mwifiex_private *priv, u32 func_init_shutdown)
 
int mwifiex_add_card (void *, struct semaphore *, struct mwifiex_if_ops *, u8)
 
int mwifiex_remove_card (struct mwifiex_adapter *, struct semaphore *)
 
void mwifiex_get_version (struct mwifiex_adapter *adapter, char *version, int maxlen)
 
int mwifiex_request_set_multicast_list (struct mwifiex_private *priv, struct mwifiex_multicast_list *mcast_list)
 
int mwifiex_copy_mcast_addr (struct mwifiex_multicast_list *mlist, struct net_device *dev)
 
int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter)
 
int mwifiex_bss_start (struct mwifiex_private *priv, struct cfg80211_bss *bss, struct cfg80211_ssid *req_ssid)
 
int mwifiex_cancel_hs (struct mwifiex_private *priv, int cmd_type)
 
int mwifiex_enable_hs (struct mwifiex_adapter *adapter)
 
int mwifiex_disable_auto_ds (struct mwifiex_private *priv)
 
int mwifiex_drv_get_data_rate (struct mwifiex_private *priv, u32 *rate)
 
int mwifiex_request_scan (struct mwifiex_private *priv, struct cfg80211_ssid *req_ssid)
 
int mwifiex_scan_networks (struct mwifiex_private *priv, const struct mwifiex_user_scan_cfg *user_scan_in)
 
int mwifiex_set_radio (struct mwifiex_private *priv, u8 option)
 
int mwifiex_set_encode (struct mwifiex_private *priv, struct key_params *kp, const u8 *key, int key_len, u8 key_index, const u8 *mac_addr, int disable)
 
int mwifiex_set_gen_ie (struct mwifiex_private *priv, u8 *ie, int ie_len)
 
int mwifiex_get_ver_ext (struct mwifiex_private *priv)
 
int mwifiex_remain_on_chan_cfg (struct mwifiex_private *priv, u16 action, struct ieee80211_channel *chan, enum nl80211_channel_type *channel_type, unsigned int duration)
 
int mwifiex_set_bss_role (struct mwifiex_private *priv, u8 bss_role)
 
int mwifiex_get_stats_info (struct mwifiex_private *priv, struct mwifiex_ds_get_stats *log)
 
int mwifiex_reg_write (struct mwifiex_private *priv, u32 reg_type, u32 reg_offset, u32 reg_value)
 
int mwifiex_reg_read (struct mwifiex_private *priv, u32 reg_type, u32 reg_offset, u32 *value)
 
int mwifiex_eeprom_read (struct mwifiex_private *priv, u16 offset, u16 bytes, u8 *value)
 
int mwifiex_set_11n_httx_cfg (struct mwifiex_private *priv, int data)
 
int mwifiex_get_11n_httx_cfg (struct mwifiex_private *priv, int *data)
 
int mwifiex_set_tx_rate_cfg (struct mwifiex_private *priv, int tx_rate_index)
 
int mwifiex_get_tx_rate_cfg (struct mwifiex_private *priv, int *tx_rate_index)
 
int mwifiex_drv_set_power (struct mwifiex_private *priv, u32 *ps_mode)
 
int mwifiex_drv_get_driver_version (struct mwifiex_adapter *adapter, char *version, int max_len)
 
int mwifiex_set_tx_power (struct mwifiex_private *priv, struct mwifiex_power_cfg *power_cfg)
 
int mwifiex_main_process (struct mwifiex_adapter *)
 
int mwifiex_queue_tx_pkt (struct mwifiex_private *priv, struct sk_buff *skb)
 
int mwifiex_get_bss_info (struct mwifiex_private *, struct mwifiex_bss_info *)
 
int mwifiex_fill_new_bss_desc (struct mwifiex_private *priv, struct cfg80211_bss *bss, struct mwifiex_bssdescriptor *bss_desc)
 
int mwifiex_update_bss_desc_with_ie (struct mwifiex_adapter *adapter, struct mwifiex_bssdescriptor *bss_entry)
 
int mwifiex_check_network_compatibility (struct mwifiex_private *priv, struct mwifiex_bssdescriptor *bss_desc)
 
u8 mwifiex_chan_type_to_sec_chan_offset (enum nl80211_channel_type chan_type)
 
struct wireless_devmwifiex_add_virtual_intf (struct wiphy *wiphy, const char *name, enum nl80211_iftype type, u32 *flags, struct vif_params *params)
 
int mwifiex_del_virtual_intf (struct wiphy *wiphy, struct wireless_dev *wdev)
 
void mwifiex_set_sys_config_invalid_data (struct mwifiex_uap_bss_param *config)
 
int mwifiex_set_mgmt_ies (struct mwifiex_private *priv, struct cfg80211_beacon_data *data)
 
int mwifiex_del_mgmt_ies (struct mwifiex_private *priv)
 
u8mwifiex_11d_code_2_region (u8 code)
 

Variables

const char driver_version []
 
struct ieee_types_header __packed
 
u16 region_code_index [MWIFIEX_MAX_REGION_CODE]
 

Macro Definition Documentation

#define ARP_FILTER_MAX_BUF_SIZE   68

Definition at line 63 of file main.h.

#define DBG_CMD_NUM   5

Definition at line 118 of file main.h.

#define DEFAULT_AD_HOC_CHANNEL   6

Definition at line 73 of file main.h.

#define DEFAULT_AD_HOC_CHANNEL_A   36

Definition at line 74 of file main.h.

#define DEFAULT_BCN_AVG_FACTOR   8

Definition at line 69 of file main.h.

#define DEFAULT_BCN_MISS_TIMEOUT   5

Definition at line 76 of file main.h.

#define DEFAULT_DATA_AVG_FACTOR   8

Definition at line 70 of file main.h.

#define FIRST_VALID_CHANNEL   0xff

Definition at line 72 of file main.h.

#define HIGH_PRIO_TID   7

Definition at line 221 of file main.h.

#define IS_CARD_RX_RCVD (   adapter)
Value:
(adapter->cmd_resp_received || \
adapter->event_received || \
((adapter->iface_type != MWIFIEX_USB) && \
adapter->data_received) || \
((adapter->iface_type == MWIFIEX_USB) && \
!skb_queue_empty(&adapter->usb_rx_data_q)))

Definition at line 107 of file main.h.

#define LOW_PRIO_TID   0

Definition at line 222 of file main.h.

#define LOW_TX_PENDING   80

Definition at line 57 of file main.h.

#define MAX_BITMAP_RATES_SIZE   10

Definition at line 120 of file main.h.

#define MAX_CHANNEL_BAND_A   165

Definition at line 123 of file main.h.

#define MAX_CHANNEL_BAND_BG   14

Definition at line 122 of file main.h.

#define MAX_EVENT_SIZE   1024

Definition at line 61 of file main.h.

#define MAX_FREQUENCY_BAND_BG   2484

Definition at line 125 of file main.h.

#define MAX_REGION_CHANNEL_NUM   2

Definition at line 340 of file main.h.

#define MAX_SCAN_BEACON_BUFFER   8000

Definition at line 78 of file main.h.

#define MAX_TX_PENDING   100

Definition at line 56 of file main.h.

#define MWIFIEX_ACTIVE_SCAN_CHAN_TIME   30

Definition at line 83 of file main.h.

#define MWIFIEX_ASSOC_RSP_BUF_SIZE   500

Definition at line 460 of file main.h.

#define MWIFIEX_ASSOC_TLV_BUF_SIZE   256

Definition at line 470 of file main.h.

#define MWIFIEX_DEFAULT_LISTEN_INTERVAL   10

Definition at line 66 of file main.h.

#define MWIFIEX_DEFAULT_WATCHDOG_TIMEOUT   (5 * HZ)

Definition at line 51 of file main.h.

#define MWIFIEX_EVENT_HEADER_LEN   4

Definition at line 127 of file main.h.

#define MWIFIEX_GENIE_BUF_SIZE   256

Definition at line 464 of file main.h.

#define MWIFIEX_KEY_BUFFER_SIZE   16

Definition at line 65 of file main.h.

#define MWIFIEX_MAX_AP   64

Definition at line 49 of file main.h.

#define MWIFIEX_MAX_EMPTY_TX_Q_CNT   10

Definition at line 91 of file main.h.

#define MWIFIEX_MAX_REGION_CODE   7

Definition at line 67 of file main.h.

#define MWIFIEX_MAX_SCAN_DELAY_CNT   50

Definition at line 90 of file main.h.

#define MWIFIEX_MAX_TOTAL_SCAN_TIME   (MWIFIEX_TIMER_10S - MWIFIEX_TIMER_1S)

Definition at line 88 of file main.h.

#define MWIFIEX_MAX_TRIPLET_802_11D   83

Definition at line 354 of file main.h.

#define MWIFIEX_MIN_TX_PENDING_TO_CANCEL_SCAN   2

Definition at line 94 of file main.h.

#define MWIFIEX_OUI_NOT_PRESENT   0

Definition at line 98 of file main.h.

#define MWIFIEX_OUI_PRESENT   1

Definition at line 99 of file main.h.

#define MWIFIEX_PASSIVE_SCAN_CHAN_TIME   110

Definition at line 82 of file main.h.

#define MWIFIEX_SCAN_DELAY_MSEC   20

Definition at line 92 of file main.h.

#define MWIFIEX_SPECIFIC_SCAN_CHAN_TIME   30

Definition at line 84 of file main.h.

#define MWIFIEX_TIMER_10S   10000

Definition at line 53 of file main.h.

#define MWIFIEX_TIMER_1S   1000

Definition at line 54 of file main.h.

#define MWIFIEX_TYPE_CMD   1

Definition at line 114 of file main.h.

#define MWIFIEX_TYPE_DATA   0

Definition at line 115 of file main.h.

#define MWIFIEX_TYPE_EVENT   3

Definition at line 116 of file main.h.

#define MWIFIEX_TYPE_LEN   4

Definition at line 130 of file main.h.

#define MWIFIEX_UAP_EVENT_EXTRA_HEADER   2

Definition at line 128 of file main.h.

#define MWIFIEX_UPLD_SIZE   (2312)

Definition at line 59 of file main.h.

#define MWIFIEX_USB_TYPE_CMD   0xF00DFACE

Definition at line 131 of file main.h.

#define MWIFIEX_USB_TYPE_DATA   0xBEADC0DE

Definition at line 132 of file main.h.

#define MWIFIEX_USB_TYPE_EVENT   0xBEEFFACE

Definition at line 133 of file main.h.

#define NO_PKT_PRIO_TID   (-1)

Definition at line 223 of file main.h.

#define PKT_TYPE_MGMT   0xE5

Definition at line 101 of file main.h.

#define RSN_GTK_OUI_OFFSET   2

Definition at line 96 of file main.h.

#define SCAN_BEACON_ENTRY_PAD   6

Definition at line 80 of file main.h.

#define SCAN_RSSI (   RSSI)    (0x100 - ((u8)(RSSI)))

Definition at line 86 of file main.h.

#define WMM_HIGHEST_PRIORITY   7

Definition at line 220 of file main.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MWIFIEX_ASYNC_CMD 
MWIFIEX_SYNC_CMD 

Definition at line 44 of file main.h.

Enumerator:
MWIFIEX_802_11_POWER_MODE_CAM 
MWIFIEX_802_11_POWER_MODE_PSP 

Definition at line 168 of file main.h.

Enumerator:
BA_SETUP_NONE 
BA_SETUP_INPROGRESS 
BA_SETUP_COMPLETE 

Definition at line 509 of file main.h.

Enumerator:
MWIFIEX_HW_STATUS_READY 
MWIFIEX_HW_STATUS_INITIALIZING 
MWIFIEX_HW_STATUS_FW_READY 
MWIFIEX_HW_STATUS_INIT_DONE 
MWIFIEX_HW_STATUS_RESET 
MWIFIEX_HW_STATUS_CLOSING 
MWIFIEX_HW_STATUS_NOT_READY 

Definition at line 158 of file main.h.

Enumerator:
MWIFIEX_SDIO 
MWIFIEX_PCIE 
MWIFIEX_USB 

Definition at line 184 of file main.h.

Enumerator:
PS_STATE_AWAKE 
PS_STATE_PRE_SLEEP 
PS_STATE_SLEEP_CFM 
PS_STATE_SLEEP 

Definition at line 177 of file main.h.

Enumerator:
DISABLE_11D 
ENABLE_11D 

Definition at line 349 of file main.h.

Function Documentation

int is_command_pending ( struct mwifiex_adapter adapter)

Definition at line 676 of file main.c.

u8* mwifiex_11d_code_2_region ( u8  code)

Definition at line 91 of file cfp.c.

int mwifiex_add_card ( void ,
struct semaphore ,
struct mwifiex_if_ops ,
u8   
)

Definition at line 730 of file main.c.

struct wireless_dev* mwifiex_add_virtual_intf ( struct wiphy wiphy,
const char name,
enum nl80211_iftype  type,
u32 flags,
struct vif_params params 
)
read

Definition at line 1966 of file cfg80211.c.

int mwifiex_adhoc_join ( struct mwifiex_private priv,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 1314 of file join.c.

int mwifiex_adhoc_start ( struct mwifiex_private priv,
struct cfg80211_ssid adhoc_ssid 
)

Definition at line 1294 of file join.c.

int mwifiex_alloc_cmd_buffer ( struct mwifiex_adapter adapter)

Definition at line 334 of file cmdevt.c.

int mwifiex_associate ( struct mwifiex_private priv,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 1266 of file join.c.

u8 mwifiex_band_to_radio_type ( u8  band)

Definition at line 1402 of file join.c.

int mwifiex_bss_start ( struct mwifiex_private priv,
struct cfg80211_bss bss,
struct cfg80211_ssid req_ssid 
)

Definition at line 241 of file sta_ioctl.c.

void mwifiex_cancel_all_pending_cmd ( struct mwifiex_adapter adapter)

Definition at line 959 of file cmdevt.c.

int mwifiex_cancel_hs ( struct mwifiex_private priv,
int  cmd_type 
)

Definition at line 433 of file sta_ioctl.c.

void mwifiex_cancel_pending_ioctl ( struct mwifiex_adapter adapter)

Definition at line 1018 of file cmdevt.c.

u8 mwifiex_chan_type_to_sec_chan_offset ( enum nl80211_channel_type  chan_type)

Definition at line 80 of file cfg80211.c.

u8 mwifiex_check_last_packet_indication ( struct mwifiex_private priv)

Definition at line 199 of file sta_tx.c.

int mwifiex_check_network_compatibility ( struct mwifiex_private priv,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 1421 of file scan.c.

void mwifiex_check_ps_cond ( struct mwifiex_adapter adapter)

Definition at line 1072 of file cmdevt.c.

void mwifiex_clean_txrx ( struct mwifiex_private priv)

Definition at line 555 of file wmm.c.

int mwifiex_cmd_802_11_ad_hoc_join ( struct mwifiex_private priv,
struct host_cmd_ds_command cmd,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 1029 of file join.c.

int mwifiex_cmd_802_11_ad_hoc_start ( struct mwifiex_private priv,
struct host_cmd_ds_command cmd,
struct cfg80211_ssid req_ssid 
)

Definition at line 761 of file join.c.

int mwifiex_cmd_802_11_associate ( struct mwifiex_private priv,
struct host_cmd_ds_command cmd,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 382 of file join.c.

int mwifiex_cmd_802_11_bg_scan_query ( struct host_cmd_ds_command cmd)

Definition at line 1807 of file scan.c.

int mwifiex_cmd_802_11_scan ( struct host_cmd_ds_command cmd,
struct mwifiex_scan_cmd_config scan_cfg 
)

Definition at line 1396 of file scan.c.

int mwifiex_cmd_append_vsie_tlv ( struct mwifiex_private priv,
u16  vsie_mask,
u8 **  buffer 
)

Definition at line 1920 of file scan.c.

int mwifiex_cmd_enh_power_mode ( struct mwifiex_private priv,
struct host_cmd_ds_command cmd,
u16  cmd_action,
uint16_t  ps_bitmap,
struct mwifiex_ds_auto_ds auto_ds 
)

Definition at line 1242 of file cmdevt.c.

int mwifiex_cmd_get_hw_spec ( struct mwifiex_private priv,
struct host_cmd_ds_command cmd 
)

Definition at line 1391 of file cmdevt.c.

void mwifiex_cmd_timeout_func ( unsigned long  function_context)

Definition at line 879 of file cmdevt.c.

int mwifiex_complete_cmd ( struct mwifiex_adapter adapter,
struct cmd_ctrl_node cmd_node 
)

Definition at line 251 of file util.c.

int mwifiex_copy_mcast_addr ( struct mwifiex_multicast_list mlist,
struct net_device dev 
)

Definition at line 39 of file sta_ioctl.c.

int mwifiex_deauthenticate ( struct mwifiex_private priv,
u8 mac 
)

Definition at line 1375 of file join.c.

int mwifiex_del_mgmt_ies ( struct mwifiex_private priv)

Definition at line 375 of file ie.c.

int mwifiex_del_virtual_intf ( struct wiphy wiphy,
struct wireless_dev wdev 
)

Definition at line 2133 of file cfg80211.c.

void mwifiex_delete_all_station_list ( struct mwifiex_private priv)
int mwifiex_disable_auto_ds ( struct mwifiex_private priv)

Definition at line 541 of file sta_ioctl.c.

int mwifiex_dnld_fw ( struct mwifiex_adapter ,
struct mwifiex_fw_image  
)

Definition at line 743 of file init.c.

int mwifiex_drv_get_data_rate ( struct mwifiex_private priv,
u32 rate 
)

Definition at line 558 of file sta_ioctl.c.

int mwifiex_drv_get_driver_version ( struct mwifiex_adapter adapter,
char version,
int  max_len 
)

Definition at line 973 of file sta_ioctl.c.

int mwifiex_drv_set_power ( struct mwifiex_private priv,
u32 ps_mode 
)

Definition at line 674 of file sta_ioctl.c.

int mwifiex_eeprom_read ( struct mwifiex_private priv,
u16  offset,
u16  bytes,
u8 value 
)

Definition at line 1214 of file sta_ioctl.c.

int mwifiex_enable_hs ( struct mwifiex_adapter adapter)

Definition at line 451 of file sta_ioctl.c.

int mwifiex_exec_next_cmd ( struct mwifiex_adapter adapter)

Definition at line 684 of file cmdevt.c.

int mwifiex_fill_new_bss_desc ( struct mwifiex_private priv,
struct cfg80211_bss bss,
struct mwifiex_bssdescriptor bss_desc 
)

Definition at line 157 of file sta_ioctl.c.

u32 mwifiex_find_freq_from_band_chan ( u8  ,
u8   
)
int mwifiex_free_cmd_buffer ( struct mwifiex_adapter adapter)

Definition at line 373 of file cmdevt.c.

void mwifiex_free_curr_bcn ( struct mwifiex_private priv)

Definition at line 2031 of file scan.c.

void mwifiex_free_priv ( struct mwifiex_private priv)

Definition at line 655 of file init.c.

int mwifiex_get_11n_httx_cfg ( struct mwifiex_private priv,
int data 
)
u32 mwifiex_get_active_data_rates ( struct mwifiex_private priv,
u8 rates 
)

Definition at line 174 of file cfp.c.

int mwifiex_get_bss_info ( struct mwifiex_private ,
struct mwifiex_bss_info  
)

Definition at line 496 of file sta_ioctl.c.

struct mwifiex_chan_freq_power* mwifiex_get_cfp ( struct mwifiex_private priv,
u8  band,
u16  channel,
u32  freq 
)
read

Definition at line 189 of file cfp.c.

int mwifiex_get_debug_info ( struct mwifiex_private ,
struct mwifiex_debug_info  
)

Definition at line 85 of file util.c.

struct mwifiex_sta_node* mwifiex_get_sta_entry ( struct mwifiex_private priv,
u8 mac 
)
read

Definition at line 31 of file uap_event.c.

int mwifiex_get_stats_info ( struct mwifiex_private priv,
struct mwifiex_ds_get_stats log 
)

Definition at line 1112 of file sta_ioctl.c.

u32 mwifiex_get_supported_rates ( struct mwifiex_private priv,
u8 rates 
)

Definition at line 268 of file cfp.c.

int mwifiex_get_tx_rate_cfg ( struct mwifiex_private priv,
int tx_rate_index 
)
int mwifiex_get_ver_ext ( struct mwifiex_private priv)

Definition at line 1034 of file sta_ioctl.c.

void mwifiex_get_version ( struct mwifiex_adapter adapter,
char version,
int  maxlen 
)
int mwifiex_handle_rx_packet ( struct mwifiex_adapter adapter,
struct sk_buff skb 
)

Definition at line 36 of file txrx.c.

int mwifiex_handle_uap_rx_forward ( struct mwifiex_private priv,
struct sk_buff skb 
)

Definition at line 116 of file uap_txrx.c.

void mwifiex_hs_activated_event ( struct mwifiex_private priv,
u8  activated 
)

Definition at line 1091 of file cmdevt.c.

u32 mwifiex_index_to_data_rate ( struct mwifiex_private priv,
u8  index,
u8  ht_info 
)

Definition at line 109 of file cfp.c.

int mwifiex_init_fw ( struct mwifiex_adapter adapter)

Definition at line 549 of file init.c.

int mwifiex_init_fw_complete ( struct mwifiex_adapter adapter)

Definition at line 34 of file util.c.

int mwifiex_init_lock_list ( struct mwifiex_adapter adapter)

Definition at line 480 of file init.c.

int mwifiex_init_priv ( struct mwifiex_private priv)

Definition at line 147 of file init.c.

void mwifiex_init_priv_params ( struct mwifiex_private priv,
struct net_device dev 
)

Definition at line 655 of file main.c.

int mwifiex_init_shutdown_fw ( struct mwifiex_private priv,
u32  func_init_shutdown 
)

Definition at line 61 of file util.c.

void mwifiex_insert_cmd_to_free_q ( struct mwifiex_adapter adapter,
struct cmd_ctrl_node cmd_node 
)

Definition at line 610 of file cmdevt.c.

void mwifiex_insert_cmd_to_pending_q ( struct mwifiex_adapter adapter,
struct cmd_ctrl_node cmd_node,
u32  addtail 
)

Definition at line 637 of file cmdevt.c.

u8 mwifiex_is_rate_auto ( struct mwifiex_private priv)

Definition at line 247 of file cfp.c.

int mwifiex_main_process ( struct mwifiex_adapter )

Definition at line 139 of file main.c.

int mwifiex_process_cmdresp ( struct mwifiex_adapter adapter)

Definition at line 752 of file cmdevt.c.

int mwifiex_process_event ( struct mwifiex_adapter adapter)

Definition at line 421 of file cmdevt.c.

void mwifiex_process_hs_config ( struct mwifiex_adapter adapter)

Definition at line 1159 of file cmdevt.c.

int mwifiex_process_mgmt_packet ( struct mwifiex_adapter adapter,
struct sk_buff skb 
)

Definition at line 149 of file util.c.

int mwifiex_process_rx_packet ( struct mwifiex_adapter adapter,
struct sk_buff skb 
)

Definition at line 41 of file sta_rx.c.

void mwifiex_process_sleep_confirm_resp ( struct mwifiex_adapter ,
u8 ,
u32   
)

Definition at line 1179 of file cmdevt.c.

int mwifiex_process_sta_cmdresp ( struct mwifiex_private ,
u16  cmdresp_no,
struct host_cmd_ds_command resp 
)

Definition at line 830 of file sta_cmdresp.c.

int mwifiex_process_sta_event ( struct mwifiex_private )

Definition at line 184 of file sta_event.c.

int mwifiex_process_sta_rx_packet ( struct mwifiex_adapter ,
struct sk_buff skb 
)

Definition at line 120 of file sta_rx.c.

void* mwifiex_process_sta_txpd ( struct mwifiex_private ,
struct sk_buff skb 
)

Definition at line 44 of file sta_tx.c.

int mwifiex_process_tx ( struct mwifiex_private priv,
struct sk_buff skb,
struct mwifiex_tx_param tx_param 
)

Definition at line 70 of file txrx.c.

int mwifiex_process_uap_event ( struct mwifiex_private )

Definition at line 163 of file uap_event.c.

int mwifiex_process_uap_rx_packet ( struct mwifiex_adapter adapter,
struct sk_buff skb 
)

Definition at line 162 of file uap_txrx.c.

void* mwifiex_process_uap_txpd ( struct mwifiex_private ,
struct sk_buff skb 
)

Definition at line 280 of file uap_txrx.c.

void mwifiex_queue_scan_cmd ( struct mwifiex_private priv,
struct cmd_ctrl_node cmd_node 
)

Definition at line 1825 of file scan.c.

int mwifiex_queue_tx_pkt ( struct mwifiex_private priv,
struct sk_buff skb 
)

Definition at line 481 of file main.c.

int mwifiex_recv_packet ( struct mwifiex_adapter ,
struct sk_buff skb 
)

Definition at line 193 of file util.c.

int mwifiex_reg_read ( struct mwifiex_private priv,
u32  reg_type,
u32  reg_offset,
u32 value 
)

Definition at line 1188 of file sta_ioctl.c.

int mwifiex_reg_write ( struct mwifiex_private priv,
u32  reg_type,
u32  reg_offset,
u32  reg_value 
)

Definition at line 1169 of file sta_ioctl.c.

int mwifiex_remain_on_chan_cfg ( struct mwifiex_private priv,
u16  action,
struct ieee80211_channel chan,
enum nl80211_channel_type channel_type,
unsigned int  duration 
)

Definition at line 1047 of file sta_ioctl.c.

int mwifiex_remove_card ( struct mwifiex_adapter ,
struct semaphore  
)

Definition at line 816 of file main.c.

int mwifiex_request_scan ( struct mwifiex_private priv,
struct cfg80211_ssid req_ssid 
)

Definition at line 1884 of file scan.c.

int mwifiex_request_set_multicast_list ( struct mwifiex_private priv,
struct mwifiex_multicast_list mcast_list 
)

Definition at line 96 of file sta_ioctl.c.

void mwifiex_reset_connect_state ( struct mwifiex_private priv,
u16  reason 
)

Definition at line 44 of file sta_event.c.

int mwifiex_ret_802_11_ad_hoc ( struct mwifiex_private priv,
struct host_cmd_ds_command resp 
)

Definition at line 1176 of file join.c.

int mwifiex_ret_802_11_associate ( struct mwifiex_private priv,
struct host_cmd_ds_command resp 
)

Definition at line 610 of file join.c.

int mwifiex_ret_802_11_hs_cfg ( struct mwifiex_private priv,
struct host_cmd_ds_command resp 
)

Definition at line 1121 of file cmdevt.c.

int mwifiex_ret_802_11_scan ( struct mwifiex_private priv,
struct host_cmd_ds_command resp 
)

Definition at line 1525 of file scan.c.

int mwifiex_ret_enh_power_mode ( struct mwifiex_private priv,
struct host_cmd_ds_command resp,
struct mwifiex_ds_pm_cfg pm_cfg 
)

Definition at line 1325 of file cmdevt.c.

int mwifiex_ret_get_hw_spec ( struct mwifiex_private priv,
struct host_cmd_ds_command resp 
)

Definition at line 1424 of file cmdevt.c.

void mwifiex_save_curr_bcn ( struct mwifiex_private priv)

Definition at line 1966 of file scan.c.

int mwifiex_scan_networks ( struct mwifiex_private priv,
const struct mwifiex_user_scan_cfg user_scan_in 
)

Definition at line 1296 of file scan.c.

int mwifiex_send_cmd_async ( struct mwifiex_private priv,
uint16_t  cmd_no,
u16  cmd_action,
u32  cmd_oid,
void data_buf 
)

Definition at line 509 of file cmdevt.c.

int mwifiex_send_cmd_sync ( struct mwifiex_private priv,
uint16_t  cmd_no,
u16  cmd_action,
u32  cmd_oid,
void data_buf 
)

Definition at line 481 of file cmdevt.c.

int mwifiex_send_null_packet ( struct mwifiex_private priv,
u8  flags 
)

Definition at line 124 of file sta_tx.c.

int mwifiex_set_11n_httx_cfg ( struct mwifiex_private priv,
int  data 
)
int mwifiex_set_bss_role ( struct mwifiex_private priv,
u8  bss_role 
)

Definition at line 1076 of file sta_ioctl.c.

int mwifiex_set_encode ( struct mwifiex_private priv,
struct key_params kp,
const u8 key,
int  key_len,
u8  key_index,
const u8 mac_addr,
int  disable 
)

Definition at line 998 of file sta_ioctl.c.

int mwifiex_set_gen_ie ( struct mwifiex_private priv,
u8 ie,
int  ie_len 
)

Definition at line 1354 of file sta_ioctl.c.

void mwifiex_set_ht_params ( struct mwifiex_private priv,
struct mwifiex_uap_bss_param bss_cfg,
struct cfg80211_ap_settings params 
)

Definition at line 156 of file uap_cmd.c.

int mwifiex_set_mgmt_ies ( struct mwifiex_private priv,
struct cfg80211_beacon_data data 
)

Definition at line 321 of file ie.c.

int mwifiex_set_radio ( struct mwifiex_private priv,
u8  option 
)
int mwifiex_set_secure_params ( struct mwifiex_private priv,
struct mwifiex_uap_bss_param bss_config,
struct cfg80211_ap_settings params 
)

Definition at line 25 of file uap_cmd.c.

void mwifiex_set_sys_config_invalid_data ( struct mwifiex_uap_bss_param config)

Definition at line 203 of file uap_cmd.c.

void mwifiex_set_trans_start ( struct net_device dev)

Definition at line 373 of file init.c.

int mwifiex_set_tx_power ( struct mwifiex_private priv,
struct mwifiex_power_cfg power_cfg 
)

Definition at line 588 of file sta_ioctl.c.

int mwifiex_set_tx_rate_cfg ( struct mwifiex_private priv,
int  tx_rate_index 
)
void mwifiex_set_uap_rates ( struct mwifiex_uap_bss_param bss_cfg,
struct cfg80211_ap_settings params 
)

Definition at line 184 of file uap_cmd.c.

int mwifiex_shutdown_drv ( struct mwifiex_adapter adapter)

Definition at line 674 of file init.c.

int mwifiex_shutdown_fw_complete ( struct mwifiex_adapter adapter)

Definition at line 49 of file util.c.

s32 mwifiex_ssid_cmp ( struct cfg80211_ssid ssid1,
struct cfg80211_ssid ssid2 
)

Definition at line 170 of file scan.c.

int mwifiex_sta_init_cmd ( struct mwifiex_private ,
u8  first_sta 
)

Definition at line 1304 of file sta_cmd.c.

int mwifiex_sta_prepare_cmd ( struct mwifiex_private ,
uint16_t  cmd_no,
u16  cmd_action,
u32  cmd_oid,
void data_buf,
void cmd_buf 
)

Definition at line 1068 of file sta_cmd.c.

void mwifiex_stop_net_dev_queue ( struct net_device netdev,
struct mwifiex_adapter adapter 
)

Definition at line 399 of file init.c.

int mwifiex_uap_prepare_cmd ( struct mwifiex_private priv,
uint16_t  cmd_no,
u16  cmd_action,
u32  cmd_oid,
void data_buf,
void cmd_buf 
)

Definition at line 589 of file uap_cmd.c.

int mwifiex_update_bss_desc_with_ie ( struct mwifiex_adapter adapter,
struct mwifiex_bssdescriptor bss_entry 
)

Definition at line 1068 of file scan.c.

int mwifiex_wait_queue_complete ( struct mwifiex_adapter adapter)

Definition at line 57 of file sta_ioctl.c.

void mwifiex_wake_up_net_dev_queue ( struct net_device netdev,
struct mwifiex_adapter adapter 
)

Definition at line 386 of file init.c.

int mwifiex_write_data_complete ( struct mwifiex_adapter adapter,
struct sk_buff skb,
int  status 
)

Definition at line 140 of file txrx.c.

Variable Documentation

const char driver_version[]

Definition at line 27 of file main.c.

u16 region_code_index[MWIFIEX_MAX_REGION_CODE]

Definition at line 69 of file cfp.c.