Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
agn.h File Reference
#include "iwl-config.h"
#include "dev.h"

Go to the source code of this file.

Macros

#define IWLAGN_FIRST_AMPDU_QUEUE   11
 
#define IWL_AUX_QUEUE   10
 
#define TIME_UNIT   1024
 
#define STATUS_RF_KILL_HW   0
 
#define STATUS_CT_KILL   1
 
#define STATUS_ALIVE   2
 
#define STATUS_READY   3
 
#define STATUS_EXIT_PENDING   5
 
#define STATUS_STATISTICS   6
 
#define STATUS_SCANNING   7
 
#define STATUS_SCAN_ABORTING   8
 
#define STATUS_SCAN_HW   9
 
#define STATUS_FW_ERROR   10
 
#define STATUS_CHANNEL_SWITCH_PENDING   11
 
#define STATUS_SCAN_COMPLETE   12
 
#define STATUS_POWER_PMI   13
 
#define STATUS_SCAN_ROC_EXPIRED   14
 
#define IWL_ACTIVE_QUIET_TIME   cpu_to_le16(10) /* msec */
 
#define IWL_PLCP_QUIET_THRESH   cpu_to_le16(1) /* packets */
 
#define IWL_SCAN_CHECK_WATCHDOG   (HZ * 15)
 
#define IWL_STA_DRIVER_ACTIVE   BIT(0) /* driver entry is active */
 
#define IWL_STA_UCODE_ACTIVE   BIT(1) /* ucode entry is active */
 
#define IWL_STA_UCODE_INPROGRESS
 
#define IWL_STA_LOCAL
 
#define IWL_STA_BCAST   BIT(4) /* this station is the special bcast station */
 
#define IWL_DEBUG_QUIET_RFKILL(m, fmt, args...)
 

Functions

void iwl_down (struct iwl_priv *priv)
 
void iwl_cancel_deferred_work (struct iwl_priv *priv)
 
void iwlagn_prepare_restart (struct iwl_priv *priv)
 
int __must_check iwl_rx_dispatch (struct iwl_op_mode *op_mode, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd)
 
bool iwl_check_for_ct_kill (struct iwl_priv *priv)
 
void iwlagn_lift_passive_no_rx (struct iwl_priv *priv)
 
struct ieee80211_hwiwl_alloc_all (void)
 
int iwlagn_mac_setup_register (struct iwl_priv *priv, const struct iwl_ucode_capabilities *capa)
 
void iwlagn_mac_unregister (struct iwl_priv *priv)
 
int iwl_dvm_send_cmd (struct iwl_priv *priv, struct iwl_host_cmd *cmd)
 
int iwl_dvm_send_cmd_pdu (struct iwl_priv *priv, u8 id, u32 flags, u16 len, const void *data)
 
void iwl_connection_init_rx_config (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
int iwlagn_set_pan_params (struct iwl_priv *priv)
 
int iwlagn_commit_rxon (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
void iwlagn_set_rxon_chain (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
int iwlagn_mac_config (struct ieee80211_hw *hw, u32 changed)
 
void iwlagn_bss_info_changed (struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, u32 changes)
 
void iwlagn_config_ht40 (struct ieee80211_conf *conf, struct iwl_rxon_context *ctx)
 
void iwl_set_rxon_ht (struct iwl_priv *priv, struct iwl_ht_config *ht_conf)
 
void iwl_set_rxon_channel (struct iwl_priv *priv, struct ieee80211_channel *ch, struct iwl_rxon_context *ctx)
 
void iwl_set_flags_for_band (struct iwl_priv *priv, struct iwl_rxon_context *ctx, enum ieee80211_band band, struct ieee80211_vif *vif)
 
int iwl_send_bt_env (struct iwl_priv *priv, u8 action, u8 type)
 
void iwl_send_prio_tbl (struct iwl_priv *priv)
 
int iwl_init_alive_start (struct iwl_priv *priv)
 
int iwl_run_init_ucode (struct iwl_priv *priv)
 
int iwl_load_ucode_wait_alive (struct iwl_priv *priv, enum iwl_ucode_type ucode_type)
 
int iwl_send_calib_results (struct iwl_priv *priv)
 
int iwl_calib_set (struct iwl_priv *priv, const struct iwl_calib_hdr *cmd, int len)
 
void iwl_calib_free_results (struct iwl_priv *priv)
 
int iwl_dump_nic_event_log (struct iwl_priv *priv, bool full_log, char **buf, bool display)
 
int iwlagn_hw_valid_rtc_data_addr (u32 addr)
 
int iwlagn_send_tx_power (struct iwl_priv *priv)
 
void iwlagn_temperature (struct iwl_priv *priv)
 
int iwlagn_txfifo_flush (struct iwl_priv *priv, u16 flush_control)
 
void iwlagn_dev_txfifo_flush (struct iwl_priv *priv, u16 flush_control)
 
int iwlagn_send_beacon_cmd (struct iwl_priv *priv)
 
int iwl_send_statistics_request (struct iwl_priv *priv, u8 flags, bool clear)
 
int iwlagn_hwrate_to_mac80211_idx (u32 rate_n_flags, enum ieee80211_band band)
 
void iwl_setup_rx_handlers (struct iwl_priv *priv)
 
void iwl_chswitch_done (struct iwl_priv *priv, bool is_success)
 
int iwlagn_tx_skb (struct iwl_priv *priv, struct ieee80211_sta *sta, struct sk_buff *skb)
 
int iwlagn_tx_agg_start (struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u16 *ssn)
 
int iwlagn_tx_agg_oper (struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u8 buf_size)
 
int iwlagn_tx_agg_stop (struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid)
 
int iwlagn_rx_reply_compressed_ba (struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd)
 
int iwlagn_rx_reply_tx (struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd)
 
u8 iwl_toggle_tx_ant (struct iwl_priv *priv, u8 ant_idx, u8 valid)
 
void iwlagn_post_scan (struct iwl_priv *priv)
 
void iwlagn_disable_roc (struct iwl_priv *priv)
 
int iwl_force_rf_reset (struct iwl_priv *priv, bool external)
 
void iwl_init_scan_params (struct iwl_priv *priv)
 
int iwl_scan_cancel (struct iwl_priv *priv)
 
void iwl_scan_cancel_timeout (struct iwl_priv *priv, unsigned long ms)
 
void iwl_force_scan_end (struct iwl_priv *priv)
 
void iwl_internal_short_hw_scan (struct iwl_priv *priv)
 
void iwl_setup_rx_scan_handlers (struct iwl_priv *priv)
 
void iwl_setup_scan_deferred_work (struct iwl_priv *priv)
 
void iwl_cancel_scan_deferred_work (struct iwl_priv *priv)
 
int __must_check iwl_scan_initiate (struct iwl_priv *priv, struct ieee80211_vif *vif, enum iwl_scan_type scan_type, enum ieee80211_band band)
 
void iwl_scan_roc_expired (struct iwl_priv *priv)
 
void iwl_scan_offchannel_skb (struct iwl_priv *priv)
 
void iwl_scan_offchannel_skb_status (struct iwl_priv *priv)
 
void iwlagn_send_advance_bt_config (struct iwl_priv *priv)
 
int iwlagn_bt_coex_profile_notif (struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd)
 
void iwlagn_bt_rx_handler_setup (struct iwl_priv *priv)
 
void iwlagn_bt_setup_deferred_work (struct iwl_priv *priv)
 
void iwlagn_bt_cancel_deferred_work (struct iwl_priv *priv)
 
void iwlagn_bt_coex_rssi_monitor (struct iwl_priv *priv)
 
void iwlagn_bt_adjust_rssi_monitor (struct iwl_priv *priv, bool rssi_ena)
 
int iwlagn_manage_ibss_station (struct iwl_priv *priv, struct ieee80211_vif *vif, bool add)
 
void iwl_restore_stations (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
void iwl_clear_ucode_stations (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
void iwl_dealloc_bcast_stations (struct iwl_priv *priv)
 
int iwl_get_free_ucode_key_offset (struct iwl_priv *priv)
 
int iwl_send_add_sta (struct iwl_priv *priv, struct iwl_addsta_cmd *sta, u8 flags)
 
int iwl_add_station_common (struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, bool is_ap, struct ieee80211_sta *sta, u8 *sta_id_r)
 
int iwl_remove_station (struct iwl_priv *priv, const u8 sta_id, const u8 *addr)
 
void iwl_deactivate_station (struct iwl_priv *priv, const u8 sta_id, const u8 *addr)
 
u8 iwl_prep_station (struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, bool is_ap, struct ieee80211_sta *sta)
 
int iwl_send_lq_cmd (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct iwl_link_quality_cmd *lq, u8 flags, bool init)
 
int iwl_add_sta_callback (struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd)
 
int iwl_sta_update_ht (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_sta *sta)
 
bool iwl_is_ht40_tx_allowed (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_sta_ht_cap *ht_cap)
 
int iwlagn_alloc_bcast_station (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
int iwlagn_add_bssid_station (struct iwl_priv *priv, struct iwl_rxon_context *ctx, const u8 *addr, u8 *sta_id_r)
 
int iwl_remove_default_wep_key (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *key)
 
int iwl_set_default_wep_key (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *key)
 
int iwl_restore_default_wep_keys (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
int iwl_set_dynamic_key (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *key, struct ieee80211_sta *sta)
 
int iwl_remove_dynamic_key (struct iwl_priv *priv, struct iwl_rxon_context *ctx, struct ieee80211_key_conf *key, struct ieee80211_sta *sta)
 
void iwl_update_tkip_key (struct iwl_priv *priv, struct ieee80211_vif *vif, struct ieee80211_key_conf *keyconf, struct ieee80211_sta *sta, u32 iv32, u16 *phase1key)
 
int iwl_sta_tx_modify_enable_tid (struct iwl_priv *priv, int sta_id, int tid)
 
int iwl_sta_rx_agg_start (struct iwl_priv *priv, struct ieee80211_sta *sta, int tid, u16 ssn)
 
int iwl_sta_rx_agg_stop (struct iwl_priv *priv, struct ieee80211_sta *sta, int tid)
 
void iwl_sta_modify_sleep_tx_count (struct iwl_priv *priv, int sta_id, int cnt)
 
int iwl_update_bcast_station (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
int iwl_update_bcast_stations (struct iwl_priv *priv)
 
int iwl_alive_start (struct iwl_priv *priv)
 

Variables

struct iwl_lib_ops iwl1000_lib
 
struct iwl_lib_ops iwl2000_lib
 
struct iwl_lib_ops iwl2030_lib
 
struct iwl_lib_ops iwl5000_lib
 
struct iwl_lib_ops iwl5150_lib
 
struct iwl_lib_ops iwl6000_lib
 
struct iwl_lib_ops iwl6030_lib
 
struct ieee80211_ops iwlagn_hw_ops
 
const chariwl_dvm_cmd_strings [REPLY_MAX]
 

Macro Definition Documentation

#define IWL_ACTIVE_QUIET_TIME   cpu_to_le16(10) /* msec */

Definition at line 271 of file agn.h.

#define IWL_AUX_QUEUE   10

Definition at line 74 of file agn.h.

#define IWL_DEBUG_QUIET_RFKILL (   m,
  fmt,
  args... 
)
Value:
do { \
if (!iwl_is_rfkill((m))) \
IWL_ERR(m, fmt, ##args); \
__iwl_err((m)->dev, true, true, fmt, ##args); \
} while (0)

Definition at line 508 of file agn.h.

#define IWL_PLCP_QUIET_THRESH   cpu_to_le16(1) /* packets */

Definition at line 272 of file agn.h.

#define IWL_SCAN_CHECK_WATCHDOG   (HZ * 15)

Definition at line 274 of file agn.h.

#define IWL_STA_BCAST   BIT(4) /* this station is the special bcast station */

Definition at line 310 of file agn.h.

#define IWL_STA_DRIVER_ACTIVE   BIT(0) /* driver entry is active */

Definition at line 306 of file agn.h.

#define IWL_STA_LOCAL
Value:
BIT(3) /* station state not directed by mac80211;
(this is for the IBSS BSSID stations) */

Definition at line 309 of file agn.h.

#define IWL_STA_UCODE_ACTIVE   BIT(1) /* ucode entry is active */

Definition at line 307 of file agn.h.

#define IWL_STA_UCODE_INPROGRESS
Value:
BIT(2) /* ucode entry is in process of
being activated */

Definition at line 308 of file agn.h.

#define IWLAGN_FIRST_AMPDU_QUEUE   11

Definition at line 71 of file agn.h.

#define STATUS_ALIVE   2

Definition at line 93 of file agn.h.

#define STATUS_CHANNEL_SWITCH_PENDING   11

Definition at line 101 of file agn.h.

#define STATUS_CT_KILL   1

Definition at line 92 of file agn.h.

#define STATUS_EXIT_PENDING   5

Definition at line 95 of file agn.h.

#define STATUS_FW_ERROR   10

Definition at line 100 of file agn.h.

#define STATUS_POWER_PMI   13

Definition at line 103 of file agn.h.

#define STATUS_READY   3

Definition at line 94 of file agn.h.

#define STATUS_RF_KILL_HW   0

Definition at line 91 of file agn.h.

#define STATUS_SCAN_ABORTING   8

Definition at line 98 of file agn.h.

#define STATUS_SCAN_COMPLETE   12

Definition at line 102 of file agn.h.

#define STATUS_SCAN_HW   9

Definition at line 99 of file agn.h.

#define STATUS_SCAN_ROC_EXPIRED   14

Definition at line 104 of file agn.h.

#define STATUS_SCANNING   7

Definition at line 97 of file agn.h.

#define STATUS_STATISTICS   6

Definition at line 96 of file agn.h.

#define TIME_UNIT   1024

Definition at line 86 of file agn.h.

Function Documentation

int iwl_add_sta_callback ( struct iwl_priv priv,
struct iwl_rx_cmd_buffer rxb,
struct iwl_device_cmd cmd 
)

Definition at line 127 of file sta.c.

int iwl_add_station_common ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
const u8 addr,
bool  is_ap,
struct ieee80211_sta sta,
u8 sta_id_r 
)

iwl_add_station_common -

Definition at line 384 of file sta.c.

int iwl_alive_start ( struct iwl_priv priv)

iwl_alive_start - called after REPLY_ALIVE notification received from protocol/runtime uCode (initialization uCode's Alive gets handled by iwl_init_alive_start()).

Definition at line 719 of file main.c.

struct ieee80211_hw* iwl_alloc_all ( void  )
read

Definition at line 1649 of file mac80211.c.

void iwl_calib_free_results ( struct iwl_priv priv)

Definition at line 144 of file calib.c.

int iwl_calib_set ( struct iwl_priv priv,
const struct iwl_calib_hdr cmd,
int  len 
)

Definition at line 118 of file calib.c.

void iwl_cancel_deferred_work ( struct iwl_priv priv)

Definition at line 1076 of file main.c.

void iwl_cancel_scan_deferred_work ( struct iwl_priv priv)

Definition at line 1139 of file scan.c.

bool iwl_check_for_ct_kill ( struct iwl_priv priv)

Definition at line 124 of file tt.c.

void iwl_chswitch_done ( struct iwl_priv priv,
bool  is_success 
)

Definition at line 935 of file mac80211.c.

void iwl_clear_ucode_stations ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwl_clear_ucode_stations - clear ucode station table bits

This function clears all the bits in the driver indicating which stations are active in the ucode. Call when something other than explicit station management would cause this in the ucode, e.g. unassociated RXON.

Definition at line 672 of file sta.c.

void iwl_connection_init_rx_config ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

Definition at line 37 of file rxon.c.

void iwl_deactivate_station ( struct iwl_priv priv,
const u8  sta_id,
const u8 addr 
)

Definition at line 579 of file sta.c.

void iwl_dealloc_bcast_stations ( struct iwl_priv priv)

Definition at line 794 of file sta.c.

void iwl_down ( struct iwl_priv priv)

Definition at line 850 of file main.c.

int iwl_dump_nic_event_log ( struct iwl_priv priv,
bool  full_log,
char **  buf,
bool  display 
)

Definition at line 1802 of file main.c.

int iwl_dvm_send_cmd ( struct iwl_priv priv,
struct iwl_host_cmd cmd 
)

Definition at line 1251 of file lib.c.

int iwl_dvm_send_cmd_pdu ( struct iwl_priv priv,
u8  id,
u32  flags,
u16  len,
const void data 
)

Definition at line 1282 of file lib.c.

int iwl_force_rf_reset ( struct iwl_priv priv,
bool  external 
)

Definition at line 278 of file rx.c.

void iwl_force_scan_end ( struct iwl_priv priv)

Definition at line 167 of file scan.c.

int iwl_get_free_ucode_key_offset ( struct iwl_priv priv)

Definition at line 783 of file sta.c.

int iwl_init_alive_start ( struct iwl_priv priv)

temperature offset calibration is only needed for runtime ucode, so prepare the value now.

Definition at line 131 of file ucode.c.

void iwl_init_scan_params ( struct iwl_priv priv)

Definition at line 999 of file scan.c.

void iwl_internal_short_hw_scan ( struct iwl_priv priv)

Definition at line 1063 of file scan.c.

bool iwl_is_ht40_tx_allowed ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_sta_ht_cap ht_cap 
)

Definition at line 174 of file sta.c.

int iwl_load_ucode_wait_alive ( struct iwl_priv priv,
enum iwl_ucode_type  ucode_type 
)

Definition at line 406 of file ucode.c.

u8 iwl_prep_station ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
const u8 addr,
bool  is_ap,
struct ieee80211_sta sta 
)

iwl_prep_station - Prepare station information for addition

should be called with sta_lock held

Definition at line 297 of file sta.c.

int iwl_remove_default_wep_key ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_key_conf key 
)

Definition at line 1053 of file sta.c.

int iwl_remove_dynamic_key ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_key_conf key,
struct ieee80211_sta sta 
)

Definition at line 1214 of file sta.c.

int iwl_remove_station ( struct iwl_priv priv,
const u8  sta_id,
const u8 addr 
)

iwl_remove_station - Remove driver's knowledge of station.

Definition at line 518 of file sta.c.

int iwl_restore_default_wep_keys ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

Definition at line 1045 of file sta.c.

void iwl_restore_stations ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwl_restore_stations() - Restore driver known stations to device

All stations considered active by driver, but not present in ucode, is restored.

Function sleeps.

Definition at line 707 of file sta.c.

int iwl_run_init_ucode ( struct iwl_priv priv)

Definition at line 507 of file ucode.c.

int __must_check iwl_rx_dispatch ( struct iwl_op_mode op_mode,
struct iwl_rx_cmd_buffer rxb,
struct iwl_device_cmd cmd 
)

Definition at line 1111 of file rx.c.

int iwl_scan_cancel ( struct iwl_priv priv)

iwl_scan_cancel - Cancel any currently executing HW scan

Definition at line 211 of file scan.c.

void iwl_scan_cancel_timeout ( struct iwl_priv priv,
unsigned long  ms 
)

iwl_scan_cancel_timeout - Cancel any currently executing HW scan : amount of time to wait (in milliseconds) for scan to abort

Definition at line 223 of file scan.c.

int __must_check iwl_scan_initiate ( struct iwl_priv priv,
struct ieee80211_vif vif,
enum iwl_scan_type  scan_type,
enum ieee80211_band  band 
)

Definition at line 1008 of file scan.c.

void iwl_scan_offchannel_skb ( struct iwl_priv priv)

Definition at line 1174 of file scan.c.

void iwl_scan_offchannel_skb_status ( struct iwl_priv priv)

Definition at line 1180 of file scan.c.

void iwl_scan_roc_expired ( struct iwl_priv priv)

Definition at line 1152 of file scan.c.

int iwl_send_add_sta ( struct iwl_priv priv,
struct iwl_addsta_cmd sta,
u8  flags 
)

Definition at line 138 of file sta.c.

int iwl_send_bt_env ( struct iwl_priv priv,
u8  action,
u8  type 
)

Definition at line 214 of file ucode.c.

int iwl_send_calib_results ( struct iwl_priv priv)

Definition at line 93 of file calib.c.

int iwl_send_lq_cmd ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct iwl_link_quality_cmd lq,
u8  flags,
bool  init 
)

iwl_send_lq_cmd() - Send link quality command : This command is sent as part of station initialization right after station has been added.

The link quality command is sent as the last step of station creation. This is the special case in which init is set and we call a callback in this case to clear the state indicating that station creation is in progress.

Definition at line 878 of file sta.c.

void iwl_send_prio_tbl ( struct iwl_priv priv)

Definition at line 202 of file ucode.c.

int iwl_send_statistics_request ( struct iwl_priv priv,
u8  flags,
bool  clear 
)

Definition at line 297 of file main.c.

int iwl_set_default_wep_key ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_key_conf key 
)

Definition at line 1078 of file sta.c.

int iwl_set_dynamic_key ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_key_conf key,
struct ieee80211_sta sta 
)

Definition at line 1262 of file sta.c.

void iwl_set_flags_for_band ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
enum ieee80211_band  band,
struct ieee80211_vif vif 
)

Definition at line 743 of file rxon.c.

void iwl_set_rxon_channel ( struct iwl_priv priv,
struct ieee80211_channel ch,
struct iwl_rxon_context ctx 
)

iwl_set_rxon_channel - Set the band and channel values in staging RXON : requested channel as a pointer to struct ieee80211_channel

NOTE: Does not commit to the hardware; it sets appropriate bit fields in the staging RXON flag structure based on the ch->band

Definition at line 721 of file rxon.c.

void iwl_set_rxon_ht ( struct iwl_priv priv,
struct iwl_ht_config ht_conf 
)

Definition at line 706 of file rxon.c.

void iwl_setup_rx_handlers ( struct iwl_priv priv)

iwl_setup_rx_handlers - Initialize Rx handler callbacks

Setup the RX handlers for each of the reply types sent from the uCode to the host.

Definition at line 1060 of file rx.c.

void iwl_setup_rx_scan_handlers ( struct iwl_priv priv)

Definition at line 374 of file scan.c.

void iwl_setup_scan_deferred_work ( struct iwl_priv priv)

Definition at line 1131 of file scan.c.

void iwl_sta_modify_sleep_tx_count ( struct iwl_priv priv,
int  sta_id,
int  cnt 
)

Definition at line 1474 of file sta.c.

int iwl_sta_rx_agg_start ( struct iwl_priv priv,
struct ieee80211_sta sta,
int  tid,
u16  ssn 
)

Definition at line 1423 of file sta.c.

int iwl_sta_rx_agg_stop ( struct iwl_priv priv,
struct ieee80211_sta sta,
int  tid 
)

Definition at line 1447 of file sta.c.

int iwl_sta_tx_modify_enable_tid ( struct iwl_priv priv,
int  sta_id,
int  tid 
)

iwl_sta_tx_modify_enable_tid - Enable Tx for this TID in station table

Definition at line 1406 of file sta.c.

int iwl_sta_update_ht ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
struct ieee80211_sta sta 
)

Definition at line 253 of file sta.c.

u8 iwl_toggle_tx_ant ( struct iwl_priv priv,
u8  ant_idx,
u8  valid 
)

Definition at line 877 of file lib.c.

int iwl_update_bcast_station ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwl_update_bcast_station - update broadcast station's LQ command

Only used by iwlagn. Placed here to have all bcast station management code together.

Definition at line 1366 of file sta.c.

int iwl_update_bcast_stations ( struct iwl_priv priv)

Definition at line 1389 of file sta.c.

void iwl_update_tkip_key ( struct iwl_priv priv,
struct ieee80211_vif vif,
struct ieee80211_key_conf keyconf,
struct ieee80211_sta sta,
u32  iv32,
u16 phase1key 
)

Definition at line 1194 of file sta.c.

int iwlagn_add_bssid_station ( struct iwl_priv priv,
struct iwl_rxon_context ctx,
const u8 addr,
u8 sta_id_r 
)

Definition at line 946 of file sta.c.

int iwlagn_alloc_bcast_station ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwlagn_alloc_bcast_station - add broadcast station into driver's station table.

This adds the broadcast station into the driver's station table and marks it driver active, so that it will be restored to the device at the next best time.

Definition at line 1327 of file sta.c.

void iwlagn_bss_info_changed ( struct ieee80211_hw hw,
struct ieee80211_vif vif,
struct ieee80211_bss_conf bss_conf,
u32  changes 
)

Definition at line 1410 of file rxon.c.

void iwlagn_bt_adjust_rssi_monitor ( struct iwl_priv priv,
bool  rssi_ena 
)

Definition at line 347 of file lib.c.

void iwlagn_bt_cancel_deferred_work ( struct iwl_priv priv)

Definition at line 731 of file lib.c.

int iwlagn_bt_coex_profile_notif ( struct iwl_priv priv,
struct iwl_rx_cmd_buffer rxb,
struct iwl_device_cmd cmd 
)

Definition at line 661 of file lib.c.

void iwlagn_bt_coex_rssi_monitor ( struct iwl_priv priv)

Definition at line 501 of file lib.c.

void iwlagn_bt_rx_handler_setup ( struct iwl_priv priv)

Definition at line 719 of file lib.c.

void iwlagn_bt_setup_deferred_work ( struct iwl_priv priv)

Definition at line 725 of file lib.c.

int iwlagn_commit_rxon ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwlagn_commit_rxon - commit staging_rxon to hardware

The RXON command in staging_rxon is committed to the hardware and the active_rxon structure is updated with the new data. This function correctly transitions out of the RXON_ASSOC_MSK state if a HW tune is required based on the RXON structure changes.

The connect/disconnect flow should be as the following:

  1. make sure send RXON command with association bit unset if not connect this should include the channel and the band for the candidate to be connected to
  2. Add Station before RXON association with the AP
  3. RXON_timing has to send before RXON for connection
  4. full RXON command - associated bit set
  5. use RXON_ASSOC command to update any flags changes

Definition at line 1050 of file rxon.c.

void iwlagn_config_ht40 ( struct ieee80211_conf conf,
struct iwl_rxon_context ctx 
)

Definition at line 1161 of file rxon.c.

void iwlagn_dev_txfifo_flush ( struct iwl_priv priv,
u16  flush_control 
)

Definition at line 173 of file lib.c.

void iwlagn_disable_roc ( struct iwl_priv priv)

Definition at line 1011 of file main.c.

int iwlagn_hw_valid_rtc_data_addr ( u32  addr)

Definition at line 44 of file lib.c.

int iwlagn_hwrate_to_mac80211_idx ( u32  rate_n_flags,
enum ieee80211_band  band 
)

Definition at line 98 of file lib.c.

void iwlagn_lift_passive_no_rx ( struct iwl_priv priv)

Definition at line 2091 of file main.c.

int iwlagn_mac_config ( struct ieee80211_hw hw,
u32  changed 
)

Definition at line 1179 of file rxon.c.

int iwlagn_mac_setup_register ( struct iwl_priv priv,
const struct iwl_ucode_capabilities capa 
)

Definition at line 136 of file mac80211.c.

void iwlagn_mac_unregister ( struct iwl_priv priv)

Definition at line 264 of file mac80211.c.

int iwlagn_manage_ibss_station ( struct iwl_priv priv,
struct ieee80211_vif vif,
bool  add 
)

Definition at line 119 of file lib.c.

void iwlagn_post_scan ( struct iwl_priv priv)

Definition at line 1557 of file rxon.c.

void iwlagn_prepare_restart ( struct iwl_priv priv)

Definition at line 940 of file main.c.

int iwlagn_rx_reply_compressed_ba ( struct iwl_priv priv,
struct iwl_rx_cmd_buffer rxb,
struct iwl_device_cmd cmd 
)

iwlagn_rx_reply_compressed_ba - Handler for REPLY_COMPRESSED_BA

Handles block-acknowledge notification from device, which reports success of frames sent via aggregation.

Definition at line 1273 of file tx.c.

int iwlagn_rx_reply_tx ( struct iwl_priv priv,
struct iwl_rx_cmd_buffer rxb,
struct iwl_device_cmd cmd 
)

Definition at line 1126 of file tx.c.

void iwlagn_send_advance_bt_config ( struct iwl_priv priv)

Definition at line 240 of file lib.c.

int iwlagn_send_beacon_cmd ( struct iwl_priv priv)

Definition at line 126 of file main.c.

int iwlagn_send_tx_power ( struct iwl_priv priv)

Definition at line 50 of file lib.c.

int iwlagn_set_pan_params ( struct iwl_priv priv)

Definition at line 532 of file rxon.c.

void iwlagn_set_rxon_chain ( struct iwl_priv priv,
struct iwl_rxon_context ctx 
)

iwlagn_set_rxon_chain - Set up Rx chain usage in "staging" RXON image

Selects how many and which Rx receivers/antennas/chains to use. This should not be used for scan command ... it puts data in wrong place.

Definition at line 814 of file lib.c.

void iwlagn_temperature ( struct iwl_priv priv)

Definition at line 89 of file lib.c.

int iwlagn_tx_agg_oper ( struct iwl_priv priv,
struct ieee80211_vif vif,
struct ieee80211_sta sta,
u16  tid,
u8  buf_size 
)

Definition at line 678 of file tx.c.

int iwlagn_tx_agg_start ( struct iwl_priv priv,
struct ieee80211_vif vif,
struct ieee80211_sta sta,
u16  tid,
u16 ssn 
)

Definition at line 619 of file tx.c.

int iwlagn_tx_agg_stop ( struct iwl_priv priv,
struct ieee80211_vif vif,
struct ieee80211_sta sta,
u16  tid 
)

Definition at line 527 of file tx.c.

int iwlagn_tx_skb ( struct iwl_priv priv,
struct ieee80211_sta sta,
struct sk_buff skb 
)

Definition at line 294 of file tx.c.

int iwlagn_txfifo_flush ( struct iwl_priv priv,
u16  flush_control 
)

iwlagn_txfifo_flush: send REPLY_TXFIFO_FLUSH command to uCode

pre-requirements:

  1. acquire mutex before calling
  2. make sure rf is on and not in exit state

Definition at line 139 of file lib.c.

Variable Documentation

struct iwl_lib_ops iwl1000_lib

Definition at line 177 of file devices.c.

struct iwl_lib_ops iwl2000_lib

Definition at line 235 of file devices.c.

struct iwl_lib_ops iwl2030_lib

Definition at line 241 of file devices.c.

struct iwl_lib_ops iwl5000_lib

Definition at line 422 of file devices.c.

struct iwl_lib_ops iwl5150_lib

Definition at line 428 of file devices.c.

struct iwl_lib_ops iwl6000_lib

Definition at line 585 of file devices.c.

struct iwl_lib_ops iwl6030_lib

Definition at line 592 of file devices.c.

const char* iwl_dvm_cmd_strings[REPLY_MAX]

Definition at line 42 of file rx.c.

struct ieee80211_ops iwlagn_hw_ops

Definition at line 1614 of file mac80211.c.