Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ipw2200.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <net/cfg80211-wext.h>
#include "ipw2200.h"
#include "ipw.h"

Go to the source code of this file.

Data Structures

struct  fw_chunk
 
struct  ipw_fw
 
struct  ipw_status_code
 
struct  ipw_network_match
 

Macros

#define VK   "k"
 
#define VD
 
#define VM
 
#define VP
 
#define VR
 
#define VQ
 
#define IPW2200_VERSION   "1.2.2" VK VD VM VP VR VQ
 
#define DRV_DESCRIPTION   "Intel(R) PRO/Wireless 2200/2915 Network Driver"
 
#define DRV_COPYRIGHT   "Copyright(c) 2003-2006 Intel Corporation"
 
#define DRV_VERSION   IPW2200_VERSION
 
#define ETH_P_80211_STATS   (ETH_P_80211_RAW + 1)
 
#define ipw2200_a_rates   (ipw2200_rates + 4)
 
#define ipw2200_num_a_rates   8
 
#define ipw2200_bg_rates   (ipw2200_rates + 0)
 
#define ipw2200_num_bg_rates   12
 
#define ieee80211chan2mhz(x)
 
#define ipw_read_reg32(a, b)   _ipw_read_reg32(a, b)
 
#define ipw_read_reg8(a, b)   _ipw_read_reg8(a, b)
 
#define ipw_write8(ipw, ofs, val)
 
#define ipw_write16(ipw, ofs, val)
 
#define ipw_write32(ipw, ofs, val)
 
#define ipw_read8(ipw, ofs)
 
#define ipw_read16(ipw, ofs)
 
#define ipw_read32(ipw, ofs)
 
#define ipw_read_indirect(a, b, c, d)
 
#define ipw_write_indirect(a, b, c, d)
 
#define LD_TIME_LINK_ON   msecs_to_jiffies(300)
 
#define LD_TIME_LINK_OFF   msecs_to_jiffies(2700)
 
#define LD_TIME_ACT_ON   msecs_to_jiffies(250)
 
#define IPW_CMD(x)   case IPW_CMD_ ## x : return #x
 
#define HOST_COMPLETE_TIMEOUT   HZ
 
#define IPW_SCAN_CHECK_WATCHDOG   (5 * HZ)
 
#define IPW_RX_BUF_SIZE   (3000)
 
#define free_firmware()   do {} while (0)
 
#define DEPTH_RSSI   8
 
#define DEPTH_NOISE   16
 
#define IPW_STATS_INTERVAL   (2 * HZ)
 
#define BEACON_THRESHOLD   5
 
#define IPW_PACKET_RETRY_TIME   HZ
 
#define DEFAULT_RTS_THRESHOLD   2304U
 
#define MIN_RTS_THRESHOLD   1U
 
#define MAX_RTS_THRESHOLD   2304U
 
#define DEFAULT_BEACON_INTERVAL   100U
 
#define DEFAULT_SHORT_RETRY_LIMIT   7U
 
#define DEFAULT_LONG_RETRY_LIMIT   4U
 
#define MAX_WX_STRING   80
 
#define MAX_HW_RESTARTS   5
 

Enumerations

enum  {
  IPW_PRIV_SET_POWER = SIOCIWFIRSTPRIV, IPW_PRIV_GET_POWER, IPW_PRIV_SET_MODE, IPW_PRIV_GET_MODE,
  IPW_PRIV_SET_PREAMBLE, IPW_PRIV_GET_PREAMBLE, IPW_PRIV_RESET, IPW_PRIV_SW_RESET
}
 

Functions

 MODULE_DESCRIPTION (DRV_DESCRIPTION)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_AUTHOR (DRV_COPYRIGHT)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("ipw2200-ibss.fw")
 
 MODULE_FIRMWARE ("ipw2200-bss.fw")
 
 MODULE_DEVICE_TABLE (pci, card_ids)
 
 module_param (disable, int, 0444)
 
 MODULE_PARM_DESC (disable,"manually disable the radio (default 0 [radio on])")
 
 module_param (associate, int, 0444)
 
 MODULE_PARM_DESC (associate,"auto associate when scanning (default off)")
 
 module_param (auto_create, int, 0444)
 
 MODULE_PARM_DESC (auto_create,"auto create adhoc network (default on)")
 
 module_param_named (led, led_support, int, 0444)
 
 MODULE_PARM_DESC (led,"enable led control on some systems (default 1 on)")
 
 module_param (debug, int, 0444)
 
 MODULE_PARM_DESC (debug,"debug output mask")
 
 module_param_named (channel, default_channel, int, 0444)
 
 MODULE_PARM_DESC (channel,"channel to limit associate to (default 0 [ANY])")
 
 module_param_named (mode, network_mode, int, 0444)
 
 MODULE_PARM_DESC (mode,"network mode (0=BSS,1=IBSS)")
 
 module_param (bt_coexist, int, 0444)
 
 MODULE_PARM_DESC (bt_coexist,"enable bluetooth coexistence (default off)")
 
 module_param (hwcrypto, int, 0444)
 
 MODULE_PARM_DESC (hwcrypto,"enable hardware crypto (default off)")
 
 module_param (cmdlog, int, 0444)
 
 MODULE_PARM_DESC (cmdlog,"allocate a ring buffer for logging firmware commands")
 
 module_param (roaming, int, 0444)
 
 MODULE_PARM_DESC (roaming,"enable roaming support (default on)")
 
 module_param (antenna, int, 0444)
 
 MODULE_PARM_DESC (antenna,"select antenna 1=Main, 3=Aux, default 0 [both], 2=slow_diversity (choose the one with lower background noise)")
 
 module_exit (ipw_exit)
 
 module_init (ipw_init)
 

Macro Definition Documentation

#define BEACON_THRESHOLD   5
#define DEFAULT_BEACON_INTERVAL   100U

Definition at line 8576 of file ipw2200.c.

#define DEFAULT_LONG_RETRY_LIMIT   4U

Definition at line 8578 of file ipw2200.c.

#define DEFAULT_RTS_THRESHOLD   2304U

Definition at line 8573 of file ipw2200.c.

#define DEFAULT_SHORT_RETRY_LIMIT   7U

Definition at line 8577 of file ipw2200.c.

#define DEPTH_NOISE   16

Definition at line 4101 of file ipw2200.c.

#define DEPTH_RSSI   8

Definition at line 4100 of file ipw2200.c.

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

Definition at line 78 of file ipw2200.c.

#define DRV_DESCRIPTION   "Intel(R) PRO/Wireless 2200/2915 Network Driver"

Definition at line 77 of file ipw2200.c.

#define DRV_VERSION   IPW2200_VERSION

Definition at line 79 of file ipw2200.c.

#define ETH_P_80211_STATS   (ETH_P_80211_RAW + 1)

Definition at line 81 of file ipw2200.c.

#define free_firmware ( )    do {} while (0)

Definition at line 3494 of file ipw2200.c.

#define HOST_COMPLETE_TIMEOUT   HZ

Definition at line 2189 of file ipw2200.c.

#define ieee80211chan2mhz (   x)
Value:
(((x) <= 14) ? \
(((x) == 14) ? 2484 : ((x) * 5) + 2407) : \
((x) + 1000) * 5)

Definition at line 138 of file ipw2200.c.

#define ipw2200_a_rates   (ipw2200_rates + 4)

Definition at line 130 of file ipw2200.c.

#define ipw2200_bg_rates   (ipw2200_rates + 0)

Definition at line 132 of file ipw2200.c.

#define ipw2200_num_a_rates   8

Definition at line 131 of file ipw2200.c.

#define ipw2200_num_bg_rates   12

Definition at line 133 of file ipw2200.c.

#define IPW2200_VERSION   "1.2.2" VK VD VM VP VR VQ

Definition at line 76 of file ipw2200.c.

#define IPW_CMD (   x)    case IPW_CMD_ ## x : return #x

Definition at line 2130 of file ipw2200.c.

#define IPW_PACKET_RETRY_TIME   HZ

Definition at line 8249 of file ipw2200.c.

#define ipw_read16 (   ipw,
  ofs 
)
Value:
({ \
IPW_DEBUG_IO("%s %d: read_direct16(0x%08X)\n", __FILE__, __LINE__, \
(u32)(ofs)); \
_ipw_read16(ipw, ofs); \
})

Definition at line 401 of file ipw2200.c.

#define ipw_read32 (   ipw,
  ofs 
)
Value:
({ \
IPW_DEBUG_IO("%s %d: read_direct32(0x%08X)\n", __FILE__, __LINE__, \
(u32)(ofs)); \
_ipw_read32(ipw, ofs); \
})

Definition at line 414 of file ipw2200.c.

#define ipw_read8 (   ipw,
  ofs 
)
Value:
({ \
IPW_DEBUG_IO("%s %d: read_direct8(0x%08X)\n", __FILE__, __LINE__, \
(u32)(ofs)); \
_ipw_read8(ipw, ofs); \
})

Definition at line 388 of file ipw2200.c.

#define ipw_read_indirect (   a,
  b,
  c,
  d 
)
Value:
({ \
IPW_DEBUG_IO("%s %d: read_indirect(0x%08X) %u bytes\n", __FILE__, \
__LINE__, (u32)(b), (u32)(d)); \
_ipw_read_indirect(a, b, c, d); \
})

Definition at line 422 of file ipw2200.c.

#define ipw_read_reg32 (   a,
  b 
)    _ipw_read_reg32(a, b)

Definition at line 306 of file ipw2200.c.

#define ipw_read_reg8 (   a,
  b 
)    _ipw_read_reg8(a, b)

Definition at line 310 of file ipw2200.c.

#define IPW_RX_BUF_SIZE   (3000)

Definition at line 3448 of file ipw2200.c.

#define IPW_SCAN_CHECK_WATCHDOG   (5 * HZ)

Definition at line 2372 of file ipw2200.c.

#define IPW_STATS_INTERVAL   (2 * HZ)

Definition at line 4255 of file ipw2200.c.

#define ipw_write16 (   ipw,
  ofs,
  val 
)
Value:
do { \
IPW_DEBUG_IO("%s %d: write_direct16(0x%08X, 0x%08X)\n", __FILE__, \
__LINE__, (u32)(ofs), (u32)(val)); \
_ipw_write16(ipw, ofs, val); \
} while (0)

Definition at line 361 of file ipw2200.c.

#define ipw_write32 (   ipw,
  ofs,
  val 
)
Value:
do { \
IPW_DEBUG_IO("%s %d: write_direct32(0x%08X, 0x%08X)\n", __FILE__, \
__LINE__, (u32)(ofs), (u32)(val)); \
_ipw_write32(ipw, ofs, val); \
} while (0)

Definition at line 375 of file ipw2200.c.

#define ipw_write8 (   ipw,
  ofs,
  val 
)
Value:
do { \
IPW_DEBUG_IO("%s %d: write_direct8(0x%08X, 0x%08X)\n", __FILE__, \
__LINE__, (u32)(ofs), (u32)(val)); \
_ipw_write8(ipw, ofs, val); \
} while (0)

Definition at line 347 of file ipw2200.c.

#define ipw_write_indirect (   a,
  b,
  c,
  d 
)
Value:
do { \
IPW_DEBUG_IO("%s %d: write_indirect(0x%08X) %u bytes\n", __FILE__, \
__LINE__, (u32)(b), (u32)(d)); \
_ipw_write_indirect(a, b, c, d); \
} while (0)

Definition at line 431 of file ipw2200.c.

#define LD_TIME_ACT_ON   msecs_to_jiffies(250)

Definition at line 878 of file ipw2200.c.

#define LD_TIME_LINK_OFF   msecs_to_jiffies(2700)

Definition at line 877 of file ipw2200.c.

#define LD_TIME_LINK_ON   msecs_to_jiffies(300)

Definition at line 876 of file ipw2200.c.

#define MAX_HW_RESTARTS   5

Definition at line 11272 of file ipw2200.c.

#define MAX_RTS_THRESHOLD   2304U

Definition at line 8575 of file ipw2200.c.

#define MAX_WX_STRING   80

Definition at line 9734 of file ipw2200.c.

#define MIN_RTS_THRESHOLD   1U

Definition at line 8574 of file ipw2200.c.

#define VD

Definition at line 49 of file ipw2200.c.

#define VK   "k"

Definition at line 41 of file ipw2200.c.

#define VM

Definition at line 55 of file ipw2200.c.

#define VP

Definition at line 61 of file ipw2200.c.

#define VQ

Definition at line 73 of file ipw2200.c.

#define VR

Definition at line 67 of file ipw2200.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
IPW_PRIV_SET_POWER 
IPW_PRIV_GET_POWER 
IPW_PRIV_SET_MODE 
IPW_PRIV_GET_MODE 
IPW_PRIV_SET_PREAMBLE 
IPW_PRIV_GET_PREAMBLE 
IPW_PRIV_RESET 
IPW_PRIV_SW_RESET 

Definition at line 10053 of file ipw2200.c.

Function Documentation

MODULE_AUTHOR ( DRV_COPYRIGHT  )
MODULE_DESCRIPTION ( DRV_DESCRIPTION  )
MODULE_DEVICE_TABLE ( pci  ,
card_ids   
)
module_exit ( ipw_exit  )
MODULE_FIRMWARE ( "ipw2200-ibss.fw )
MODULE_FIRMWARE ( "ipw2200-bss.fw )
module_init ( ipw_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( disable  ,
int  ,
0444   
)
module_param ( associate  ,
int  ,
0444   
)
module_param ( auto_create  ,
int  ,
0444   
)
module_param ( debug  ,
int  ,
0444   
)
module_param ( bt_coexist  ,
int  ,
0444   
)
module_param ( hwcrypto  ,
int  ,
0444   
)
module_param ( cmdlog  ,
int  ,
0444   
)
module_param ( roaming  ,
int  ,
0444   
)
module_param ( antenna  ,
int  ,
0444   
)
module_param_named ( led  ,
led_support  ,
int  ,
0444   
)
module_param_named ( channel  ,
default_channel  ,
int  ,
0444   
)
module_param_named ( mode  ,
network_mode  ,
int  ,
0444   
)
MODULE_PARM_DESC ( disable  ,
"manually disable the radio (default 0 [radio on])"   
)
MODULE_PARM_DESC ( associate  ,
"auto associate when scanning (default off)"   
)
MODULE_PARM_DESC ( auto_create  ,
"auto create adhoc network (default on)"   
)
MODULE_PARM_DESC ( led  ,
"enable led control on some systems (default 1 on)"   
)
MODULE_PARM_DESC ( debug  ,
"debug output mask  
)
MODULE_PARM_DESC ( channel  ,
"channel to limit associate to (default 0 [ANY])"   
)
MODULE_PARM_DESC ( mode  ,
"network mode (0=BSS,1=IBSS)"   
)
MODULE_PARM_DESC ( bt_coexist  ,
"enable bluetooth coexistence (default off)"   
)
MODULE_PARM_DESC ( hwcrypto  ,
"enable hardware crypto (default off)"   
)
MODULE_PARM_DESC ( cmdlog  ,
"allocate a ring buffer for logging firmware commands  
)
MODULE_PARM_DESC ( roaming  ,
"enable roaming support (default on)"   
)
MODULE_PARM_DESC ( antenna  ,
"select antenna  1 = Main,
= Aux,
default  0[both] 
)
MODULE_VERSION ( DRV_VERSION  )