Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lib.c File Reference
#include <linux/etherdevice.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <net/mac80211.h>
#include "iwl-io.h"
#include "iwl-agn-hw.h"
#include "iwl-trans.h"
#include "iwl-modparams.h"
#include "dev.h"
#include "agn.h"

Go to the source code of this file.

Macros

#define IWL_NUM_RX_CHAINS_MULTIPLE   3
 
#define IWL_NUM_RX_CHAINS_SINGLE   2
 
#define IWL_NUM_IDLE_CHAINS_DUAL   2
 
#define IWL_NUM_IDLE_CHAINS_SINGLE   1
 

Functions

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_hwrate_to_mac80211_idx (u32 rate_n_flags, enum ieee80211_band band)
 
int iwlagn_manage_ibss_station (struct iwl_priv *priv, struct ieee80211_vif *vif, bool add)
 
int iwlagn_txfifo_flush (struct iwl_priv *priv, u16 flush_control)
 
void iwlagn_dev_txfifo_flush (struct iwl_priv *priv, u16 flush_control)
 
void iwlagn_send_advance_bt_config (struct iwl_priv *priv)
 
void iwlagn_bt_adjust_rssi_monitor (struct iwl_priv *priv, bool rssi_ena)
 
void iwlagn_bt_coex_rssi_monitor (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_set_rxon_chain (struct iwl_priv *priv, struct iwl_rxon_context *ctx)
 
u8 iwl_toggle_tx_ant (struct iwl_priv *priv, u8 ant, u8 valid)
 
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)
 

Macro Definition Documentation

#define IWL_NUM_IDLE_CHAINS_DUAL   2

Definition at line 744 of file lib.c.

#define IWL_NUM_IDLE_CHAINS_SINGLE   1

Definition at line 745 of file lib.c.

#define IWL_NUM_RX_CHAINS_MULTIPLE   3

Definition at line 742 of file lib.c.

#define IWL_NUM_RX_CHAINS_SINGLE   2

Definition at line 743 of file lib.c.

Function Documentation

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.

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

Definition at line 877 of file lib.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.

void iwlagn_dev_txfifo_flush ( struct iwl_priv priv,
u16  flush_control 
)

Definition at line 173 of file lib.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.

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_send_advance_bt_config ( struct iwl_priv priv)

Definition at line 240 of file lib.c.

int iwlagn_send_tx_power ( struct iwl_priv priv)

Definition at line 50 of file lib.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_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.