Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
common.h File Reference
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/wait.h>
#include <linux/io.h>
#include <net/mac80211.h>
#include <net/ieee80211_radiotap.h>
#include "commands.h"
#include "csr.h"
#include "prph.h"

Go to the source code of this file.

Data Structures

struct  il_rx_buf
 
struct  il_cmd_meta
 
struct  il_queue
 
struct  il_tx_queue
 
struct  il_eeprom_channel
 
struct  il_eeprom_calib_measure
 
struct  il_eeprom_calib_ch_info
 
struct  il_eeprom_calib_subband_info
 
struct  il_eeprom_calib_info
 
struct  il4965_channel_tgd_info
 
struct  il4965_channel_tgh_info
 
struct  il3945_clip_group
 
struct  il3945_channel_power_info
 
struct  il3945_scan_power_info
 
struct  il_channel_info
 
struct  il_frame
 
struct  il_device_cmd
 
struct  il_host_cmd
 
struct  il_rx_queue
 
struct  il_ht_agg
 
struct  il_tid_data
 
struct  il_hw_key
 
union  il_ht_rate_supp
 
struct  il_ht_config
 
struct  il_qos_info
 
struct  il_station_entry
 
struct  il_station_priv_common
 
struct  il_vif_priv
 
struct  fw_desc
 
struct  il_ucode_header
 
struct  il4965_ibss_seq
 
struct  il_sensitivity_ranges
 
struct  il_hw_params
 
struct  il_dma_ptr
 
struct  il_sensitivity_data
 
struct  il_chain_noise_data
 
struct  isr_stats
 
struct  traffic_stats
 
struct  il_force_reset
 
struct  il_rxon_context
 
struct  il_power_mgr
 
struct  il_priv
 
struct  il_ops
 
struct  il_mod_params
 
struct  il_cfg
 
struct  il_rb_status
 
struct  il_tfd_tb
 
struct  il_tfd
 
struct  il_rate_info
 
struct  il3945_rate_info
 
struct  il_rate_mcs_info
 
struct  il_rate_scale_data
 
struct  il_scale_tbl_info
 
struct  il_traffic_load
 
struct  il_lq_sta
 
struct  il_station_priv
 

Macros

#define IL_ERR(f, a...)   dev_err(&il->pci_dev->dev, f, ## a)
 
#define IL_WARN(f, a...)   dev_warn(&il->pci_dev->dev, f, ## a)
 
#define IL_INFO(f, a...)   dev_info(&il->pci_dev->dev, f, ## a)
 
#define RX_QUEUE_SIZE   256
 
#define RX_QUEUE_MASK   255
 
#define RX_QUEUE_SIZE_LOG   8
 
#define RX_FREE_BUFFERS   64
 
#define RX_LOW_WATERMARK   8
 
#define U32_PAD(n)   ((4-(n))&0x3)
 
#define CT_KILL_THRESHOLD_LEGACY   110 /* in Celsius */
 
#define IL_NOISE_MEAS_NOT_AVAILABLE   (-127)
 
#define DEFAULT_RTS_THRESHOLD   2347U
 
#define MIN_RTS_THRESHOLD   0U
 
#define MAX_RTS_THRESHOLD   2347U
 
#define MAX_MSDU_SIZE   2304U
 
#define MAX_MPDU_SIZE   2346U
 
#define DEFAULT_BEACON_INTERVAL   100U
 
#define DEFAULT_SHORT_RETRY_LIMIT   7U
 
#define DEFAULT_LONG_RETRY_LIMIT   4U
 
#define rxb_addr(r)   page_address(r->page)
 
#define TFD_TX_CMD_SLOTS   256
 
#define TFD_CMD_SLOTS   32
 
#define IL_EEPROM_ACCESS_TIMEOUT   5000 /* uSec */
 
#define IL_EEPROM_SEM_TIMEOUT   10 /* microseconds */
 
#define IL_EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */
 
#define IL_NUM_TX_CALIB_GROUPS   5
 
#define EEPROM_SKU_CAP_SW_RF_KILL_ENABLE   (1 << 0)
 
#define EEPROM_SKU_CAP_HW_RF_KILL_ENABLE   (1 << 1)
 
#define EEPROM_3945_EEPROM_VERSION   (0x2f)
 
#define EEPROM_TX_POWER_TX_CHAINS   (2)
 
#define EEPROM_TX_POWER_BANDS   (8)
 
#define EEPROM_TX_POWER_MEASUREMENTS   (3)
 
#define EEPROM_4965_TX_POWER_VERSION   (5)
 
#define EEPROM_4965_EEPROM_VERSION   (0x2f)
 
#define EEPROM_4965_CALIB_VERSION_OFFSET   (2*0xB6) /* 2 bytes */
 
#define EEPROM_4965_CALIB_TXPOWER_OFFSET   (2*0xE8) /* 48 bytes */
 
#define EEPROM_4965_BOARD_REVISION   (2*0x4F) /* 2 bytes */
 
#define EEPROM_4965_BOARD_PBA   (2*0x56+1) /* 9 bytes */
 
#define EEPROM_DEVICE_ID   (2*0x08) /* 2 bytes */
 
#define EEPROM_MAC_ADDRESS   (2*0x15) /* 6 bytes */
 
#define EEPROM_BOARD_REVISION   (2*0x35) /* 2 bytes */
 
#define EEPROM_BOARD_PBA_NUMBER   (2*0x3B+1) /* 9 bytes */
 
#define EEPROM_VERSION   (2*0x44) /* 2 bytes */
 
#define EEPROM_SKU_CAP   (2*0x45) /* 2 bytes */
 
#define EEPROM_OEM_MODE   (2*0x46) /* 2 bytes */
 
#define EEPROM_WOWLAN_MODE   (2*0x47) /* 2 bytes */
 
#define EEPROM_RADIO_CONFIG   (2*0x48) /* 2 bytes */
 
#define EEPROM_NUM_MAC_ADDRESS   (2*0x4C) /* 2 bytes */
 
#define EEPROM_RF_CFG_TYPE_MSK(x)   (x & 0x3) /* bits 0-1 */
 
#define EEPROM_RF_CFG_STEP_MSK(x)   ((x >> 2) & 0x3) /* bits 2-3 */
 
#define EEPROM_RF_CFG_DASH_MSK(x)   ((x >> 4) & 0x3) /* bits 4-5 */
 
#define EEPROM_RF_CFG_PNUM_MSK(x)   ((x >> 6) & 0x3) /* bits 6-7 */
 
#define EEPROM_RF_CFG_TX_ANT_MSK(x)   ((x >> 8) & 0xF) /* bits 8-11 */
 
#define EEPROM_RF_CFG_RX_ANT_MSK(x)   ((x >> 12) & 0xF) /* bits 12-15 */
 
#define EEPROM_3945_RF_CFG_TYPE_MAX   0x0
 
#define EEPROM_4965_RF_CFG_TYPE_MAX   0x1
 
#define EEPROM_REGULATORY_SKU_ID   (2*0x60) /* 4 bytes */
 
#define EEPROM_REGULATORY_BAND_1   (2*0x62) /* 2 bytes */
 
#define EEPROM_REGULATORY_BAND_1_CHANNELS   (2*0x63) /* 28 bytes */
 
#define EEPROM_REGULATORY_BAND_2   (2*0x71) /* 2 bytes */
 
#define EEPROM_REGULATORY_BAND_2_CHANNELS   (2*0x72) /* 26 bytes */
 
#define EEPROM_REGULATORY_BAND_3   (2*0x7F) /* 2 bytes */
 
#define EEPROM_REGULATORY_BAND_3_CHANNELS   (2*0x80) /* 24 bytes */
 
#define EEPROM_REGULATORY_BAND_4   (2*0x8C) /* 2 bytes */
 
#define EEPROM_REGULATORY_BAND_4_CHANNELS   (2*0x8D) /* 22 bytes */
 
#define EEPROM_REGULATORY_BAND_5   (2*0x98) /* 2 bytes */
 
#define EEPROM_REGULATORY_BAND_5_CHANNELS   (2*0x99) /* 12 bytes */
 
#define EEPROM_4965_REGULATORY_BAND_24_HT40_CHANNELS   (2*0xA0) /* 14 bytes */
 
#define EEPROM_4965_REGULATORY_BAND_52_HT40_CHANNELS   (2*0xA8) /* 22 bytes */
 
#define EEPROM_REGULATORY_BAND_NO_HT40   (0)
 
#define IL_NUM_SCAN_RATES   (2)
 
#define IL4965_MAX_RATE   (33)
 
#define IL_TX_FIFO_BK   0 /* shared */
 
#define IL_TX_FIFO_BE   1
 
#define IL_TX_FIFO_VI   2 /* shared */
 
#define IL_TX_FIFO_VO   3
 
#define IL_TX_FIFO_UNUSED   -1
 
#define IL_MIN_NUM_QUEUES   10
 
#define IL_DEFAULT_CMD_QUEUE_NUM   4
 
#define IEEE80211_DATA_LEN   2304
 
#define IEEE80211_4ADDR_LEN   30
 
#define IEEE80211_HLEN   (IEEE80211_4ADDR_LEN)
 
#define IEEE80211_FRAME_LEN   (IEEE80211_DATA_LEN + IEEE80211_HLEN)
 
#define SEQ_TO_SN(seq)   (((seq) & IEEE80211_SCTL_SEQ) >> 4)
 
#define SN_TO_SEQ(ssn)   (((ssn) << 4) & IEEE80211_SCTL_SEQ)
 
#define MAX_SN   ((IEEE80211_SCTL_SEQ) >> 4)
 
#define DEF_CMD_PAYLOAD_SIZE   320
 
#define TFD_MAX_PAYLOAD_SIZE   (sizeof(struct il_device_cmd))
 
#define SUP_RATE_11A_MAX_NUM_CHANNELS   8
 
#define SUP_RATE_11B_MAX_NUM_CHANNELS   4
 
#define SUP_RATE_11G_MAX_NUM_CHANNELS   12
 
#define IL_SUPPORTED_RATES_IE_LEN   8
 
#define MAX_TID_COUNT   9
 
#define IL_INVALID_RATE   0xFF
 
#define IL_INVALID_VALUE   -1
 
#define IL_AGG_OFF   0
 
#define IL_AGG_ON   1
 
#define IL_EMPTYING_HW_QUEUE_ADDBA   2
 
#define IL_EMPTYING_HW_QUEUE_DELBA   3
 
#define CFG_HT_RX_AMPDU_FACTOR_8K   (0x0)
 
#define CFG_HT_RX_AMPDU_FACTOR_16K   (0x1)
 
#define CFG_HT_RX_AMPDU_FACTOR_32K   (0x2)
 
#define CFG_HT_RX_AMPDU_FACTOR_64K   (0x3)
 
#define CFG_HT_RX_AMPDU_FACTOR_DEF   CFG_HT_RX_AMPDU_FACTOR_64K
 
#define CFG_HT_RX_AMPDU_FACTOR_MAX   CFG_HT_RX_AMPDU_FACTOR_64K
 
#define CFG_HT_RX_AMPDU_FACTOR_MIN   CFG_HT_RX_AMPDU_FACTOR_8K
 
#define CFG_HT_MPDU_DENSITY_2USEC   (0x4)
 
#define CFG_HT_MPDU_DENSITY_4USEC   (0x5)
 
#define CFG_HT_MPDU_DENSITY_8USEC   (0x6)
 
#define CFG_HT_MPDU_DENSITY_16USEC   (0x7)
 
#define CFG_HT_MPDU_DENSITY_DEF   CFG_HT_MPDU_DENSITY_4USEC
 
#define CFG_HT_MPDU_DENSITY_MAX   CFG_HT_MPDU_DENSITY_16USEC
 
#define CFG_HT_MPDU_DENSITY_MIN   (0x1)
 
#define KELVIN_TO_CELSIUS(x)   ((x)-273)
 
#define CELSIUS_TO_KELVIN(x)   ((x)+273)
 
#define IL_OPERATION_MODE_AUTO   0
 
#define IL_OPERATION_MODE_HT_ONLY   1
 
#define IL_OPERATION_MODE_MIXED   2
 
#define IL_OPERATION_MODE_20MHZ   3
 
#define IL_TX_CRC_SIZE   4
 
#define IL_TX_DELIMITER_SIZE   4
 
#define TX_POWER_IL_ILLEGAL_VOLTAGE   -10000
 
#define INITIALIZATION_VALUE   0xFFFF
 
#define IL4965_CAL_NUM_BEACONS   20
 
#define IL_CAL_NUM_BEACONS   16
 
#define MAXIMUM_ALLOWED_PATHLOSS   15
 
#define CHAIN_NOISE_MAX_DELTA_GAIN_CODE   3
 
#define MAX_FA_OFDM   50
 
#define MIN_FA_OFDM   5
 
#define MAX_FA_CCK   50
 
#define MIN_FA_CCK   5
 
#define AUTO_CORR_STEP_OFDM   1
 
#define AUTO_CORR_STEP_CCK   3
 
#define AUTO_CORR_MAX_TH_CCK   160
 
#define NRG_DIFF   2
 
#define NRG_STEP_CCK   2
 
#define NRG_MARGIN   8
 
#define MAX_NUMBER_CCK_NO_FA   100
 
#define AUTO_CORR_CCK_MIN_VAL_DEF   (125)
 
#define CHAIN_A   0
 
#define CHAIN_B   1
 
#define CHAIN_C   2
 
#define CHAIN_NOISE_DELTA_GAIN_INIT_VAL   4
 
#define ALL_BAND_FILTER   0xFF00
 
#define IN_BAND_FILTER   0xFF
 
#define MIN_AVERAGE_NOISE_MAX_VALUE   0xFFFFFFFF
 
#define NRG_NUM_PREV_STAT_L   20
 
#define NUM_RX_CHAINS   3
 
#define EEPROM_SEM_TIMEOUT   10 /* milliseconds */
 
#define EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */
 
#define IL_TRAFFIC_ENTRIES   (256)
 
#define IL_TRAFFIC_ENTRY_SIZE   (64)
 
#define IL_HOST_INT_TIMEOUT_MAX   (0xFF)
 
#define IL_HOST_INT_TIMEOUT_DEF   (0x40)
 
#define IL_HOST_INT_TIMEOUT_MIN   (0x0)
 
#define IL_HOST_INT_CALIB_TIMEOUT_MAX   (0xFF)
 
#define IL_HOST_INT_CALIB_TIMEOUT_DEF   (0x10)
 
#define IL_HOST_INT_CALIB_TIMEOUT_MIN   (0x0)
 
#define IL_DELAY_NEXT_FORCE_FW_RELOAD   (HZ*5)
 
#define IL_DEF_WD_TIMEOUT   (2000)
 
#define IL_LONG_WD_TIMEOUT   (10000)
 
#define IL_MAX_WD_TIMEOUT   (120000)
 
#define IL3945_EXT_BEACON_TIME_POS   24
 
#define IL4965_EXT_BEACON_TIME_POS   22
 
#define IL_MAX_HW_QUEUES   32
 
#define IWLWIFI_VERSION   "in-tree:"
 
#define DRV_COPYRIGHT   "Copyright(c) 2003-2011 Intel Corporation"
 
#define DRV_AUTHOR   "<[email protected]>"
 
#define IL_PCI_DEVICE(dev, subdev, cfg)
 
#define TIME_UNIT   1024
 
#define IL_SKU_G   0x1
 
#define IL_SKU_A   0x2
 
#define IL_SKU_N   0x8
 
#define IL_CMD(x)   case x: return #x
 
#define IL_RX_BUF_SIZE_3K   (3 * 1000) /* 3945 only */
 
#define IL_RX_BUF_SIZE_4K   (4 * 1024)
 
#define IL_RX_BUF_SIZE_8K   (8 * 1024)
 
#define IL_LED_SOLID   11
 
#define IL_DEF_LED_INTRVL   cpu_to_le32(1000)
 
#define IL_LED_ACTIVITY   (0<<1)
 
#define IL_LED_LINK   (1<<1)
 
#define IL_ACTIVE_QUIET_TIME   cpu_to_le16(10) /* msec */
 
#define IL_PLCP_QUIET_THRESH   cpu_to_le16(1) /* packets */
 
#define IL_SCAN_CHECK_WATCHDOG   (HZ * 7)
 
#define IL_LEGACY_PM_OPS   NULL
 
#define S_HCMD_ACTIVE   0 /* host command in progress */
 
#define S_INT_ENABLED   2
 
#define S_RFKILL   3
 
#define S_CT_KILL   4
 
#define S_INIT   5
 
#define S_ALIVE   6
 
#define S_READY   7
 
#define S_TEMPERATURE   8
 
#define S_GEO_CONFIGURED   9
 
#define S_EXIT_PENDING   10
 
#define S_STATS   12
 
#define S_SCANNING   13
 
#define S_SCAN_ABORTING   14
 
#define S_SCAN_HW   15
 
#define S_POWER_PMI   16
 
#define S_FW_ERROR   17
 
#define S_CHANNEL_SWITCH_PENDING   18
 
#define il_write8(il, ofs, val)   _il_write8(il, ofs, val)
 
#define HW_KEY_DYNAMIC   0
 
#define HW_KEY_DEFAULT   1
 
#define IL_STA_DRIVER_ACTIVE   BIT(0) /* driver entry is active */
 
#define IL_STA_UCODE_ACTIVE   BIT(1) /* ucode entry is active */
 
#define IL_STA_UCODE_INPROGRESS
 
#define IL_STA_LOCAL
 
#define IL_STA_BCAST   BIT(4) /* this station is the special bcast station */
 
#define ieee80211_stop_queue   DO_NOT_USE_ieee80211_stop_queue
 
#define ieee80211_wake_queue   DO_NOT_USE_ieee80211_wake_queue
 
#define TFD_QUEUE_SIZE_MAX   256
 
#define TFD_QUEUE_SIZE_BC_DUP   64
 
#define TFD_QUEUE_BC_SIZE   (TFD_QUEUE_SIZE_MAX + TFD_QUEUE_SIZE_BC_DUP)
 
#define IL_TX_DMA_MASK   DMA_BIT_MASK(36)
 
#define IL_NUM_OF_TBS   20
 
#define PCI_CFG_RETRY_TIMEOUT   0x041
 
#define PCI_CFG_LINK_CTRL_VAL_L0S_EN   0x01
 
#define PCI_CFG_LINK_CTRL_VAL_L1_EN   0x02
 
#define RATE_6M_MASK   (1 << RATE_6M_IDX)
 
#define RATE_9M_MASK   (1 << RATE_9M_IDX)
 
#define RATE_12M_MASK   (1 << RATE_12M_IDX)
 
#define RATE_18M_MASK   (1 << RATE_18M_IDX)
 
#define RATE_24M_MASK   (1 << RATE_24M_IDX)
 
#define RATE_36M_MASK   (1 << RATE_36M_IDX)
 
#define RATE_48M_MASK   (1 << RATE_48M_IDX)
 
#define RATE_54M_MASK   (1 << RATE_54M_IDX)
 
#define RATE_60M_MASK   (1 << RATE_60M_IDX)
 
#define RATE_1M_MASK   (1 << RATE_1M_IDX)
 
#define RATE_2M_MASK   (1 << RATE_2M_IDX)
 
#define RATE_5M_MASK   (1 << RATE_5M_IDX)
 
#define RATE_11M_MASK   (1 << RATE_11M_IDX)
 
#define IL_CCK_BASIC_RATES_MASK
 
#define IL_CCK_RATES_MASK
 
#define IL_OFDM_BASIC_RATES_MASK
 
#define IL_OFDM_RATES_MASK
 
#define IL_BASIC_RATES_MASK
 
#define RATES_MASK   ((1 << RATE_COUNT) - 1)
 
#define RATES_MASK_3945   ((1 << RATE_COUNT_3945) - 1)
 
#define IL_INVALID_VALUE   -1
 
#define IL_MIN_RSSI_VAL   -100
 
#define IL_MAX_RSSI_VAL   0
 
#define IL_LEGACY_FAILURE_LIMIT   160
 
#define IL_LEGACY_SUCCESS_LIMIT   480
 
#define IL_LEGACY_TBL_COUNT   160
 
#define IL_NONE_LEGACY_FAILURE_LIMIT   400
 
#define IL_NONE_LEGACY_SUCCESS_LIMIT   4500
 
#define IL_NONE_LEGACY_TBL_COUNT   1500
 
#define IL_RS_GOOD_RATIO   12800 /* 100% */
 
#define RATE_SCALE_SWITCH   10880 /* 85% */
 
#define RATE_HIGH_TH   10880 /* 85% */
 
#define RATE_INCREASE_TH   6400 /* 50% */
 
#define RATE_DECREASE_TH   1920 /* 15% */
 
#define IL_LEGACY_SWITCH_ANTENNA1   0
 
#define IL_LEGACY_SWITCH_ANTENNA2   1
 
#define IL_LEGACY_SWITCH_SISO   2
 
#define IL_LEGACY_SWITCH_MIMO2_AB   3
 
#define IL_LEGACY_SWITCH_MIMO2_AC   4
 
#define IL_LEGACY_SWITCH_MIMO2_BC   5
 
#define IL_SISO_SWITCH_ANTENNA1   0
 
#define IL_SISO_SWITCH_ANTENNA2   1
 
#define IL_SISO_SWITCH_MIMO2_AB   2
 
#define IL_SISO_SWITCH_MIMO2_AC   3
 
#define IL_SISO_SWITCH_MIMO2_BC   4
 
#define IL_SISO_SWITCH_GI   5
 
#define IL_MIMO2_SWITCH_ANTENNA1   0
 
#define IL_MIMO2_SWITCH_ANTENNA2   1
 
#define IL_MIMO2_SWITCH_SISO_A   2
 
#define IL_MIMO2_SWITCH_SISO_B   3
 
#define IL_MIMO2_SWITCH_SISO_C   4
 
#define IL_MIMO2_SWITCH_GI   5
 
#define IL_MAX_SEARCH   IL_MIMO2_SWITCH_GI
 
#define IL_ACTION_LIMIT   3 /* # possible actions */
 
#define LQ_SIZE   2 /* 2 mode tables: "Active" and "Search" */
 
#define IL_AGG_TPT_THREHOLD   0
 
#define IL_AGG_LOAD_THRESHOLD   10
 
#define IL_AGG_ALL_TID   0xff
 
#define TID_QUEUE_CELL_SPACING   50 /*mS */
 
#define TID_QUEUE_MAX_SIZE   20
 
#define TID_ROUND_VALUE   5 /* mS */
 
#define TID_MAX_LOAD_COUNT   8
 
#define TID_MAX_TIME_DIFF   ((TID_QUEUE_MAX_SIZE - 1) * TID_QUEUE_CELL_SPACING)
 
#define TIME_WRAP_AROUND(x, y)   (((y) > (x)) ? (y) - (x) : (0-(x)) + (y))
 
#define is_legacy(tbl)   ((tbl) == LQ_G || (tbl) == LQ_A)
 
#define is_siso(tbl)   ((tbl) == LQ_SISO)
 
#define is_mimo2(tbl)   ((tbl) == LQ_MIMO2)
 
#define is_mimo(tbl)   (is_mimo2(tbl))
 
#define is_Ht(tbl)   (is_siso(tbl) || is_mimo(tbl))
 
#define is_a_band(tbl)   ((tbl) == LQ_A)
 
#define is_g_and(tbl)   ((tbl) == LQ_G)
 
#define ANT_NONE   0x0
 
#define ANT_A   BIT(0)
 
#define ANT_B   BIT(1)
 
#define ANT_AB   (ANT_A | ANT_B)
 
#define ANT_C   BIT(2)
 
#define ANT_AC   (ANT_A | ANT_C)
 
#define ANT_BC   (ANT_B | ANT_C)
 
#define ANT_ABC   (ANT_AB | ANT_C)
 
#define IL_MAX_MCS_DISPLAY_SIZE   12
 
#define il_print_hex_error(il, p, len)
 
#define IL_DBG(level, fmt, args...)
 
#define IL_DL_INFO   (1 << 0)
 
#define IL_DL_MAC80211   (1 << 1)
 
#define IL_DL_HCMD   (1 << 2)
 
#define IL_DL_STATE   (1 << 3)
 
#define IL_DL_MACDUMP   (1 << 4)
 
#define IL_DL_HCMD_DUMP   (1 << 5)
 
#define IL_DL_EEPROM   (1 << 6)
 
#define IL_DL_RADIO   (1 << 7)
 
#define IL_DL_POWER   (1 << 8)
 
#define IL_DL_TEMP   (1 << 9)
 
#define IL_DL_NOTIF   (1 << 10)
 
#define IL_DL_SCAN   (1 << 11)
 
#define IL_DL_ASSOC   (1 << 12)
 
#define IL_DL_DROP   (1 << 13)
 
#define IL_DL_TXPOWER   (1 << 14)
 
#define IL_DL_AP   (1 << 15)
 
#define IL_DL_FW   (1 << 16)
 
#define IL_DL_RF_KILL   (1 << 17)
 
#define IL_DL_FW_ERRORS   (1 << 18)
 
#define IL_DL_LED   (1 << 19)
 
#define IL_DL_RATE   (1 << 20)
 
#define IL_DL_CALIB   (1 << 21)
 
#define IL_DL_WEP   (1 << 22)
 
#define IL_DL_TX   (1 << 23)
 
#define IL_DL_RX   (1 << 24)
 
#define IL_DL_ISR   (1 << 25)
 
#define IL_DL_HT   (1 << 26)
 
#define IL_DL_11H   (1 << 28)
 
#define IL_DL_STATS   (1 << 29)
 
#define IL_DL_TX_REPLY   (1 << 30)
 
#define IL_DL_QOS   (1 << 31)
 
#define D_INFO(f, a...)   IL_DBG(IL_DL_INFO, f, ## a)
 
#define D_MAC80211(f, a...)   IL_DBG(IL_DL_MAC80211, f, ## a)
 
#define D_MACDUMP(f, a...)   IL_DBG(IL_DL_MACDUMP, f, ## a)
 
#define D_TEMP(f, a...)   IL_DBG(IL_DL_TEMP, f, ## a)
 
#define D_SCAN(f, a...)   IL_DBG(IL_DL_SCAN, f, ## a)
 
#define D_RX(f, a...)   IL_DBG(IL_DL_RX, f, ## a)
 
#define D_TX(f, a...)   IL_DBG(IL_DL_TX, f, ## a)
 
#define D_ISR(f, a...)   IL_DBG(IL_DL_ISR, f, ## a)
 
#define D_LED(f, a...)   IL_DBG(IL_DL_LED, f, ## a)
 
#define D_WEP(f, a...)   IL_DBG(IL_DL_WEP, f, ## a)
 
#define D_HC(f, a...)   IL_DBG(IL_DL_HCMD, f, ## a)
 
#define D_HC_DUMP(f, a...)   IL_DBG(IL_DL_HCMD_DUMP, f, ## a)
 
#define D_EEPROM(f, a...)   IL_DBG(IL_DL_EEPROM, f, ## a)
 
#define D_CALIB(f, a...)   IL_DBG(IL_DL_CALIB, f, ## a)
 
#define D_FW(f, a...)   IL_DBG(IL_DL_FW, f, ## a)
 
#define D_RF_KILL(f, a...)   IL_DBG(IL_DL_RF_KILL, f, ## a)
 
#define D_DROP(f, a...)   IL_DBG(IL_DL_DROP, f, ## a)
 
#define D_AP(f, a...)   IL_DBG(IL_DL_AP, f, ## a)
 
#define D_TXPOWER(f, a...)   IL_DBG(IL_DL_TXPOWER, f, ## a)
 
#define D_RATE(f, a...)   IL_DBG(IL_DL_RATE, f, ## a)
 
#define D_NOTIF(f, a...)   IL_DBG(IL_DL_NOTIF, f, ## a)
 
#define D_ASSOC(f, a...)   IL_DBG(IL_DL_ASSOC, f, ## a)
 
#define D_HT(f, a...)   IL_DBG(IL_DL_HT, f, ## a)
 
#define D_STATS(f, a...)   IL_DBG(IL_DL_STATS, f, ## a)
 
#define D_TX_REPLY(f, a...)   IL_DBG(IL_DL_TX_REPLY, f, ## a)
 
#define D_QOS(f, a...)   IL_DBG(IL_DL_QOS, f, ## a)
 
#define D_RADIO(f, a...)   IL_DBG(IL_DL_RADIO, f, ## a)
 
#define D_POWER(f, a...)   IL_DBG(IL_DL_POWER, f, ## a)
 
#define D_11H(f, a...)   IL_DBG(IL_DL_11H, f, ## a)
 

Enumerations

enum  {
  EEPROM_CHANNEL_VALID = (1 << 0), EEPROM_CHANNEL_IBSS = (1 << 1), EEPROM_CHANNEL_ACTIVE = (1 << 3), EEPROM_CHANNEL_RADAR = (1 << 4),
  EEPROM_CHANNEL_WIDE = (1 << 5), EEPROM_CHANNEL_DFS = (1 << 7)
}
 
enum  {
  CMD_SYNC = 0, CMD_SIZE_NORMAL = 0, CMD_NO_SKB = 0, CMD_SIZE_HUGE = (1 << 0),
  CMD_ASYNC = (1 << 1), CMD_WANT_SKB = (1 << 2), CMD_MAPPED = (1 << 3)
}
 
enum  il4965_false_alarm_state { IL_FA_TOO_MANY = 0, IL_FA_TOO_FEW = 1, IL_FA_GOOD_RANGE = 2 }
 
enum  il4965_chain_noise_state { IL_CHAIN_NOISE_ALIVE = 0, IL_CHAIN_NOISE_ACCUMULATE, IL_CHAIN_NOISE_CALIBRATED, IL_CHAIN_NOISE_DONE }
 
enum  ucode_type { UCODE_NONE = 0, UCODE_INIT, UCODE_RT }
 
enum  { MEASUREMENT_READY = (1 << 0), MEASUREMENT_ACTIVE = (1 << 1) }
 
enum  il_mgmt_stats {
  MANAGEMENT_ASSOC_REQ = 0, MANAGEMENT_ASSOC_RESP, MANAGEMENT_REASSOC_REQ, MANAGEMENT_REASSOC_RESP,
  MANAGEMENT_PROBE_REQ, MANAGEMENT_PROBE_RESP, MANAGEMENT_BEACON, MANAGEMENT_ATIM,
  MANAGEMENT_DISASSOC, MANAGEMENT_AUTH, MANAGEMENT_DEAUTH, MANAGEMENT_ACTION,
  MANAGEMENT_MAX
}
 
enum  il_ctrl_stats {
  CONTROL_BACK_REQ = 0, CONTROL_BACK, CONTROL_PSPOLL, CONTROL_RTS,
  CONTROL_CTS, CONTROL_ACK, CONTROL_CFEND, CONTROL_CFENDACK,
  CONTROL_MAX
}
 
enum  il_led_mode { IL_LED_DEFAULT, IL_LED_RF_STATE, IL_LED_BLINK }
 
enum  {
  RATE_1M_IDX = 0, RATE_2M_IDX, RATE_5M_IDX, RATE_11M_IDX,
  RATE_6M_IDX, RATE_9M_IDX, RATE_12M_IDX, RATE_18M_IDX,
  RATE_24M_IDX, RATE_36M_IDX, RATE_48M_IDX, RATE_54M_IDX,
  RATE_60M_IDX, RATE_COUNT, RATE_COUNT_LEGACY = RATE_COUNT - 1, RATE_COUNT_3945 = RATE_COUNT - 1,
  RATE_INVM_IDX = RATE_COUNT, RATE_INVALID = RATE_COUNT
}
 
enum  {
  RATE_6M_IDX_TBL = 0, RATE_9M_IDX_TBL, RATE_12M_IDX_TBL, RATE_18M_IDX_TBL,
  RATE_24M_IDX_TBL, RATE_36M_IDX_TBL, RATE_48M_IDX_TBL, RATE_54M_IDX_TBL,
  RATE_1M_IDX_TBL, RATE_2M_IDX_TBL, RATE_5M_IDX_TBL, RATE_11M_IDX_TBL,
  RATE_INVM_IDX_TBL = RATE_INVM_IDX - 1
}
 
enum  {
  IL_FIRST_OFDM_RATE = RATE_6M_IDX, IL39_LAST_OFDM_RATE = RATE_54M_IDX, IL_LAST_OFDM_RATE = RATE_60M_IDX, IL_FIRST_CCK_RATE = RATE_1M_IDX,
  IL_LAST_CCK_RATE = RATE_11M_IDX
}
 
enum  {
  RATE_6M_PLCP = 13, RATE_9M_PLCP = 15, RATE_12M_PLCP = 5, RATE_18M_PLCP = 7,
  RATE_24M_PLCP = 9, RATE_36M_PLCP = 11, RATE_48M_PLCP = 1, RATE_54M_PLCP = 3,
  RATE_60M_PLCP = 3, RATE_1M_PLCP = 10, RATE_2M_PLCP = 20, RATE_5M_PLCP = 55,
  RATE_11M_PLCP = 110
}
 
enum  {
  RATE_SISO_6M_PLCP = 0, RATE_SISO_12M_PLCP = 1, RATE_SISO_18M_PLCP = 2, RATE_SISO_24M_PLCP = 3,
  RATE_SISO_36M_PLCP = 4, RATE_SISO_48M_PLCP = 5, RATE_SISO_54M_PLCP = 6, RATE_SISO_60M_PLCP = 7,
  RATE_MIMO2_6M_PLCP = 0x8, RATE_MIMO2_12M_PLCP = 0x9, RATE_MIMO2_18M_PLCP = 0xa, RATE_MIMO2_24M_PLCP = 0xb,
  RATE_MIMO2_36M_PLCP = 0xc, RATE_MIMO2_48M_PLCP = 0xd, RATE_MIMO2_54M_PLCP = 0xe, RATE_MIMO2_60M_PLCP = 0xf,
  RATE_SISO_INVM_PLCP, RATE_MIMO2_INVM_PLCP = RATE_SISO_INVM_PLCP
}
 
enum  {
  RATE_6M_IEEE = 12, RATE_9M_IEEE = 18, RATE_12M_IEEE = 24, RATE_18M_IEEE = 36,
  RATE_24M_IEEE = 48, RATE_36M_IEEE = 72, RATE_48M_IEEE = 96, RATE_54M_IEEE = 108,
  RATE_60M_IEEE = 120, RATE_1M_IEEE = 2, RATE_2M_IEEE = 4, RATE_5M_IEEE = 11,
  RATE_11M_IEEE = 22
}
 
enum  il_table_type {
  LQ_NONE, LQ_G, LQ_A, LQ_SISO,
  LQ_MIMO2, LQ_MAX
}
 

Functions

int il_eeprom_init (struct il_priv *il)
 
void il_eeprom_free (struct il_priv *il)
 
const u8il_eeprom_query_addr (const struct il_priv *il, size_t offset)
 
u16 il_eeprom_query16 (const struct il_priv *il, size_t offset)
 
int il_init_channel_map (struct il_priv *il)
 
void il_free_channel_map (struct il_priv *il)
 
struct il_channel_infoil_get_channel_info (const struct il_priv *il, enum ieee80211_band band, u16 channel)
 
void il4965_update_chain_flags (struct il_priv *il)
 
int il_queue_space (const struct il_queue *q)
 
void il_leds_init (struct il_priv *il)
 
void il_leds_exit (struct il_priv *il)
 
int il_mac_conf_tx (struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue, const struct ieee80211_tx_queue_params *params)
 
int il_mac_tx_last_beacon (struct ieee80211_hw *hw)
 
void il_set_rxon_hwcrypto (struct il_priv *il, int hw_decrypt)
 
int il_check_rxon_cmd (struct il_priv *il)
 
int il_full_rxon_required (struct il_priv *il)
 
int il_set_rxon_channel (struct il_priv *il, struct ieee80211_channel *ch)
 
void il_set_flags_for_band (struct il_priv *il, enum ieee80211_band band, struct ieee80211_vif *vif)
 
u8 il_get_single_channel_number (struct il_priv *il, enum ieee80211_band band)
 
void il_set_rxon_ht (struct il_priv *il, struct il_ht_config *ht_conf)
 
bool il_is_ht40_tx_allowed (struct il_priv *il, struct ieee80211_sta_ht_cap *ht_cap)
 
void il_connection_init_rx_config (struct il_priv *il)
 
void il_set_rate (struct il_priv *il)
 
int il_set_decrypted_flag (struct il_priv *il, struct ieee80211_hdr *hdr, u32 decrypt_res, struct ieee80211_rx_status *stats)
 
void il_irq_handle_error (struct il_priv *il)
 
int il_mac_add_interface (struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
void il_mac_remove_interface (struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
int il_mac_change_interface (struct ieee80211_hw *hw, struct ieee80211_vif *vif, enum nl80211_iftype newtype, bool newp2p)
 
int il_alloc_txq_mem (struct il_priv *il)
 
void il_free_txq_mem (struct il_priv *il)
 
void il_hdl_pm_sleep (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_hdl_pm_debug_stats (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_hdl_error (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_hdl_csa (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_cmd_queue_unmap (struct il_priv *il)
 
void il_cmd_queue_free (struct il_priv *il)
 
int il_rx_queue_alloc (struct il_priv *il)
 
void il_rx_queue_update_write_ptr (struct il_priv *il, struct il_rx_queue *q)
 
int il_rx_queue_space (const struct il_rx_queue *q)
 
void il_tx_cmd_complete (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_hdl_spectrum_measurement (struct il_priv *il, struct il_rx_buf *rxb)
 
void il_recover_from_stats (struct il_priv *il, struct il_rx_pkt *pkt)
 
void il_chswitch_done (struct il_priv *il, bool is_success)
 
void il_txq_update_write_ptr (struct il_priv *il, struct il_tx_queue *txq)
 
int il_tx_queue_init (struct il_priv *il, u32 txq_id)
 
void il_tx_queue_reset (struct il_priv *il, u32 txq_id)
 
void il_tx_queue_unmap (struct il_priv *il, int txq_id)
 
void il_tx_queue_free (struct il_priv *il, int txq_id)
 
void il_setup_watchdog (struct il_priv *il)
 
int il_set_tx_power (struct il_priv *il, s8 tx_power, bool force)
 
u8 il_get_lowest_plcp (struct il_priv *il)
 
void il_init_scan_params (struct il_priv *il)
 
int il_scan_cancel (struct il_priv *il)
 
int il_scan_cancel_timeout (struct il_priv *il, unsigned long ms)
 
void il_force_scan_end (struct il_priv *il)
 
int il_mac_hw_scan (struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct cfg80211_scan_request *req)
 
void il_internal_short_hw_scan (struct il_priv *il)
 
int il_force_reset (struct il_priv *il, bool external)
 
u16 il_fill_probe_req (struct il_priv *il, struct ieee80211_mgmt *frame, const u8 *ta, const u8 *ie, int ie_len, int left)
 
void il_setup_rx_scan_handlers (struct il_priv *il)
 
u16 il_get_active_dwell_time (struct il_priv *il, enum ieee80211_band band, u8 n_probes)
 
u16 il_get_passive_dwell_time (struct il_priv *il, enum ieee80211_band band, struct ieee80211_vif *vif)
 
void il_setup_scan_deferred_work (struct il_priv *il)
 
void il_cancel_scan_deferred_work (struct il_priv *il)
 
const charil_get_cmd_string (u8 cmd)
 
int __must_check il_send_cmd_sync (struct il_priv *il, struct il_host_cmd *cmd)
 
int il_send_cmd (struct il_priv *il, struct il_host_cmd *cmd)
 
int __must_check il_send_cmd_pdu (struct il_priv *il, u8 id, u16 len, const void *data)
 
int il_send_cmd_pdu_async (struct il_priv *il, u8 id, u16 len, const void *data, void(*callback)(struct il_priv *il, struct il_device_cmd *cmd, struct il_rx_pkt *pkt))
 
int il_enqueue_hcmd (struct il_priv *il, struct il_host_cmd *cmd)
 
void il_bg_watchdog (unsigned long data)
 
u32 il_usecs_to_beacons (struct il_priv *il, u32 usec, u32 beacon_interval)
 
__le32 il_add_beacon_time (struct il_priv *il, u32 base, u32 addon, u32 beacon_interval)
 
void il4965_dump_nic_error_log (struct il_priv *il)
 
void il_clear_isr_stats (struct il_priv *il)
 
int il_init_geos (struct il_priv *il)
 
void il_free_geos (struct il_priv *il)
 
void il_send_bt_config (struct il_priv *il)
 
int il_send_stats_request (struct il_priv *il, u8 flags, bool clear)
 
void il_apm_stop (struct il_priv *il)
 
void _il_apm_stop (struct il_priv *il)
 
int il_apm_init (struct il_priv *il)
 
int il_send_rxon_timing (struct il_priv *il)
 
int il_mac_config (struct ieee80211_hw *hw, u32 changed)
 
void il_mac_reset_tsf (struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
void il_mac_bss_info_changed (struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, u32 changes)
 
void il_tx_cmd_protection (struct il_priv *il, struct ieee80211_tx_info *info, __le16 fc, __le32 *tx_flags)
 
irqreturn_t il_isr (int irq, void *data)
 
void il_set_bit (struct il_priv *p, u32 r, u32 m)
 
void il_clear_bit (struct il_priv *p, u32 r, u32 m)
 
bool _il_grab_nic_access (struct il_priv *il)
 
int _il_poll_bit (struct il_priv *il, u32 addr, u32 bits, u32 mask, int timeout)
 
int il_poll_bit (struct il_priv *il, u32 addr, u32 mask, int timeout)
 
u32 il_rd_prph (struct il_priv *il, u32 reg)
 
void il_wr_prph (struct il_priv *il, u32 addr, u32 val)
 
u32 il_read_targ_mem (struct il_priv *il, u32 addr)
 
void il_write_targ_mem (struct il_priv *il, u32 addr, u32 val)
 
void il_restore_stations (struct il_priv *il)
 
void il_clear_ucode_stations (struct il_priv *il)
 
void il_dealloc_bcast_stations (struct il_priv *il)
 
int il_get_free_ucode_key_idx (struct il_priv *il)
 
int il_send_add_sta (struct il_priv *il, struct il_addsta_cmd *sta, u8 flags)
 
int il_add_station_common (struct il_priv *il, const u8 *addr, bool is_ap, struct ieee80211_sta *sta, u8 *sta_id_r)
 
int il_remove_station (struct il_priv *il, const u8 sta_id, const u8 *addr)
 
int il_mac_sta_remove (struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_sta *sta)
 
u8 il_prep_station (struct il_priv *il, const u8 *addr, bool is_ap, struct ieee80211_sta *sta)
 
int il_send_lq_cmd (struct il_priv *il, struct il_link_quality_cmd *lq, u8 flags, bool init)
 
void il3945_rate_scale_init (struct ieee80211_hw *hw, s32 sta_id)
 
void il4965_rs_rate_init (struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
 
void il3945_rs_rate_init (struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
 
int il4965_rate_control_register (void)
 
int il3945_rate_control_register (void)
 
void il4965_rate_control_unregister (void)
 
void il3945_rate_control_unregister (void)
 
int il_power_update_mode (struct il_priv *il, bool force)
 
void il_power_initialize (struct il_priv *il)
 

Variables

struct il_eeprom_channel __packed
 
const u8 il_eeprom_band_1 [14]
 
const u8 il_bcast_addr [ETH_ALEN]
 
struct il_rate_info il_rates [RATE_COUNT]
 
u32 il_debug_level
 

Macro Definition Documentation

#define ALL_BAND_FILTER   0xFF00

Definition at line 939 of file common.h.

#define ANT_A   BIT(0)

Definition at line 2699 of file common.h.

#define ANT_AB   (ANT_A | ANT_B)

Definition at line 2701 of file common.h.

#define ANT_ABC   (ANT_AB | ANT_C)

Definition at line 2705 of file common.h.

#define ANT_AC   (ANT_A | ANT_C)

Definition at line 2703 of file common.h.

#define ANT_B   BIT(1)

Definition at line 2700 of file common.h.

#define ANT_BC   (ANT_B | ANT_C)

Definition at line 2704 of file common.h.

#define ANT_C   BIT(2)

Definition at line 2702 of file common.h.

#define ANT_NONE   0x0

Definition at line 2698 of file common.h.

#define AUTO_CORR_CCK_MIN_VAL_DEF   (125)

Definition at line 933 of file common.h.

#define AUTO_CORR_MAX_TH_CCK   160

Definition at line 926 of file common.h.

#define AUTO_CORR_STEP_CCK   3

Definition at line 925 of file common.h.

#define AUTO_CORR_STEP_OFDM   1

Definition at line 923 of file common.h.

#define CELSIUS_TO_KELVIN (   x)    ((x)+273)

Definition at line 801 of file common.h.

#define CFG_HT_MPDU_DENSITY_16USEC   (0x7)

Definition at line 701 of file common.h.

#define CFG_HT_MPDU_DENSITY_2USEC   (0x4)

Definition at line 698 of file common.h.

#define CFG_HT_MPDU_DENSITY_4USEC   (0x5)

Definition at line 699 of file common.h.

#define CFG_HT_MPDU_DENSITY_8USEC   (0x6)

Definition at line 700 of file common.h.

#define CFG_HT_MPDU_DENSITY_DEF   CFG_HT_MPDU_DENSITY_4USEC

Definition at line 702 of file common.h.

#define CFG_HT_MPDU_DENSITY_MAX   CFG_HT_MPDU_DENSITY_16USEC

Definition at line 703 of file common.h.

#define CFG_HT_MPDU_DENSITY_MIN   (0x1)

Definition at line 704 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_16K   (0x1)

Definition at line 684 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_32K   (0x2)

Definition at line 685 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_64K   (0x3)

Definition at line 686 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_8K   (0x0)

Definition at line 683 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_DEF   CFG_HT_RX_AMPDU_FACTOR_64K

Definition at line 687 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_MAX   CFG_HT_RX_AMPDU_FACTOR_64K

Definition at line 688 of file common.h.

#define CFG_HT_RX_AMPDU_FACTOR_MIN   CFG_HT_RX_AMPDU_FACTOR_8K

Definition at line 689 of file common.h.

#define CHAIN_A   0

Definition at line 935 of file common.h.

#define CHAIN_B   1

Definition at line 936 of file common.h.

#define CHAIN_C   2

Definition at line 937 of file common.h.

#define CHAIN_NOISE_DELTA_GAIN_INIT_VAL   4

Definition at line 938 of file common.h.

#define CHAIN_NOISE_MAX_DELTA_GAIN_CODE   3

Definition at line 916 of file common.h.

#define CT_KILL_THRESHOLD_LEGACY   110 /* in Celsius */

Definition at line 63 of file common.h.

#define D_11H (   f,
  a... 
)    IL_DBG(IL_DL_11H, f, ## a)

Definition at line 3047 of file common.h.

#define D_AP (   f,
  a... 
)    IL_DBG(IL_DL_AP, f, ## a)

Definition at line 3036 of file common.h.

#define D_ASSOC (   f,
  a... 
)    IL_DBG(IL_DL_ASSOC, f, ## a)

Definition at line 3040 of file common.h.

#define D_CALIB (   f,
  a... 
)    IL_DBG(IL_DL_CALIB, f, ## a)

Definition at line 3032 of file common.h.

#define D_DROP (   f,
  a... 
)    IL_DBG(IL_DL_DROP, f, ## a)

Definition at line 3035 of file common.h.

#define D_EEPROM (   f,
  a... 
)    IL_DBG(IL_DL_EEPROM, f, ## a)

Definition at line 3031 of file common.h.

#define D_FW (   f,
  a... 
)    IL_DBG(IL_DL_FW, f, ## a)

Definition at line 3033 of file common.h.

#define D_HC (   f,
  a... 
)    IL_DBG(IL_DL_HCMD, f, ## a)

Definition at line 3029 of file common.h.

#define D_HC_DUMP (   f,
  a... 
)    IL_DBG(IL_DL_HCMD_DUMP, f, ## a)

Definition at line 3030 of file common.h.

#define D_HT (   f,
  a... 
)    IL_DBG(IL_DL_HT, f, ## a)

Definition at line 3041 of file common.h.

#define D_INFO (   f,
  a... 
)    IL_DBG(IL_DL_INFO, f, ## a)

Definition at line 3019 of file common.h.

#define D_ISR (   f,
  a... 
)    IL_DBG(IL_DL_ISR, f, ## a)

Definition at line 3026 of file common.h.

#define D_LED (   f,
  a... 
)    IL_DBG(IL_DL_LED, f, ## a)

Definition at line 3027 of file common.h.

#define D_MAC80211 (   f,
  a... 
)    IL_DBG(IL_DL_MAC80211, f, ## a)

Definition at line 3020 of file common.h.

#define D_MACDUMP (   f,
  a... 
)    IL_DBG(IL_DL_MACDUMP, f, ## a)

Definition at line 3021 of file common.h.

#define D_NOTIF (   f,
  a... 
)    IL_DBG(IL_DL_NOTIF, f, ## a)

Definition at line 3039 of file common.h.

#define D_POWER (   f,
  a... 
)    IL_DBG(IL_DL_POWER, f, ## a)

Definition at line 3046 of file common.h.

#define D_QOS (   f,
  a... 
)    IL_DBG(IL_DL_QOS, f, ## a)

Definition at line 3044 of file common.h.

#define D_RADIO (   f,
  a... 
)    IL_DBG(IL_DL_RADIO, f, ## a)

Definition at line 3045 of file common.h.

#define D_RATE (   f,
  a... 
)    IL_DBG(IL_DL_RATE, f, ## a)

Definition at line 3038 of file common.h.

#define D_RF_KILL (   f,
  a... 
)    IL_DBG(IL_DL_RF_KILL, f, ## a)

Definition at line 3034 of file common.h.

#define D_RX (   f,
  a... 
)    IL_DBG(IL_DL_RX, f, ## a)

Definition at line 3024 of file common.h.

#define D_SCAN (   f,
  a... 
)    IL_DBG(IL_DL_SCAN, f, ## a)

Definition at line 3023 of file common.h.

#define D_STATS (   f,
  a... 
)    IL_DBG(IL_DL_STATS, f, ## a)

Definition at line 3042 of file common.h.

#define D_TEMP (   f,
  a... 
)    IL_DBG(IL_DL_TEMP, f, ## a)

Definition at line 3022 of file common.h.

#define D_TX (   f,
  a... 
)    IL_DBG(IL_DL_TX, f, ## a)

Definition at line 3025 of file common.h.

#define D_TX_REPLY (   f,
  a... 
)    IL_DBG(IL_DL_TX_REPLY, f, ## a)

Definition at line 3043 of file common.h.

#define D_TXPOWER (   f,
  a... 
)    IL_DBG(IL_DL_TXPOWER, f, ## a)

Definition at line 3037 of file common.h.

#define D_WEP (   f,
  a... 
)    IL_DBG(IL_DL_WEP, f, ## a)

Definition at line 3028 of file common.h.

#define DEF_CMD_PAYLOAD_SIZE   320

Definition at line 558 of file common.h.

#define DEFAULT_BEACON_INTERVAL   100U

Definition at line 91 of file common.h.

#define DEFAULT_LONG_RETRY_LIMIT   4U

Definition at line 93 of file common.h.

#define DEFAULT_RTS_THRESHOLD   2347U

Definition at line 86 of file common.h.

#define DEFAULT_SHORT_RETRY_LIMIT   7U

Definition at line 92 of file common.h.

#define DRV_AUTHOR   "<[email protected]>"

Definition at line 1513 of file common.h.

#define DRV_COPYRIGHT   "Copyright(c) 2003-2011 Intel Corporation"

Definition at line 1512 of file common.h.

#define EEPROM_3945_EEPROM_VERSION   (0x2f)

Definition at line 231 of file common.h.

#define EEPROM_3945_RF_CFG_TYPE_MAX   0x0

Definition at line 355 of file common.h.

#define EEPROM_4965_BOARD_PBA   (2*0x56+1) /* 9 bytes */

Definition at line 250 of file common.h.

#define EEPROM_4965_BOARD_REVISION   (2*0x4F) /* 2 bytes */

Definition at line 249 of file common.h.

#define EEPROM_4965_CALIB_TXPOWER_OFFSET   (2*0xE8) /* 48 bytes */

Definition at line 248 of file common.h.

#define EEPROM_4965_CALIB_VERSION_OFFSET   (2*0xB6) /* 2 bytes */

Definition at line 247 of file common.h.

#define EEPROM_4965_EEPROM_VERSION   (0x2f)

Definition at line 246 of file common.h.

#define EEPROM_4965_REGULATORY_BAND_24_HT40_CHANNELS   (2*0xA0) /* 14 bytes */

Definition at line 418 of file common.h.

#define EEPROM_4965_REGULATORY_BAND_52_HT40_CHANNELS   (2*0xA8) /* 22 bytes */

Definition at line 424 of file common.h.

#define EEPROM_4965_RF_CFG_TYPE_MAX   0x1

Definition at line 356 of file common.h.

#define EEPROM_4965_TX_POWER_VERSION   (5)

Definition at line 245 of file common.h.

#define EEPROM_BOARD_PBA_NUMBER   (2*0x3B+1) /* 9 bytes */

Definition at line 339 of file common.h.

#define EEPROM_BOARD_REVISION   (2*0x35) /* 2 bytes */

Definition at line 338 of file common.h.

#define EEPROM_DEVICE_ID   (2*0x08) /* 2 bytes */

Definition at line 336 of file common.h.

#define EEPROM_MAC_ADDRESS   (2*0x15) /* 6 bytes */

Definition at line 337 of file common.h.

#define EEPROM_NUM_MAC_ADDRESS   (2*0x4C) /* 2 bytes */

Definition at line 345 of file common.h.

#define EEPROM_OEM_MODE   (2*0x46) /* 2 bytes */

Definition at line 342 of file common.h.

#define EEPROM_RADIO_CONFIG   (2*0x48) /* 2 bytes */

Definition at line 344 of file common.h.

#define EEPROM_REGULATORY_BAND_1   (2*0x62) /* 2 bytes */

Definition at line 371 of file common.h.

#define EEPROM_REGULATORY_BAND_1_CHANNELS   (2*0x63) /* 28 bytes */

Definition at line 372 of file common.h.

#define EEPROM_REGULATORY_BAND_2   (2*0x71) /* 2 bytes */

Definition at line 379 of file common.h.

#define EEPROM_REGULATORY_BAND_2_CHANNELS   (2*0x72) /* 26 bytes */

Definition at line 380 of file common.h.

#define EEPROM_REGULATORY_BAND_3   (2*0x7F) /* 2 bytes */

Definition at line 386 of file common.h.

#define EEPROM_REGULATORY_BAND_3_CHANNELS   (2*0x80) /* 24 bytes */

Definition at line 387 of file common.h.

#define EEPROM_REGULATORY_BAND_4   (2*0x8C) /* 2 bytes */

Definition at line 393 of file common.h.

#define EEPROM_REGULATORY_BAND_4_CHANNELS   (2*0x8D) /* 22 bytes */

Definition at line 394 of file common.h.

#define EEPROM_REGULATORY_BAND_5   (2*0x98) /* 2 bytes */

Definition at line 400 of file common.h.

#define EEPROM_REGULATORY_BAND_5_CHANNELS   (2*0x99) /* 12 bytes */

Definition at line 401 of file common.h.

#define EEPROM_REGULATORY_BAND_NO_HT40   (0)

Definition at line 426 of file common.h.

#define EEPROM_REGULATORY_SKU_ID   (2*0x60) /* 4 bytes */

Definition at line 370 of file common.h.

#define EEPROM_RF_CFG_DASH_MSK (   x)    ((x >> 4) & 0x3) /* bits 4-5 */

Definition at line 350 of file common.h.

#define EEPROM_RF_CFG_PNUM_MSK (   x)    ((x >> 6) & 0x3) /* bits 6-7 */

Definition at line 351 of file common.h.

#define EEPROM_RF_CFG_RX_ANT_MSK (   x)    ((x >> 12) & 0xF) /* bits 12-15 */

Definition at line 353 of file common.h.

#define EEPROM_RF_CFG_STEP_MSK (   x)    ((x >> 2) & 0x3) /* bits 2-3 */

Definition at line 349 of file common.h.

#define EEPROM_RF_CFG_TX_ANT_MSK (   x)    ((x >> 8) & 0xF) /* bits 8-11 */

Definition at line 352 of file common.h.

#define EEPROM_RF_CFG_TYPE_MSK (   x)    (x & 0x3) /* bits 0-1 */

Definition at line 348 of file common.h.

#define EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */

Definition at line 1013 of file common.h.

#define EEPROM_SEM_TIMEOUT   10 /* milliseconds */

Definition at line 1012 of file common.h.

#define EEPROM_SKU_CAP   (2*0x45) /* 2 bytes */

Definition at line 341 of file common.h.

#define EEPROM_SKU_CAP_HW_RF_KILL_ENABLE   (1 << 1)

Definition at line 221 of file common.h.

#define EEPROM_SKU_CAP_SW_RF_KILL_ENABLE   (1 << 0)

Definition at line 220 of file common.h.

#define EEPROM_TX_POWER_BANDS   (8)

Definition at line 237 of file common.h.

#define EEPROM_TX_POWER_MEASUREMENTS   (3)

Definition at line 241 of file common.h.

#define EEPROM_TX_POWER_TX_CHAINS   (2)

Definition at line 234 of file common.h.

#define EEPROM_VERSION   (2*0x44) /* 2 bytes */

Definition at line 340 of file common.h.

#define EEPROM_WOWLAN_MODE   (2*0x47) /* 2 bytes */

Definition at line 343 of file common.h.

#define HW_KEY_DEFAULT   1

Definition at line 2116 of file common.h.

#define HW_KEY_DYNAMIC   0

Definition at line 2115 of file common.h.

#define IEEE80211_4ADDR_LEN   30

Definition at line 530 of file common.h.

#define IEEE80211_DATA_LEN   2304

Definition at line 529 of file common.h.

#define IEEE80211_FRAME_LEN   (IEEE80211_DATA_LEN + IEEE80211_HLEN)

Definition at line 532 of file common.h.

#define IEEE80211_HLEN   (IEEE80211_4ADDR_LEN)

Definition at line 531 of file common.h.

#define ieee80211_stop_queue   DO_NOT_USE_ieee80211_stop_queue

Definition at line 2296 of file common.h.

#define ieee80211_wake_queue   DO_NOT_USE_ieee80211_wake_queue

Definition at line 2302 of file common.h.

#define IL3945_EXT_BEACON_TIME_POS   24

Definition at line 1113 of file common.h.

#define IL4965_CAL_NUM_BEACONS   20

Definition at line 912 of file common.h.

#define IL4965_EXT_BEACON_TIME_POS   22

Definition at line 1119 of file common.h.

#define IL4965_MAX_RATE   (33)

Definition at line 449 of file common.h.

#define IL_ACTION_LIMIT   3 /* # possible actions */

Definition at line 2663 of file common.h.

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

Definition at line 1807 of file common.h.

#define IL_AGG_ALL_TID   0xff

Definition at line 2670 of file common.h.

#define IL_AGG_LOAD_THRESHOLD   10

Definition at line 2669 of file common.h.

#define IL_AGG_OFF   0

Definition at line 655 of file common.h.

#define IL_AGG_ON   1

Definition at line 656 of file common.h.

#define IL_AGG_TPT_THREHOLD   0

Definition at line 2668 of file common.h.

#define IL_BASIC_RATES_MASK
Value:
IL_CCK_BASIC_RATES_MASK)

Definition at line 2608 of file common.h.

#define IL_CAL_NUM_BEACONS   16

Definition at line 913 of file common.h.

#define IL_CCK_BASIC_RATES_MASK
Value:
RATE_2M_MASK)

Definition at line 2586 of file common.h.

#define IL_CCK_RATES_MASK
Value:
RATE_5M_MASK | \
RATE_11M_MASK)

Definition at line 2590 of file common.h.

#define IL_CMD (   x)    case x: return #x

Definition at line 1526 of file common.h.

#define IL_DBG (   level,
  fmt,
  args... 
)

Definition at line 2933 of file common.h.

#define IL_DEF_LED_INTRVL   cpu_to_le32(1000)

Definition at line 1607 of file common.h.

#define IL_DEF_WD_TIMEOUT   (2000)

Definition at line 1095 of file common.h.

#define IL_DEFAULT_CMD_QUEUE_NUM   4

Definition at line 527 of file common.h.

#define IL_DELAY_NEXT_FORCE_FW_RELOAD   (HZ*5)

Definition at line 1092 of file common.h.

#define IL_DL_11H   (1 << 28)

Definition at line 3014 of file common.h.

#define IL_DL_AP   (1 << 15)

Definition at line 2998 of file common.h.

#define IL_DL_ASSOC   (1 << 12)

Definition at line 2995 of file common.h.

#define IL_DL_CALIB   (1 << 21)

Definition at line 3006 of file common.h.

#define IL_DL_DROP   (1 << 13)

Definition at line 2996 of file common.h.

#define IL_DL_EEPROM   (1 << 6)

Definition at line 2987 of file common.h.

#define IL_DL_FW   (1 << 16)

Definition at line 3000 of file common.h.

#define IL_DL_FW_ERRORS   (1 << 18)

Definition at line 3002 of file common.h.

#define IL_DL_HCMD   (1 << 2)

Definition at line 2982 of file common.h.

#define IL_DL_HCMD_DUMP   (1 << 5)

Definition at line 2986 of file common.h.

#define IL_DL_HT   (1 << 26)

Definition at line 3012 of file common.h.

#define IL_DL_INFO   (1 << 0)

Definition at line 2980 of file common.h.

#define IL_DL_ISR   (1 << 25)

Definition at line 3011 of file common.h.

#define IL_DL_LED   (1 << 19)

Definition at line 3003 of file common.h.

#define IL_DL_MAC80211   (1 << 1)

Definition at line 2981 of file common.h.

#define IL_DL_MACDUMP   (1 << 4)

Definition at line 2985 of file common.h.

#define IL_DL_NOTIF   (1 << 10)

Definition at line 2992 of file common.h.

#define IL_DL_POWER   (1 << 8)

Definition at line 2990 of file common.h.

#define IL_DL_QOS   (1 << 31)

Definition at line 3017 of file common.h.

#define IL_DL_RADIO   (1 << 7)

Definition at line 2988 of file common.h.

#define IL_DL_RATE   (1 << 20)

Definition at line 3005 of file common.h.

#define IL_DL_RF_KILL   (1 << 17)

Definition at line 3001 of file common.h.

#define IL_DL_RX   (1 << 24)

Definition at line 3010 of file common.h.

#define IL_DL_SCAN   (1 << 11)

Definition at line 2993 of file common.h.

#define IL_DL_STATE   (1 << 3)

Definition at line 2983 of file common.h.

#define IL_DL_STATS   (1 << 29)

Definition at line 3015 of file common.h.

#define IL_DL_TEMP   (1 << 9)

Definition at line 2991 of file common.h.

#define IL_DL_TX   (1 << 23)

Definition at line 3008 of file common.h.

#define IL_DL_TX_REPLY   (1 << 30)

Definition at line 3016 of file common.h.

#define IL_DL_TXPOWER   (1 << 14)

Definition at line 2997 of file common.h.

#define IL_DL_WEP   (1 << 22)

Definition at line 3007 of file common.h.

#define IL_EEPROM_ACCESS_TIMEOUT   5000 /* uSec */

Definition at line 185 of file common.h.

#define IL_EEPROM_SEM_RETRY_LIMIT   1000 /* number of attempts (not time) */

Definition at line 188 of file common.h.

#define IL_EEPROM_SEM_TIMEOUT   10 /* microseconds */

Definition at line 187 of file common.h.

#define IL_EMPTYING_HW_QUEUE_ADDBA   2

Definition at line 657 of file common.h.

#define IL_EMPTYING_HW_QUEUE_DELBA   3

Definition at line 658 of file common.h.

#define IL_ERR (   f,
  a... 
)    dev_err(&il->pci_dev->dev, f, ## a)

Definition at line 46 of file common.h.

#define IL_HOST_INT_CALIB_TIMEOUT_DEF   (0x10)

Definition at line 1089 of file common.h.

#define IL_HOST_INT_CALIB_TIMEOUT_MAX   (0xFF)

Definition at line 1088 of file common.h.

#define IL_HOST_INT_CALIB_TIMEOUT_MIN   (0x0)

Definition at line 1090 of file common.h.

#define IL_HOST_INT_TIMEOUT_DEF   (0x40)

Definition at line 1086 of file common.h.

#define IL_HOST_INT_TIMEOUT_MAX   (0xFF)

Definition at line 1085 of file common.h.

#define IL_HOST_INT_TIMEOUT_MIN   (0x0)

Definition at line 1087 of file common.h.

#define IL_INFO (   f,
  a... 
)    dev_info(&il->pci_dev->dev, f, ## a)

Definition at line 48 of file common.h.

#define IL_INVALID_RATE   0xFF

Definition at line 631 of file common.h.

#define IL_INVALID_VALUE   -1

Definition at line 2615 of file common.h.

#define IL_INVALID_VALUE   -1

Definition at line 2615 of file common.h.

#define IL_LED_ACTIVITY   (0<<1)

Definition at line 1609 of file common.h.

#define IL_LED_LINK   (1<<1)

Definition at line 1610 of file common.h.

#define IL_LED_SOLID   11

Definition at line 1606 of file common.h.

#define IL_LEGACY_FAILURE_LIMIT   160

Definition at line 2622 of file common.h.

#define IL_LEGACY_PM_OPS   NULL

Definition at line 1852 of file common.h.

#define IL_LEGACY_SUCCESS_LIMIT   480

Definition at line 2623 of file common.h.

#define IL_LEGACY_SWITCH_ANTENNA1   0

Definition at line 2638 of file common.h.

#define IL_LEGACY_SWITCH_ANTENNA2   1

Definition at line 2639 of file common.h.

#define IL_LEGACY_SWITCH_MIMO2_AB   3

Definition at line 2641 of file common.h.

#define IL_LEGACY_SWITCH_MIMO2_AC   4

Definition at line 2642 of file common.h.

#define IL_LEGACY_SWITCH_MIMO2_BC   5

Definition at line 2643 of file common.h.

#define IL_LEGACY_SWITCH_SISO   2

Definition at line 2640 of file common.h.

#define IL_LEGACY_TBL_COUNT   160

Definition at line 2624 of file common.h.

#define IL_LONG_WD_TIMEOUT   (10000)

Definition at line 1096 of file common.h.

#define IL_MAX_HW_QUEUES   32

Definition at line 1304 of file common.h.

#define IL_MAX_MCS_DISPLAY_SIZE   12

Definition at line 2707 of file common.h.

#define IL_MAX_RSSI_VAL   0

Definition at line 2618 of file common.h.

#define IL_MAX_SEARCH   IL_MIMO2_SWITCH_GI

Definition at line 2661 of file common.h.

#define IL_MAX_WD_TIMEOUT   (120000)

Definition at line 1097 of file common.h.

#define IL_MIMO2_SWITCH_ANTENNA1   0

Definition at line 2654 of file common.h.

#define IL_MIMO2_SWITCH_ANTENNA2   1

Definition at line 2655 of file common.h.

#define IL_MIMO2_SWITCH_GI   5

Definition at line 2659 of file common.h.

#define IL_MIMO2_SWITCH_SISO_A   2

Definition at line 2656 of file common.h.

#define IL_MIMO2_SWITCH_SISO_B   3

Definition at line 2657 of file common.h.

#define IL_MIMO2_SWITCH_SISO_C   4

Definition at line 2658 of file common.h.

#define IL_MIN_NUM_QUEUES   10

Definition at line 525 of file common.h.

#define IL_MIN_RSSI_VAL   -100

Definition at line 2617 of file common.h.

#define IL_NOISE_MEAS_NOT_AVAILABLE   (-127)

Definition at line 76 of file common.h.

#define IL_NONE_LEGACY_FAILURE_LIMIT   400

Definition at line 2626 of file common.h.

#define IL_NONE_LEGACY_SUCCESS_LIMIT   4500

Definition at line 2627 of file common.h.

#define IL_NONE_LEGACY_TBL_COUNT   1500

Definition at line 2628 of file common.h.

#define IL_NUM_OF_TBS   20

Definition at line 2375 of file common.h.

#define IL_NUM_SCAN_RATES   (2)

Definition at line 438 of file common.h.

#define IL_NUM_TX_CALIB_GROUPS   5

Definition at line 206 of file common.h.

#define IL_OFDM_BASIC_RATES_MASK
Value:
RATE_12M_MASK | \
RATE_24M_MASK)

Definition at line 2595 of file common.h.

#define IL_OFDM_RATES_MASK
Value:
RATE_9M_MASK | \
RATE_18M_MASK | \
RATE_36M_MASK | \
RATE_48M_MASK | \
RATE_54M_MASK)

Definition at line 2600 of file common.h.

#define IL_OPERATION_MODE_20MHZ   3

Definition at line 903 of file common.h.

#define IL_OPERATION_MODE_AUTO   0

Definition at line 900 of file common.h.

#define IL_OPERATION_MODE_HT_ONLY   1

Definition at line 901 of file common.h.

#define IL_OPERATION_MODE_MIXED   2

Definition at line 902 of file common.h.

#define IL_PCI_DEVICE (   dev,
  subdev,
  cfg 
)
Value:
.vendor = PCI_VENDOR_ID_INTEL, .device = (dev), \
.driver_data = (kernel_ulong_t)&(cfg)

Definition at line 1515 of file common.h.

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

Definition at line 1808 of file common.h.

#define il_print_hex_error (   il,
  p,
  len 
)
Value:
do { \
print_hex_dump(KERN_ERR, "iwl data: ", \
DUMP_PREFIX_OFFSET, 16, 1, p, len, 1); \
} while (0)

Definition at line 2910 of file common.h.

#define IL_RS_GOOD_RATIO   12800 /* 100% */

Definition at line 2631 of file common.h.

#define IL_RX_BUF_SIZE_3K   (3 * 1000) /* 3945 only */

Definition at line 1529 of file common.h.

#define IL_RX_BUF_SIZE_4K   (4 * 1024)

Definition at line 1530 of file common.h.

#define IL_RX_BUF_SIZE_8K   (8 * 1024)

Definition at line 1531 of file common.h.

#define IL_SCAN_CHECK_WATCHDOG   (HZ * 7)

Definition at line 1810 of file common.h.

#define IL_SISO_SWITCH_ANTENNA1   0

Definition at line 2646 of file common.h.

#define IL_SISO_SWITCH_ANTENNA2   1

Definition at line 2647 of file common.h.

#define IL_SISO_SWITCH_GI   5

Definition at line 2651 of file common.h.

#define IL_SISO_SWITCH_MIMO2_AB   2

Definition at line 2648 of file common.h.

#define IL_SISO_SWITCH_MIMO2_AC   3

Definition at line 2649 of file common.h.

#define IL_SISO_SWITCH_MIMO2_BC   4

Definition at line 2650 of file common.h.

#define IL_SKU_A   0x2

Definition at line 1523 of file common.h.

#define IL_SKU_G   0x1

Definition at line 1522 of file common.h.

#define IL_SKU_N   0x8

Definition at line 1524 of file common.h.

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

Definition at line 2122 of file common.h.

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

Definition at line 2118 of file common.h.

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

Definition at line 2121 of file common.h.

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

Definition at line 2119 of file common.h.

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

Definition at line 2120 of file common.h.

#define IL_SUPPORTED_RATES_IE_LEN   8

Definition at line 627 of file common.h.

#define IL_TRAFFIC_ENTRIES   (256)

Definition at line 1015 of file common.h.

#define IL_TRAFFIC_ENTRY_SIZE   (64)

Definition at line 1016 of file common.h.

#define IL_TX_CRC_SIZE   4

Definition at line 905 of file common.h.

#define IL_TX_DELIMITER_SIZE   4

Definition at line 906 of file common.h.

#define IL_TX_DMA_MASK   DMA_BIT_MASK(36)

Definition at line 2374 of file common.h.

#define IL_TX_FIFO_BE   1

Definition at line 517 of file common.h.

#define IL_TX_FIFO_BK   0 /* shared */

Definition at line 516 of file common.h.

#define IL_TX_FIFO_UNUSED   -1

Definition at line 520 of file common.h.

#define IL_TX_FIFO_VI   2 /* shared */

Definition at line 518 of file common.h.

#define IL_TX_FIFO_VO   3

Definition at line 519 of file common.h.

#define IL_WARN (   f,
  a... 
)    dev_warn(&il->pci_dev->dev, f, ## a)

Definition at line 47 of file common.h.

#define il_write8 (   il,
  ofs,
  val 
)    _il_write8(il, ofs, val)

Definition at line 1994 of file common.h.

#define IN_BAND_FILTER   0xFF

Definition at line 940 of file common.h.

#define INITIALIZATION_VALUE   0xFFFF

Definition at line 911 of file common.h.

#define is_a_band (   tbl)    ((tbl) == LQ_A)

Definition at line 2695 of file common.h.

#define is_g_and (   tbl)    ((tbl) == LQ_G)

Definition at line 2696 of file common.h.

#define is_Ht (   tbl)    (is_siso(tbl) || is_mimo(tbl))

Definition at line 2694 of file common.h.

#define is_legacy (   tbl)    ((tbl) == LQ_G || (tbl) == LQ_A)

Definition at line 2690 of file common.h.

#define is_mimo (   tbl)    (is_mimo2(tbl))

Definition at line 2693 of file common.h.

#define is_mimo2 (   tbl)    ((tbl) == LQ_MIMO2)

Definition at line 2692 of file common.h.

#define is_siso (   tbl)    ((tbl) == LQ_SISO)

Definition at line 2691 of file common.h.

#define IWLWIFI_VERSION   "in-tree:"

Definition at line 1511 of file common.h.

#define KELVIN_TO_CELSIUS (   x)    ((x)-273)

Definition at line 800 of file common.h.

#define LQ_SIZE   2 /* 2 mode tables: "Active" and "Search" */

Definition at line 2665 of file common.h.

#define MAX_FA_CCK   50

Definition at line 920 of file common.h.

#define MAX_FA_OFDM   50

Definition at line 918 of file common.h.

#define MAX_MPDU_SIZE   2346U

Definition at line 90 of file common.h.

#define MAX_MSDU_SIZE   2304U

Definition at line 89 of file common.h.

#define MAX_NUMBER_CCK_NO_FA   100

Definition at line 931 of file common.h.

#define MAX_RTS_THRESHOLD   2347U

Definition at line 88 of file common.h.

#define MAX_SN   ((IEEE80211_SCTL_SEQ) >> 4)

Definition at line 546 of file common.h.

#define MAX_TID_COUNT   9

Definition at line 629 of file common.h.

#define MAXIMUM_ALLOWED_PATHLOSS   15

Definition at line 914 of file common.h.

#define MIN_AVERAGE_NOISE_MAX_VALUE   0xFFFFFFFF

Definition at line 941 of file common.h.

#define MIN_FA_CCK   5

Definition at line 921 of file common.h.

#define MIN_FA_OFDM   5

Definition at line 919 of file common.h.

#define MIN_RTS_THRESHOLD   0U

Definition at line 87 of file common.h.

#define NRG_DIFF   2

Definition at line 928 of file common.h.

#define NRG_MARGIN   8

Definition at line 930 of file common.h.

#define NRG_NUM_PREV_STAT_L   20

Definition at line 943 of file common.h.

#define NRG_STEP_CCK   2

Definition at line 929 of file common.h.

#define NUM_RX_CHAINS   3

Definition at line 944 of file common.h.

#define PCI_CFG_LINK_CTRL_VAL_L0S_EN   0x01

Definition at line 2436 of file common.h.

#define PCI_CFG_LINK_CTRL_VAL_L1_EN   0x02

Definition at line 2437 of file common.h.

#define PCI_CFG_RETRY_TIMEOUT   0x041

Definition at line 2433 of file common.h.

#define RATE_11M_MASK   (1 << RATE_11M_IDX)

Definition at line 2527 of file common.h.

#define RATE_12M_MASK   (1 << RATE_12M_IDX)

Definition at line 2517 of file common.h.

#define RATE_18M_MASK   (1 << RATE_18M_IDX)

Definition at line 2518 of file common.h.

#define RATE_1M_MASK   (1 << RATE_1M_IDX)

Definition at line 2524 of file common.h.

#define RATE_24M_MASK   (1 << RATE_24M_IDX)

Definition at line 2519 of file common.h.

#define RATE_2M_MASK   (1 << RATE_2M_IDX)

Definition at line 2525 of file common.h.

#define RATE_36M_MASK   (1 << RATE_36M_IDX)

Definition at line 2520 of file common.h.

#define RATE_48M_MASK   (1 << RATE_48M_IDX)

Definition at line 2521 of file common.h.

#define RATE_54M_MASK   (1 << RATE_54M_IDX)

Definition at line 2522 of file common.h.

#define RATE_5M_MASK   (1 << RATE_5M_IDX)

Definition at line 2526 of file common.h.

#define RATE_60M_MASK   (1 << RATE_60M_IDX)

Definition at line 2523 of file common.h.

#define RATE_6M_MASK   (1 << RATE_6M_IDX)

Definition at line 2515 of file common.h.

#define RATE_9M_MASK   (1 << RATE_9M_IDX)

Definition at line 2516 of file common.h.

#define RATE_DECREASE_TH   1920 /* 15% */

Definition at line 2635 of file common.h.

#define RATE_HIGH_TH   10880 /* 85% */

Definition at line 2633 of file common.h.

#define RATE_INCREASE_TH   6400 /* 50% */

Definition at line 2634 of file common.h.

#define RATE_SCALE_SWITCH   10880 /* 85% */

Definition at line 2632 of file common.h.

#define RATES_MASK   ((1 << RATE_COUNT) - 1)

Definition at line 2612 of file common.h.

#define RATES_MASK_3945   ((1 << RATE_COUNT_3945) - 1)

Definition at line 2613 of file common.h.

#define RX_FREE_BUFFERS   64

Definition at line 57 of file common.h.

#define RX_LOW_WATERMARK   8

Definition at line 58 of file common.h.

#define RX_QUEUE_MASK   255

Definition at line 51 of file common.h.

#define RX_QUEUE_SIZE   256

Definition at line 50 of file common.h.

#define RX_QUEUE_SIZE_LOG   8

Definition at line 52 of file common.h.

#define rxb_addr (   r)    page_address(r->page)

Definition at line 101 of file common.h.

#define S_ALIVE   6

Definition at line 1885 of file common.h.

#define S_CHANNEL_SWITCH_PENDING   18

Definition at line 1896 of file common.h.

#define S_CT_KILL   4

Definition at line 1883 of file common.h.

#define S_EXIT_PENDING   10

Definition at line 1889 of file common.h.

#define S_FW_ERROR   17

Definition at line 1895 of file common.h.

#define S_GEO_CONFIGURED   9

Definition at line 1888 of file common.h.

#define S_HCMD_ACTIVE   0 /* host command in progress */

Definition at line 1879 of file common.h.

#define S_INIT   5

Definition at line 1884 of file common.h.

#define S_INT_ENABLED   2

Definition at line 1881 of file common.h.

#define S_POWER_PMI   16

Definition at line 1894 of file common.h.

#define S_READY   7

Definition at line 1886 of file common.h.

#define S_RFKILL   3

Definition at line 1882 of file common.h.

#define S_SCAN_ABORTING   14

Definition at line 1892 of file common.h.

#define S_SCAN_HW   15

Definition at line 1893 of file common.h.

#define S_SCANNING   13

Definition at line 1891 of file common.h.

#define S_STATS   12

Definition at line 1890 of file common.h.

#define S_TEMPERATURE   8

Definition at line 1887 of file common.h.

#define SEQ_TO_SN (   seq)    (((seq) & IEEE80211_SCTL_SEQ) >> 4)

Definition at line 544 of file common.h.

#define SN_TO_SEQ (   ssn)    (((ssn) << 4) & IEEE80211_SCTL_SEQ)

Definition at line 545 of file common.h.

#define SUP_RATE_11A_MAX_NUM_CHANNELS   8

Definition at line 591 of file common.h.

#define SUP_RATE_11B_MAX_NUM_CHANNELS   4

Definition at line 592 of file common.h.

#define SUP_RATE_11G_MAX_NUM_CHANNELS   12

Definition at line 593 of file common.h.

#define TFD_CMD_SLOTS   32

Definition at line 162 of file common.h.

#define TFD_MAX_PAYLOAD_SIZE   (sizeof(struct il_device_cmd))

Definition at line 579 of file common.h.

#define TFD_QUEUE_BC_SIZE   (TFD_QUEUE_SIZE_MAX + TFD_QUEUE_SIZE_BC_DUP)

Definition at line 2373 of file common.h.

#define TFD_QUEUE_SIZE_BC_DUP   64

Definition at line 2372 of file common.h.

#define TFD_QUEUE_SIZE_MAX   256

Definition at line 2371 of file common.h.

#define TFD_TX_CMD_SLOTS   256

struct il_tx_queue - Tx Queue for DMA : generic Rx/Tx queue descriptor : base of circular buffer of TFDs : array of command/TX buffer pointers : array of meta data for each command/tx buffer : physical address of cmd/tx buffer array : array of per-TFD socket buffer pointers : time (in jiffies) of last read_ptr change : indicates need to update read/write idx : indicates queue is high-throughput aggregation (HT AGG) enabled

A Tx queue consists of circular buffer of BDs (a.k.a. TFDs, transmit frame descriptors) and required locking structures.

Definition at line 161 of file common.h.

#define TID_MAX_LOAD_COUNT   8

Definition at line 2674 of file common.h.

#define TID_MAX_TIME_DIFF   ((TID_QUEUE_MAX_SIZE - 1) * TID_QUEUE_CELL_SPACING)

Definition at line 2676 of file common.h.

#define TID_QUEUE_CELL_SPACING   50 /*mS */

Definition at line 2671 of file common.h.

#define TID_QUEUE_MAX_SIZE   20

Definition at line 2672 of file common.h.

#define TID_ROUND_VALUE   5 /* mS */

Definition at line 2673 of file common.h.

#define TIME_UNIT   1024

Definition at line 1520 of file common.h.

#define TIME_WRAP_AROUND (   x,
  y 
)    (((y) > (x)) ? (y) - (x) : (0-(x)) + (y))

Definition at line 2677 of file common.h.

#define TX_POWER_IL_ILLEGAL_VOLTAGE   -10000

Definition at line 908 of file common.h.

#define U32_PAD (   n)    ((4-(n))&0x3)

Definition at line 60 of file common.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
EEPROM_CHANNEL_VALID 
EEPROM_CHANNEL_IBSS 
EEPROM_CHANNEL_ACTIVE 
EEPROM_CHANNEL_RADAR 
EEPROM_CHANNEL_WIDE 
EEPROM_CHANNEL_DFS 

Definition at line 207 of file common.h.

anonymous enum
Enumerator:
CMD_SYNC 
CMD_SIZE_NORMAL 
CMD_NO_SKB 
CMD_SIZE_HUGE 
CMD_ASYNC 
CMD_WANT_SKB 
CMD_MAPPED 

Definition at line 548 of file common.h.

anonymous enum
Enumerator:
MEASUREMENT_READY 
MEASUREMENT_ACTIVE 

Definition at line 1018 of file common.h.

anonymous enum
Enumerator:
RATE_1M_IDX 
RATE_2M_IDX 
RATE_5M_IDX 
RATE_11M_IDX 
RATE_6M_IDX 
RATE_9M_IDX 
RATE_12M_IDX 
RATE_18M_IDX 
RATE_24M_IDX 
RATE_36M_IDX 
RATE_48M_IDX 
RATE_54M_IDX 
RATE_60M_IDX 
RATE_COUNT 
RATE_COUNT_LEGACY 
RATE_COUNT_3945 
RATE_INVM_IDX 
RATE_INVALID 

Definition at line 2469 of file common.h.

anonymous enum
Enumerator:
RATE_6M_IDX_TBL 
RATE_9M_IDX_TBL 
RATE_12M_IDX_TBL 
RATE_18M_IDX_TBL 
RATE_24M_IDX_TBL 
RATE_36M_IDX_TBL 
RATE_48M_IDX_TBL 
RATE_54M_IDX_TBL 
RATE_1M_IDX_TBL 
RATE_2M_IDX_TBL 
RATE_5M_IDX_TBL 
RATE_11M_IDX_TBL 
RATE_INVM_IDX_TBL 

Definition at line 2490 of file common.h.

anonymous enum
Enumerator:
IL_FIRST_OFDM_RATE 
IL39_LAST_OFDM_RATE 
IL_LAST_OFDM_RATE 
IL_FIRST_CCK_RATE 
IL_LAST_CCK_RATE 

Definition at line 2506 of file common.h.

anonymous enum
Enumerator:
RATE_6M_PLCP 
RATE_9M_PLCP 
RATE_12M_PLCP 
RATE_18M_PLCP 
RATE_24M_PLCP 
RATE_36M_PLCP 
RATE_48M_PLCP 
RATE_54M_PLCP 
RATE_60M_PLCP 
RATE_1M_PLCP 
RATE_2M_PLCP 
RATE_5M_PLCP 
RATE_11M_PLCP 

Definition at line 2530 of file common.h.

anonymous enum
Enumerator:
RATE_SISO_6M_PLCP 
RATE_SISO_12M_PLCP 
RATE_SISO_18M_PLCP 
RATE_SISO_24M_PLCP 
RATE_SISO_36M_PLCP 
RATE_SISO_48M_PLCP 
RATE_SISO_54M_PLCP 
RATE_SISO_60M_PLCP 
RATE_MIMO2_6M_PLCP 
RATE_MIMO2_12M_PLCP 
RATE_MIMO2_18M_PLCP 
RATE_MIMO2_24M_PLCP 
RATE_MIMO2_36M_PLCP 
RATE_MIMO2_48M_PLCP 
RATE_MIMO2_54M_PLCP 
RATE_MIMO2_60M_PLCP 
RATE_SISO_INVM_PLCP 
RATE_MIMO2_INVM_PLCP 

Definition at line 2548 of file common.h.

anonymous enum
Enumerator:
RATE_6M_IEEE 
RATE_9M_IEEE 
RATE_12M_IEEE 
RATE_18M_IEEE 
RATE_24M_IEEE 
RATE_36M_IEEE 
RATE_48M_IEEE 
RATE_54M_IEEE 
RATE_60M_IEEE 
RATE_1M_IEEE 
RATE_2M_IEEE 
RATE_5M_IEEE 
RATE_11M_IEEE 

Definition at line 2570 of file common.h.

Enumerator:
IL_CHAIN_NOISE_ALIVE 
IL_CHAIN_NOISE_ACCUMULATE 
IL_CHAIN_NOISE_CALIBRATED 
IL_CHAIN_NOISE_DONE 

Definition at line 952 of file common.h.

Enumerator:
IL_FA_TOO_MANY 
IL_FA_TOO_FEW 
IL_FA_GOOD_RANGE 

Definition at line 946 of file common.h.

Enumerator:
CONTROL_BACK_REQ 
CONTROL_BACK 
CONTROL_PSPOLL 
CONTROL_RTS 
CONTROL_CTS 
CONTROL_ACK 
CONTROL_CFEND 
CONTROL_CFENDACK 
CONTROL_MAX 

Definition at line 1056 of file common.h.

Enumerator:
IL_LED_DEFAULT 
IL_LED_RF_STATE 
IL_LED_BLINK 

Definition at line 1620 of file common.h.

Enumerator:
MANAGEMENT_ASSOC_REQ 
MANAGEMENT_ASSOC_RESP 
MANAGEMENT_REASSOC_REQ 
MANAGEMENT_REASSOC_RESP 
MANAGEMENT_PROBE_REQ 
MANAGEMENT_PROBE_RESP 
MANAGEMENT_BEACON 
MANAGEMENT_ATIM 
MANAGEMENT_DISASSOC 
MANAGEMENT_AUTH 
MANAGEMENT_DEAUTH 
MANAGEMENT_ACTION 
MANAGEMENT_MAX 

Definition at line 1040 of file common.h.

Enumerator:
LQ_NONE 
LQ_G 
LQ_A 
LQ_SISO 
LQ_MIMO2 
LQ_MAX 

Definition at line 2681 of file common.h.

enum ucode_type
Enumerator:
UCODE_NONE 
UCODE_INIT 
UCODE_RT 

Definition at line 959 of file common.h.

Function Documentation

void _il_apm_stop ( struct il_priv il)

Definition at line 4154 of file common.c.

bool _il_grab_nic_access ( struct il_priv il)

Definition at line 85 of file common.c.

int _il_poll_bit ( struct il_priv il,
u32  addr,
u32  bits,
u32  mask,
int  timeout 
)

Definition at line 46 of file common.c.

int il3945_rate_control_register ( void  )

Definition at line 970 of file 3945-rs.c.

void il3945_rate_control_unregister ( void  )

Definition at line 976 of file 3945-rs.c.

void il3945_rate_scale_init ( struct ieee80211_hw hw,
s32  sta_id 
)

il3945_rate_scale_init - Initialize the rate scale table based on assoc info

The specific throughput table used is based on the type of network the associated with, including A, B, G, and G w/ TGG protection

Definition at line 911 of file 3945-rs.c.

void il3945_rs_rate_init ( struct il_priv il,
struct ieee80211_sta sta,
u8  sta_id 
)

Definition at line 335 of file 3945-rs.c.

void il4965_dump_nic_error_log ( struct il_priv il)

Definition at line 5059 of file 4965-mac.c.

int il4965_rate_control_register ( void  )

il_rate_control_register - Register the rate control algorithm callbacks

Since the rate control algorithm is hardware specific, there is no need or reason to place it as a stand alone module. The driver can call il_rate_control_register in order to register the rate control callbacks with the mac80211 subsystem. This should be performed prior to calling ieee80211_register_hw

Definition at line 2827 of file 4965-rs.c.

void il4965_rate_control_unregister ( void  )

il_rate_control_unregister - Unregister the rate control callbacks

This should be called after calling ieee80211_unregister_hw, but before the driver is unloaded.

Definition at line 2833 of file 4965-rs.c.

void il4965_rs_rate_init ( struct il_priv il,
struct ieee80211_sta sta,
u8  sta_id 
)

Definition at line 2291 of file 4965-rs.c.

void il4965_update_chain_flags ( struct il_priv il)

Definition at line 3650 of file 4965-mac.c.

__le32 il_add_beacon_time ( struct il_priv il,
u32  base,
u32  addon,
u32  beacon_interval 
)

Definition at line 4832 of file common.c.

int il_add_station_common ( struct il_priv il,
const u8 addr,
bool  is_ap,
struct ieee80211_sta sta,
u8 sta_id_r 
)

il_add_station_common -

Definition at line 1970 of file common.c.

int il_alloc_txq_mem ( struct il_priv il)

Definition at line 4588 of file common.c.

int il_apm_init ( struct il_priv il)

Definition at line 4193 of file common.c.

void il_apm_stop ( struct il_priv il)

Definition at line 4177 of file common.c.

void il_bg_watchdog ( unsigned long  data)

Definition at line 4753 of file common.c.

void il_cancel_scan_deferred_work ( struct il_priv il)

Definition at line 1685 of file common.c.

int il_check_rxon_cmd ( struct il_priv il)

Definition at line 3646 of file common.c.

void il_chswitch_done ( struct il_priv il,
bool  is_success 
)

Definition at line 4043 of file common.c.

void il_clear_bit ( struct il_priv p,
u32  r,
u32  m 
)

Definition at line 74 of file common.c.

void il_clear_isr_stats ( struct il_priv il)

Definition at line 4434 of file common.c.

void il_clear_ucode_stations ( struct il_priv il)

il_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 2167 of file common.c.

void il_cmd_queue_free ( struct il_priv il)

il_cmd_queue_free - Deallocate DMA queue. : Transmit queue to deallocate.

Empty queue by removing and destroying all BD's. Free all buffers. 0-fill, but do not free "txq" descriptor structure.

Definition at line 2816 of file common.c.

void il_cmd_queue_unmap ( struct il_priv il)

il_cmd_queue_unmap - Unmap any remaining DMA mappings from command queue

Definition at line 2773 of file common.c.

void il_connection_init_rx_config ( struct il_priv il)

Definition at line 3954 of file common.c.

void il_dealloc_bcast_stations ( struct il_priv il)

Definition at line 2283 of file common.c.

void il_eeprom_free ( struct il_priv il)

Definition at line 788 of file common.c.

int il_eeprom_init ( struct il_priv il)

il_eeprom_init - read EEPROM contents

Load the EEPROM contents from adapter into il->eeprom

NOTE: This routine uses the non-debug IO access functions.

Definition at line 715 of file common.c.

u16 il_eeprom_query16 ( const struct il_priv il,
size_t  offset 
)

Definition at line 699 of file common.c.

const u8* il_eeprom_query_addr ( const struct il_priv il,
size_t  offset 
)

Definition at line 691 of file common.c.

int il_enqueue_hcmd ( struct il_priv il,
struct il_host_cmd cmd 
)

il_enqueue_hcmd - enqueue a uCode command : device ilate data point : a point to the ucode command structure

The function returns < 0 values to indicate the operation is failed. On success, it turns the idx (> 0) of command in the command queue.

Definition at line 3075 of file common.c.

u16 il_fill_probe_req ( struct il_priv il,
struct ieee80211_mgmt frame,
const u8 ta,
const u8 ies,
int  ie_len,
int  left 
)

il_fill_probe_req - fill in all required fields and IE for probe request

Definition at line 1576 of file common.c.

int il_force_reset ( struct il_priv il,
bool  external 
)

Definition at line 4611 of file common.c.

void il_force_scan_end ( struct il_priv il)

Definition at line 1267 of file common.c.

void il_free_channel_map ( struct il_priv il)

Definition at line 1041 of file common.c.

void il_free_geos ( struct il_priv il)

Definition at line 3496 of file common.c.

void il_free_txq_mem ( struct il_priv il)

Definition at line 4603 of file common.c.

int il_full_rxon_required ( struct il_priv il)

il_full_rxon_required - check if full RXON (vs RXON_ASSOC) cmd is needed : staging_rxon is compared to active_rxon

If the RXON structure is changing enough to require a new tune, or is clearing the RXON_FILTER_ASSOC_MSK, then return 1 to indicate that a new tune (full RXON command, rather than RXON_ASSOC cmd) is required.

Definition at line 3726 of file common.c.

u16 il_get_active_dwell_time ( struct il_priv il,
enum ieee80211_band  band,
u8  n_probes 
)
inline

Definition at line 1426 of file common.c.

struct il_channel_info* il_get_channel_info ( const struct il_priv il,
enum ieee80211_band  band,
u16  channel 
)
read

il_get_channel_info - Find driver's ilate channel info

Based on band and channel number.

Definition at line 1054 of file common.c.

const char* il_get_cmd_string ( u8  cmd)

Definition at line 206 of file common.c.

int il_get_free_ucode_key_idx ( struct il_priv il)

Definition at line 2270 of file common.c.

u8 il_get_lowest_plcp ( struct il_priv il)

Definition at line 3780 of file common.c.

u16 il_get_passive_dwell_time ( struct il_priv il,
enum ieee80211_band  band,
struct ieee80211_vif vif 
)

Definition at line 1439 of file common.c.

u8 il_get_single_channel_number ( struct il_priv il,
enum ieee80211_band  band 
)

Definition at line 3868 of file common.c.

void il_hdl_csa ( struct il_priv il,
struct il_rx_buf rxb 
)

Definition at line 4054 of file common.c.

void il_hdl_error ( struct il_priv il,
struct il_rx_buf rxb 
)

Definition at line 4419 of file common.c.

void il_hdl_pm_debug_stats ( struct il_priv il,
struct il_rx_buf rxb 
)

Definition at line 4408 of file common.c.

void il_hdl_pm_sleep ( struct il_priv il,
struct il_rx_buf rxb 
)

Definition at line 4396 of file common.c.

void il_hdl_spectrum_measurement ( struct il_priv il,
struct il_rx_buf rxb 
)

Definition at line 2603 of file common.c.

int il_init_channel_map ( struct il_priv il)

il_init_channel_map - Set up driver's info for all possible channels

Definition at line 905 of file common.c.

int il_init_geos ( struct il_priv il)

il_init_geos - Initialize mac80211's geo/channel info based from eeprom

Definition at line 3375 of file common.c.

void il_init_scan_params ( struct il_priv il)

Definition at line 1468 of file common.c.

void il_internal_short_hw_scan ( struct il_priv il)
void il_irq_handle_error ( struct il_priv il)

il_irq_handle_error - called for HW or SW error interrupt from card

Definition at line 4100 of file common.c.

bool il_is_ht40_tx_allowed ( struct il_priv il,
struct ieee80211_sta_ht_cap ht_cap 
)

Definition at line 3525 of file common.c.

irqreturn_t il_isr ( int  irq,
void data 
)

Definition at line 5396 of file common.c.

void il_leds_exit ( struct il_priv il)

Definition at line 594 of file common.c.

void il_leds_init ( struct il_priv il)

Definition at line 553 of file common.c.

int il_mac_add_interface ( struct ieee80211_hw hw,
struct ieee80211_vif vif 
)

Definition at line 4507 of file common.c.

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

Definition at line 5245 of file common.c.

int il_mac_change_interface ( struct ieee80211_hw hw,
struct ieee80211_vif vif,
enum nl80211_iftype  newtype,
bool  newp2p 
)

Definition at line 4663 of file common.c.

int il_mac_conf_tx ( struct ieee80211_hw hw,
struct ieee80211_vif vif,
u16  queue,
const struct ieee80211_tx_queue_params params 
)

Definition at line 4440 of file common.c.

int il_mac_config ( struct ieee80211_hw hw,
u32  changed 
)

il_mac_config - mac80211 config callback

Definition at line 4940 of file common.c.

int il_mac_hw_scan ( struct ieee80211_hw hw,
struct ieee80211_vif vif,
struct cfg80211_scan_request req 
)

Definition at line 1520 of file common.c.

void il_mac_remove_interface ( struct ieee80211_hw hw,
struct ieee80211_vif vif 
)

Definition at line 4569 of file common.c.

void il_mac_reset_tsf ( struct ieee80211_hw hw,
struct ieee80211_vif vif 
)

Definition at line 5091 of file common.c.

int il_mac_sta_remove ( struct ieee80211_hw hw,
struct ieee80211_vif vif,
struct ieee80211_sta sta 
)

Definition at line 2409 of file common.c.

int il_mac_tx_last_beacon ( struct ieee80211_hw hw)

Definition at line 4481 of file common.c.

int il_poll_bit ( struct il_priv il,
u32  addr,
u32  mask,
int  timeout 
)

Definition at line 127 of file common.c.

void il_power_initialize ( struct il_priv il)

Definition at line 1184 of file common.c.

int il_power_update_mode ( struct il_priv il,
bool  force 
)

Definition at line 1173 of file common.c.

u8 il_prep_station ( struct il_priv il,
const u8 addr,
bool  is_ap,
struct ieee80211_sta sta 
)

il_prep_station - Prepare station information for addition

should be called with sta_lock held

Definition at line 1885 of file common.c.

int il_queue_space ( const struct il_queue q)

Definition at line 2868 of file common.c.

u32 il_rd_prph ( struct il_priv il,
u32  reg 
)

Definition at line 144 of file common.c.

u32 il_read_targ_mem ( struct il_priv il,
u32  addr 
)

Definition at line 173 of file common.c.

void il_recover_from_stats ( struct il_priv il,
struct il_rx_pkt pkt 
)
int il_remove_station ( struct il_priv il,
const u8  sta_id,
const u8 addr 
)

il_remove_station - Remove driver's knowledge of station.

Definition at line 2106 of file common.c.

void il_restore_stations ( struct il_priv il)

il_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 2199 of file common.c.

int il_rx_queue_alloc ( struct il_priv il)

Definition at line 2559 of file common.c.

int il_rx_queue_space ( const struct il_rx_queue q)

il_rx_queue_space - Return number of free slots available in queue.

Definition at line 2501 of file common.c.

void il_rx_queue_update_write_ptr ( struct il_priv il,
struct il_rx_queue q 
)

il_rx_queue_update_write_ptr - Update the write pointer for the RX queue

Definition at line 2518 of file common.c.

int il_scan_cancel ( struct il_priv il)

il_scan_cancel - Cancel any currently executing HW scan

Definition at line 1312 of file common.c.

int il_scan_cancel_timeout ( struct il_priv il,
unsigned long  ms 
)

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

Definition at line 1326 of file common.c.

int il_send_add_sta ( struct il_priv il,
struct il_addsta_cmd sta,
u8  flags 
)

Definition at line 1789 of file common.c.

void il_send_bt_config ( struct il_priv il)

Definition at line 4357 of file common.c.

int il_send_cmd ( struct il_priv il,
struct il_host_cmd cmd 
)

Definition at line 396 of file common.c.

int __must_check il_send_cmd_pdu ( struct il_priv il,
u8  id,
u16  len,
const void data 
)

Definition at line 406 of file common.c.

int il_send_cmd_pdu_async ( struct il_priv il,
u8  id,
u16  len,
const void data,
void(*)(struct il_priv *il, struct il_device_cmd *cmd, struct il_rx_pkt *pkt)  callback 
)

Definition at line 419 of file common.c.

int __must_check il_send_cmd_sync ( struct il_priv il,
struct il_host_cmd cmd 
)

Definition at line 309 of file common.c.

int il_send_lq_cmd ( struct il_priv il,
struct il_link_quality_cmd lq,
u8  flags,
bool  init 
)

il_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 2362 of file common.c.

int il_send_rxon_timing ( struct il_priv il)

Definition at line 3583 of file common.c.

int il_send_stats_request ( struct il_priv il,
u8  flags,
bool  clear 
)

Definition at line 4380 of file common.c.

void il_set_bit ( struct il_priv p,
u32  r,
u32  m 
)

Definition at line 63 of file common.c.

int il_set_decrypted_flag ( struct il_priv il,
struct ieee80211_hdr hdr,
u32  decrypt_res,
struct ieee80211_rx_status stats 
)

Definition at line 2622 of file common.c.

void il_set_flags_for_band ( struct il_priv il,
enum ieee80211_band  band,
struct ieee80211_vif vif 
)

Definition at line 3928 of file common.c.

void il_set_rate ( struct il_priv il)

Definition at line 4012 of file common.c.

int il_set_rxon_channel ( struct il_priv il,
struct ieee80211_channel ch 
)

il_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 3905 of file common.c.

void il_set_rxon_ht ( struct il_priv il,
struct il_ht_config ht_conf 
)

Definition at line 3860 of file common.c.

void il_set_rxon_hwcrypto ( struct il_priv il,
int  hw_decrypt 
)

Definition at line 3632 of file common.c.

int il_set_tx_power ( struct il_priv il,
s8  tx_power,
bool  force 
)

Definition at line 4301 of file common.c.

void il_setup_rx_scan_handlers ( struct il_priv il)

Definition at line 1415 of file common.c.

void il_setup_scan_deferred_work ( struct il_priv il)

Definition at line 1676 of file common.c.

void il_setup_watchdog ( struct il_priv il)

Definition at line 4785 of file common.c.

void il_tx_cmd_complete ( struct il_priv il,
struct il_rx_buf rxb 
)

il_tx_cmd_complete - Pull unused buffers off the queue and reclaim them : Rx buffer to reclaim

If an Rx buffer has an async callback associated with it the callback will be executed. The attached skb (if present) will only be freed if the callback returns 1

Definition at line 3229 of file common.c.

void il_tx_cmd_protection ( struct il_priv il,
struct ieee80211_tx_info info,
__le16  fc,
__le32 tx_flags 
)

Definition at line 5461 of file common.c.

void il_tx_queue_free ( struct il_priv il,
int  txq_id 
)

il_tx_queue_free - Deallocate DMA queue. : Transmit queue to deallocate.

Empty queue by removing and destroying all BD's. Free all buffers. 0-fill, but do not free "txq" descriptor structure.

Definition at line 2737 of file common.c.

int il_tx_queue_init ( struct il_priv il,
u32  txq_id 
)

il_tx_queue_init - Allocate and initialize one tx/cmd queue

Definition at line 2964 of file common.c.

void il_tx_queue_reset ( struct il_priv il,
u32  txq_id 
)

Definition at line 3039 of file common.c.

void il_tx_queue_unmap ( struct il_priv il,
int  txq_id 
)

il_tx_queue_unmap - Unmap any remaining DMA mappings and free skb's

Definition at line 2713 of file common.c.

void il_txq_update_write_ptr ( struct il_priv il,
struct il_tx_queue txq 
)

il_txq_update_write_ptr - Send new write idx to hardware

Definition at line 2673 of file common.c.

u32 il_usecs_to_beacons ( struct il_priv il,
u32  usec,
u32  beacon_interval 
)

Definition at line 4804 of file common.c.

void il_wr_prph ( struct il_priv il,
u32  addr,
u32  val 
)

Definition at line 159 of file common.c.

void il_write_targ_mem ( struct il_priv il,
u32  addr,
u32  val 
)

Definition at line 191 of file common.c.

Variable Documentation

const u8 il_bcast_addr[ETH_ALEN]

Definition at line 3316 of file common.c.

u32 il_debug_level

Definition at line 3313 of file common.c.

const u8 il_eeprom_band_1[14]

Definition at line 636 of file common.c.

Definition at line 97 of file 4965-rs.c.