Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
libipw.h File Reference
#include <linux/if_ether.h>
#include <linux/kernel.h>
#include <linux/wireless.h>
#include <linux/ieee80211.h>
#include <net/lib80211.h>
#include <net/cfg80211.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <net/iw_handler.h>

Go to the source code of this file.

Data Structures

struct  libipw_snap_hdr
 
struct  libipw_rx_stats
 
struct  libipw_frag_entry
 
struct  libipw_stats
 
struct  libipw_security
 
struct  libipw_hdr_1addr
 
struct  libipw_hdr_2addr
 
struct  libipw_hdr_3addr
 
struct  libipw_hdr_4addr
 
struct  libipw_hdr_3addrqos
 
struct  libipw_info_element
 
struct  libipw_auth
 
struct  libipw_channel_switch
 
struct  libipw_action
 
struct  libipw_disassoc
 
struct  libipw_probe_request
 
struct  libipw_probe_response
 
struct  libipw_assoc_request
 
struct  libipw_reassoc_request
 
struct  libipw_assoc_response
 
struct  libipw_txb
 
struct  libipw_qos_information_element
 
struct  libipw_qos_ac_parameter
 
struct  libipw_qos_parameter_info
 
struct  libipw_qos_parameters
 
struct  libipw_qos_data
 
struct  libipw_tim_parameters
 
struct  libipw_tpc_report
 
struct  libipw_channel_map
 
struct  libipw_ibss_dfs
 
struct  libipw_csa
 
struct  libipw_quiet
 
struct  libipw_network
 
struct  libipw_channel
 
struct  libipw_geo
 
struct  libipw_device
 

Macros

#define LIBIPW_VERSION   "git-1.1.13"
 
#define LIBIPW_DATA_LEN   2304
 
#define LIBIPW_1ADDR_LEN   10
 
#define LIBIPW_2ADDR_LEN   16
 
#define LIBIPW_3ADDR_LEN   24
 
#define LIBIPW_4ADDR_LEN   30
 
#define LIBIPW_FCS_LEN   4
 
#define LIBIPW_HLEN   (LIBIPW_4ADDR_LEN)
 
#define LIBIPW_FRAME_LEN   (LIBIPW_DATA_LEN + LIBIPW_HLEN)
 
#define MIN_FRAG_THRESHOLD   256U
 
#define MAX_FRAG_THRESHOLD   2346U
 
#define LIBIPW_QCTL_TID   0x000F
 
#define LIBIPW_DEBUG(level, fmt, args...)   do {} while (0)
 
#define LIBIPW_DL_INFO   (1<<0)
 
#define LIBIPW_DL_WX   (1<<1)
 
#define LIBIPW_DL_SCAN   (1<<2)
 
#define LIBIPW_DL_STATE   (1<<3)
 
#define LIBIPW_DL_MGMT   (1<<4)
 
#define LIBIPW_DL_FRAG   (1<<5)
 
#define LIBIPW_DL_DROP   (1<<7)
 
#define LIBIPW_DL_TX   (1<<8)
 
#define LIBIPW_DL_RX   (1<<9)
 
#define LIBIPW_DL_QOS   (1<<31)
 
#define LIBIPW_ERROR(f, a...)   printk(KERN_ERR "libipw: " f, ## a)
 
#define LIBIPW_WARNING(f, a...)   printk(KERN_WARNING "libipw: " f, ## a)
 
#define LIBIPW_DEBUG_INFO(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_INFO, f, ## a)
 
#define LIBIPW_DEBUG_WX(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_WX, f, ## a)
 
#define LIBIPW_DEBUG_SCAN(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_SCAN, f, ## a)
 
#define LIBIPW_DEBUG_STATE(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_STATE, f, ## a)
 
#define LIBIPW_DEBUG_MGMT(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_MGMT, f, ## a)
 
#define LIBIPW_DEBUG_FRAG(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_FRAG, f, ## a)
 
#define LIBIPW_DEBUG_DROP(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_DROP, f, ## a)
 
#define LIBIPW_DEBUG_TX(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_TX, f, ## a)
 
#define LIBIPW_DEBUG_RX(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_RX, f, ## a)
 
#define LIBIPW_DEBUG_QOS(f, a...)   LIBIPW_DEBUG(LIBIPW_DL_QOS, f, ## a)
 
#define WIRELESS_SPY   /* enable iwspy support */
 
#define ETH_P_PREAUTH   0x88C7 /* IEEE 802.11i pre-authentication */
 
#define ETH_P_80211_RAW   (ETH_P_ECONET + 1)
 
#define P80211_OUI_LEN   3
 
#define SNAP_SIZE   sizeof(struct libipw_snap_hdr)
 
#define WLAN_FC_GET_VERS(fc)   ((fc) & IEEE80211_FCTL_VERS)
 
#define WLAN_FC_GET_TYPE(fc)   ((fc) & IEEE80211_FCTL_FTYPE)
 
#define WLAN_FC_GET_STYPE(fc)   ((fc) & IEEE80211_FCTL_STYPE)
 
#define WLAN_GET_SEQ_FRAG(seq)   ((seq) & IEEE80211_SCTL_FRAG)
 
#define WLAN_GET_SEQ_SEQ(seq)   (((seq) & IEEE80211_SCTL_SEQ) >> 4)
 
#define LIBIPW_STATMASK_SIGNAL   (1<<0)
 
#define LIBIPW_STATMASK_RSSI   (1<<1)
 
#define LIBIPW_STATMASK_NOISE   (1<<2)
 
#define LIBIPW_STATMASK_RATE   (1<<3)
 
#define LIBIPW_STATMASK_WEMASK   0x7
 
#define LIBIPW_CCK_MODULATION   (1<<0)
 
#define LIBIPW_OFDM_MODULATION   (1<<1)
 
#define LIBIPW_24GHZ_BAND   (1<<0)
 
#define LIBIPW_52GHZ_BAND   (1<<1)
 
#define LIBIPW_CCK_RATE_1MB   0x02
 
#define LIBIPW_CCK_RATE_2MB   0x04
 
#define LIBIPW_CCK_RATE_5MB   0x0B
 
#define LIBIPW_CCK_RATE_11MB   0x16
 
#define LIBIPW_OFDM_RATE_6MB   0x0C
 
#define LIBIPW_OFDM_RATE_9MB   0x12
 
#define LIBIPW_OFDM_RATE_12MB   0x18
 
#define LIBIPW_OFDM_RATE_18MB   0x24
 
#define LIBIPW_OFDM_RATE_24MB   0x30
 
#define LIBIPW_OFDM_RATE_36MB   0x48
 
#define LIBIPW_OFDM_RATE_48MB   0x60
 
#define LIBIPW_OFDM_RATE_54MB   0x6C
 
#define LIBIPW_BASIC_RATE_MASK   0x80
 
#define LIBIPW_CCK_RATE_1MB_MASK   (1<<0)
 
#define LIBIPW_CCK_RATE_2MB_MASK   (1<<1)
 
#define LIBIPW_CCK_RATE_5MB_MASK   (1<<2)
 
#define LIBIPW_CCK_RATE_11MB_MASK   (1<<3)
 
#define LIBIPW_OFDM_RATE_6MB_MASK   (1<<4)
 
#define LIBIPW_OFDM_RATE_9MB_MASK   (1<<5)
 
#define LIBIPW_OFDM_RATE_12MB_MASK   (1<<6)
 
#define LIBIPW_OFDM_RATE_18MB_MASK   (1<<7)
 
#define LIBIPW_OFDM_RATE_24MB_MASK   (1<<8)
 
#define LIBIPW_OFDM_RATE_36MB_MASK   (1<<9)
 
#define LIBIPW_OFDM_RATE_48MB_MASK   (1<<10)
 
#define LIBIPW_OFDM_RATE_54MB_MASK   (1<<11)
 
#define LIBIPW_CCK_RATES_MASK   0x0000000F
 
#define LIBIPW_CCK_BASIC_RATES_MASK
 
#define LIBIPW_CCK_DEFAULT_RATES_MASK
 
#define LIBIPW_OFDM_RATES_MASK   0x00000FF0
 
#define LIBIPW_OFDM_BASIC_RATES_MASK
 
#define LIBIPW_OFDM_DEFAULT_RATES_MASK
 
#define LIBIPW_DEFAULT_RATES_MASK
 
#define LIBIPW_NUM_OFDM_RATES   8
 
#define LIBIPW_NUM_CCK_RATES   4
 
#define LIBIPW_OFDM_SHIFT_MASK_A   4
 
#define LIBIPW_FRAG_CACHE_LEN   4
 
#define SEC_KEY_1   (1<<0)
 
#define SEC_KEY_2   (1<<1)
 
#define SEC_KEY_3   (1<<2)
 
#define SEC_KEY_4   (1<<3)
 
#define SEC_ACTIVE_KEY   (1<<4)
 
#define SEC_AUTH_MODE   (1<<5)
 
#define SEC_UNICAST_GROUP   (1<<6)
 
#define SEC_LEVEL   (1<<7)
 
#define SEC_ENABLED   (1<<8)
 
#define SEC_ENCRYPT   (1<<9)
 
#define SEC_LEVEL_0   0 /* None */
 
#define SEC_LEVEL_1   1 /* WEP 40 and 104 bit */
 
#define SEC_LEVEL_2   2 /* Level 1 + TKIP */
 
#define SEC_LEVEL_2_CKIP   3 /* Level 1 + CKIP */
 
#define SEC_LEVEL_3   4 /* Level 2 + CCMP */
 
#define SEC_ALG_NONE   0
 
#define SEC_ALG_WEP   1
 
#define SEC_ALG_TKIP   2
 
#define SEC_ALG_CCMP   3
 
#define WEP_KEYS   4
 
#define WEP_KEY_LEN   13
 
#define SCM_KEY_LEN   32
 
#define SCM_TEMPORAL_KEY_LENGTH   16
 
#define BEACON_PROBE_SSID_ID_POSITION   12
 
#define libipw_deauth   libipw_disassoc
 
#define libipw_beacon   libipw_probe_response
 
#define MAX_SWEEP_TAB_ENTRIES   42
 
#define MAX_SWEEP_TAB_ENTRIES_PER_PACKET   7
 
#define MAX_RATES_LENGTH   ((u8)12)
 
#define MAX_RATES_EX_LENGTH   ((u8)16)
 
#define MAX_NETWORK_COUNT   128
 
#define CRC_LENGTH   4U
 
#define MAX_WPA_IE_LEN   64
 
#define NETWORK_HAS_OFDM   (1<<1)
 
#define NETWORK_HAS_CCK   (1<<2)
 
#define NETWORK_HAS_QOS_PARAMETERS   (1<<3)
 
#define NETWORK_HAS_QOS_INFORMATION   (1<<4)
 
#define NETWORK_HAS_QOS_MASK
 
#define NETWORK_HAS_POWER_CONSTRAINT   (1<<5)
 
#define NETWORK_HAS_CSA   (1<<6)
 
#define NETWORK_HAS_QUIET   (1<<7)
 
#define NETWORK_HAS_IBSS_DFS   (1<<8)
 
#define NETWORK_HAS_TPC_REPORT   (1<<9)
 
#define NETWORK_HAS_ERP_VALUE   (1<<10)
 
#define QOS_QUEUE_NUM   4
 
#define QOS_OUI_LEN   3
 
#define QOS_OUI_TYPE   2
 
#define QOS_ELEMENT_ID   221
 
#define QOS_OUI_INFO_SUB_TYPE   0
 
#define QOS_OUI_PARAM_SUB_TYPE   1
 
#define QOS_VERSION_1   1
 
#define QOS_AIFSN_MIN_VALUE   2
 
#define DEFAULT_MAX_SCAN_AGE   (15 * HZ)
 
#define DEFAULT_FTS   2346
 
#define CFG_LIBIPW_RESERVE_FCS   (1<<0)
 
#define CFG_LIBIPW_COMPUTE_FCS   (1<<1)
 
#define CFG_LIBIPW_RTS   (1<<2)
 
#define LIBIPW_24GHZ_MIN_CHANNEL   1
 
#define LIBIPW_24GHZ_MAX_CHANNEL   14
 
#define LIBIPW_24GHZ_CHANNELS
 
#define LIBIPW_52GHZ_MIN_CHANNEL   34
 
#define LIBIPW_52GHZ_MAX_CHANNEL   165
 
#define LIBIPW_52GHZ_CHANNELS
 
#define IEEE_A   (1<<0)
 
#define IEEE_B   (1<<1)
 
#define IEEE_G   (1<<2)
 
#define IEEE_MODE_MASK   (IEEE_A|IEEE_B|IEEE_G)
 

Enumerations

enum  libipw_state {
  LIBIPW_UNINITIALIZED = 0, LIBIPW_INITIALIZED, LIBIPW_ASSOCIATING, LIBIPW_ASSOCIATED,
  LIBIPW_AUTHENTICATING, LIBIPW_AUTHENTICATED, LIBIPW_SHUTDOWN
}
 
enum  {
  LIBIPW_CH_PASSIVE_ONLY = (1 << 0), LIBIPW_CH_80211H_RULES = (1 << 1), LIBIPW_CH_B_ONLY = (1 << 2), LIBIPW_CH_NO_IBSS = (1 << 3),
  LIBIPW_CH_UNIFORM_SPREADING = (1 << 4), LIBIPW_CH_RADAR_DETECT = (1 << 5), LIBIPW_CH_INVALID = (1 << 6)
}
 

Functions

void free_libipw (struct net_device *dev, int monitor)
 
struct net_devicealloc_libipw (int sizeof_priv, int monitor)
 
int libipw_change_mtu (struct net_device *dev, int new_mtu)
 
void libipw_networks_age (struct libipw_device *ieee, unsigned long age_secs)
 
int libipw_set_encryption (struct libipw_device *ieee)
 
netdev_tx_t libipw_xmit (struct sk_buff *skb, struct net_device *dev)
 
void libipw_txb_free (struct libipw_txb *)
 
void libipw_rx_any (struct libipw_device *ieee, struct sk_buff *skb, struct libipw_rx_stats *stats)
 
int libipw_rx (struct libipw_device *ieee, struct sk_buff *skb, struct libipw_rx_stats *rx_stats)
 
void libipw_rx_mgt (struct libipw_device *ieee, struct libipw_hdr_4addr *header, struct libipw_rx_stats *stats)
 
void libipw_network_reset (struct libipw_network *network)
 
struct libipw_geolibipw_get_geo (struct libipw_device *ieee)
 
int libipw_set_geo (struct libipw_device *ieee, const struct libipw_geo *geo)
 
int libipw_is_valid_channel (struct libipw_device *ieee, u8 channel)
 
int libipw_channel_to_index (struct libipw_device *ieee, u8 channel)
 
u8 libipw_freq_to_channel (struct libipw_device *ieee, u32 freq)
 
u8 libipw_get_channel_flags (struct libipw_device *ieee, u8 channel)
 
struct libipw_channellibipw_get_channel (struct libipw_device *ieee, u8 channel)
 
u32 libipw_channel_to_freq (struct libipw_device *ieee, u8 channel)
 
int libipw_wx_get_scan (struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *key)
 
int libipw_wx_set_encode (struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *key)
 
int libipw_wx_get_encode (struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *key)
 
int libipw_wx_set_encodeext (struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *extra)
 
int libipw_wx_get_encodeext (struct libipw_device *ieee, struct iw_request_info *info, union iwreq_data *wrqu, char *extra)
 

Variables

struct libipw_snap_hdr __packed
 

Macro Definition Documentation

#define BEACON_PROBE_SSID_ID_POSITION   12

Definition at line 335 of file libipw.h.

#define CFG_LIBIPW_COMPUTE_FCS   (1<<1)

Definition at line 684 of file libipw.h.

#define CFG_LIBIPW_RESERVE_FCS   (1<<0)

Definition at line 683 of file libipw.h.

#define CFG_LIBIPW_RTS   (1<<2)

Definition at line 685 of file libipw.h.

#define CRC_LENGTH   4U

Definition at line 511 of file libipw.h.

#define DEFAULT_FTS   2346

Definition at line 681 of file libipw.h.

#define DEFAULT_MAX_SCAN_AGE   (15 * HZ)

Definition at line 680 of file libipw.h.

#define ETH_P_80211_RAW   (ETH_P_ECONET + 1)

Definition at line 135 of file libipw.h.

#define ETH_P_PREAUTH   0x88C7 /* IEEE 802.11i pre-authentication */

Definition at line 132 of file libipw.h.

#define IEEE_A   (1<<0)

Definition at line 844 of file libipw.h.

#define IEEE_B   (1<<1)

Definition at line 845 of file libipw.h.

#define IEEE_G   (1<<2)

Definition at line 846 of file libipw.h.

#define IEEE_MODE_MASK   (IEEE_A|IEEE_B|IEEE_G)

Definition at line 847 of file libipw.h.

#define LIBIPW_1ADDR_LEN   10

Definition at line 47 of file libipw.h.

#define LIBIPW_24GHZ_BAND   (1<<0)

Definition at line 169 of file libipw.h.

#define LIBIPW_24GHZ_CHANNELS
Value:
LIBIPW_24GHZ_MIN_CHANNEL + 1)

Definition at line 689 of file libipw.h.

#define LIBIPW_24GHZ_MAX_CHANNEL   14

Definition at line 688 of file libipw.h.

#define LIBIPW_24GHZ_MIN_CHANNEL   1

Definition at line 687 of file libipw.h.

#define LIBIPW_2ADDR_LEN   16

Definition at line 48 of file libipw.h.

#define LIBIPW_3ADDR_LEN   24

Definition at line 49 of file libipw.h.

#define LIBIPW_4ADDR_LEN   30

Definition at line 50 of file libipw.h.

#define LIBIPW_52GHZ_BAND   (1<<1)

Definition at line 170 of file libipw.h.

#define LIBIPW_52GHZ_CHANNELS
Value:
LIBIPW_52GHZ_MIN_CHANNEL + 1)

Definition at line 694 of file libipw.h.

#define LIBIPW_52GHZ_MAX_CHANNEL   165

Definition at line 693 of file libipw.h.

#define LIBIPW_52GHZ_MIN_CHANNEL   34

Definition at line 692 of file libipw.h.

#define LIBIPW_BASIC_RATE_MASK   0x80

Definition at line 184 of file libipw.h.

#define libipw_beacon   libipw_probe_response

Definition at line 463 of file libipw.h.

#define LIBIPW_CCK_BASIC_RATES_MASK
Value:
LIBIPW_CCK_RATE_2MB_MASK)

Definition at line 200 of file libipw.h.

#define LIBIPW_CCK_DEFAULT_RATES_MASK
Value:
LIBIPW_CCK_RATE_5MB_MASK | \
LIBIPW_CCK_RATE_11MB_MASK)

Definition at line 202 of file libipw.h.

#define LIBIPW_CCK_MODULATION   (1<<0)

Definition at line 166 of file libipw.h.

#define LIBIPW_CCK_RATE_11MB   0x16

Definition at line 175 of file libipw.h.

#define LIBIPW_CCK_RATE_11MB_MASK   (1<<3)

Definition at line 189 of file libipw.h.

#define LIBIPW_CCK_RATE_1MB   0x02

Definition at line 172 of file libipw.h.

#define LIBIPW_CCK_RATE_1MB_MASK   (1<<0)

Definition at line 186 of file libipw.h.

#define LIBIPW_CCK_RATE_2MB   0x04

Definition at line 173 of file libipw.h.

#define LIBIPW_CCK_RATE_2MB_MASK   (1<<1)

Definition at line 187 of file libipw.h.

#define LIBIPW_CCK_RATE_5MB   0x0B

Definition at line 174 of file libipw.h.

#define LIBIPW_CCK_RATE_5MB_MASK   (1<<2)

Definition at line 188 of file libipw.h.

#define LIBIPW_CCK_RATES_MASK   0x0000000F

Definition at line 199 of file libipw.h.

#define LIBIPW_DATA_LEN   2304

Definition at line 38 of file libipw.h.

#define libipw_deauth   libipw_disassoc

Definition at line 444 of file libipw.h.

#define LIBIPW_DEBUG (   level,
  fmt,
  args... 
)    do {} while (0)

Definition at line 70 of file libipw.h.

#define LIBIPW_DEBUG_DROP (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_DROP, f, ## a)

Definition at line 120 of file libipw.h.

#define LIBIPW_DEBUG_FRAG (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_FRAG, f, ## a)

Definition at line 119 of file libipw.h.

#define LIBIPW_DEBUG_INFO (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_INFO, f, ## a)

Definition at line 113 of file libipw.h.

#define LIBIPW_DEBUG_MGMT (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_MGMT, f, ## a)

Definition at line 118 of file libipw.h.

#define LIBIPW_DEBUG_QOS (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_QOS, f, ## a)

Definition at line 123 of file libipw.h.

#define LIBIPW_DEBUG_RX (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_RX, f, ## a)

Definition at line 122 of file libipw.h.

#define LIBIPW_DEBUG_SCAN (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_SCAN, f, ## a)

Definition at line 116 of file libipw.h.

#define LIBIPW_DEBUG_STATE (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_STATE, f, ## a)

Definition at line 117 of file libipw.h.

#define LIBIPW_DEBUG_TX (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_TX, f, ## a)

Definition at line 121 of file libipw.h.

#define LIBIPW_DEBUG_WX (   f,
  a... 
)    LIBIPW_DEBUG(LIBIPW_DL_WX, f, ## a)

Definition at line 115 of file libipw.h.

#define LIBIPW_DEFAULT_RATES_MASK
Value:
LIBIPW_CCK_DEFAULT_RATES_MASK)

Definition at line 216 of file libipw.h.

#define LIBIPW_DL_DROP   (1<<7)

Definition at line 105 of file libipw.h.

#define LIBIPW_DL_FRAG   (1<<5)

Definition at line 104 of file libipw.h.

#define LIBIPW_DL_INFO   (1<<0)

Definition at line 99 of file libipw.h.

#define LIBIPW_DL_MGMT   (1<<4)

Definition at line 103 of file libipw.h.

#define LIBIPW_DL_QOS   (1<<31)

Definition at line 109 of file libipw.h.

#define LIBIPW_DL_RX   (1<<9)

Definition at line 108 of file libipw.h.

#define LIBIPW_DL_SCAN   (1<<2)

Definition at line 101 of file libipw.h.

#define LIBIPW_DL_STATE   (1<<3)

Definition at line 102 of file libipw.h.

#define LIBIPW_DL_TX   (1<<8)

Definition at line 107 of file libipw.h.

#define LIBIPW_DL_WX   (1<<1)

Definition at line 100 of file libipw.h.

#define LIBIPW_ERROR (   f,
  a... 
)    printk(KERN_ERR "libipw: " f, ## a)

Definition at line 111 of file libipw.h.

#define LIBIPW_FCS_LEN   4

Definition at line 51 of file libipw.h.

#define LIBIPW_FRAG_CACHE_LEN   4

Definition at line 246 of file libipw.h.

#define LIBIPW_FRAME_LEN   (LIBIPW_DATA_LEN + LIBIPW_HLEN)

Definition at line 53 of file libipw.h.

#define LIBIPW_HLEN   (LIBIPW_4ADDR_LEN)

Definition at line 52 of file libipw.h.

#define LIBIPW_NUM_CCK_RATES   4

Definition at line 220 of file libipw.h.

#define LIBIPW_NUM_OFDM_RATES   8

Definition at line 219 of file libipw.h.

#define LIBIPW_OFDM_BASIC_RATES_MASK
Value:
LIBIPW_OFDM_RATE_12MB_MASK | \
LIBIPW_OFDM_RATE_24MB_MASK)

Definition at line 207 of file libipw.h.

#define LIBIPW_OFDM_DEFAULT_RATES_MASK
Value:
LIBIPW_OFDM_RATE_9MB_MASK | \
LIBIPW_OFDM_RATE_18MB_MASK | \
LIBIPW_OFDM_RATE_36MB_MASK | \
LIBIPW_OFDM_RATE_48MB_MASK | \
LIBIPW_OFDM_RATE_54MB_MASK)

Definition at line 210 of file libipw.h.

#define LIBIPW_OFDM_MODULATION   (1<<1)

Definition at line 167 of file libipw.h.

#define LIBIPW_OFDM_RATE_12MB   0x18

Definition at line 178 of file libipw.h.

#define LIBIPW_OFDM_RATE_12MB_MASK   (1<<6)

Definition at line 192 of file libipw.h.

#define LIBIPW_OFDM_RATE_18MB   0x24

Definition at line 179 of file libipw.h.

#define LIBIPW_OFDM_RATE_18MB_MASK   (1<<7)

Definition at line 193 of file libipw.h.

#define LIBIPW_OFDM_RATE_24MB   0x30

Definition at line 180 of file libipw.h.

#define LIBIPW_OFDM_RATE_24MB_MASK   (1<<8)

Definition at line 194 of file libipw.h.

#define LIBIPW_OFDM_RATE_36MB   0x48

Definition at line 181 of file libipw.h.

#define LIBIPW_OFDM_RATE_36MB_MASK   (1<<9)

Definition at line 195 of file libipw.h.

#define LIBIPW_OFDM_RATE_48MB   0x60

Definition at line 182 of file libipw.h.

#define LIBIPW_OFDM_RATE_48MB_MASK   (1<<10)

Definition at line 196 of file libipw.h.

#define LIBIPW_OFDM_RATE_54MB   0x6C

Definition at line 183 of file libipw.h.

#define LIBIPW_OFDM_RATE_54MB_MASK   (1<<11)

Definition at line 197 of file libipw.h.

#define LIBIPW_OFDM_RATE_6MB   0x0C

Definition at line 176 of file libipw.h.

#define LIBIPW_OFDM_RATE_6MB_MASK   (1<<4)

Definition at line 190 of file libipw.h.

#define LIBIPW_OFDM_RATE_9MB   0x12

Definition at line 177 of file libipw.h.

#define LIBIPW_OFDM_RATE_9MB_MASK   (1<<5)

Definition at line 191 of file libipw.h.

#define LIBIPW_OFDM_RATES_MASK   0x00000FF0

Definition at line 206 of file libipw.h.

#define LIBIPW_OFDM_SHIFT_MASK_A   4

Definition at line 221 of file libipw.h.

#define LIBIPW_QCTL_TID   0x000F

Definition at line 59 of file libipw.h.

#define LIBIPW_STATMASK_NOISE   (1<<2)

Definition at line 162 of file libipw.h.

#define LIBIPW_STATMASK_RATE   (1<<3)

Definition at line 163 of file libipw.h.

#define LIBIPW_STATMASK_RSSI   (1<<1)

Definition at line 161 of file libipw.h.

#define LIBIPW_STATMASK_SIGNAL   (1<<0)

Definition at line 160 of file libipw.h.

#define LIBIPW_STATMASK_WEMASK   0x7

Definition at line 164 of file libipw.h.

#define LIBIPW_VERSION   "git-1.1.13"

Definition at line 36 of file libipw.h.

#define LIBIPW_WARNING (   f,
  a... 
)    printk(KERN_WARNING "libipw: " f, ## a)

Definition at line 112 of file libipw.h.

#define MAX_FRAG_THRESHOLD   2346U

Definition at line 56 of file libipw.h.

#define MAX_NETWORK_COUNT   128

Definition at line 509 of file libipw.h.

#define MAX_RATES_EX_LENGTH   ((u8)16)

Definition at line 508 of file libipw.h.

#define MAX_RATES_LENGTH   ((u8)12)

Definition at line 507 of file libipw.h.

#define MAX_SWEEP_TAB_ENTRIES   42

Definition at line 501 of file libipw.h.

#define MAX_SWEEP_TAB_ENTRIES_PER_PACKET   7

Definition at line 502 of file libipw.h.

#define MAX_WPA_IE_LEN   64

Definition at line 513 of file libipw.h.

#define MIN_FRAG_THRESHOLD   256U

Definition at line 55 of file libipw.h.

#define NETWORK_HAS_CCK   (1<<2)

Definition at line 516 of file libipw.h.

#define NETWORK_HAS_CSA   (1<<6)

Definition at line 526 of file libipw.h.

#define NETWORK_HAS_ERP_VALUE   (1<<10)

Definition at line 531 of file libipw.h.

#define NETWORK_HAS_IBSS_DFS   (1<<8)

Definition at line 528 of file libipw.h.

#define NETWORK_HAS_OFDM   (1<<1)

Definition at line 515 of file libipw.h.

#define NETWORK_HAS_POWER_CONSTRAINT   (1<<5)

Definition at line 525 of file libipw.h.

#define NETWORK_HAS_QOS_INFORMATION   (1<<4)

Definition at line 520 of file libipw.h.

#define NETWORK_HAS_QOS_MASK
Value:
NETWORK_HAS_QOS_INFORMATION)

Definition at line 521 of file libipw.h.

#define NETWORK_HAS_QOS_PARAMETERS   (1<<3)

Definition at line 519 of file libipw.h.

#define NETWORK_HAS_QUIET   (1<<7)

Definition at line 527 of file libipw.h.

#define NETWORK_HAS_TPC_REPORT   (1<<9)

Definition at line 529 of file libipw.h.

#define P80211_OUI_LEN   3

Definition at line 140 of file libipw.h.

#define QOS_AIFSN_MIN_VALUE   2

Definition at line 540 of file libipw.h.

#define QOS_ELEMENT_ID   221

Definition at line 536 of file libipw.h.

#define QOS_OUI_INFO_SUB_TYPE   0

Definition at line 537 of file libipw.h.

#define QOS_OUI_LEN   3

Definition at line 534 of file libipw.h.

#define QOS_OUI_PARAM_SUB_TYPE   1

Definition at line 538 of file libipw.h.

#define QOS_OUI_TYPE   2

Definition at line 535 of file libipw.h.

#define QOS_QUEUE_NUM   4

Definition at line 533 of file libipw.h.

#define QOS_VERSION_1   1

Definition at line 539 of file libipw.h.

#define SCM_KEY_LEN   32

Definition at line 307 of file libipw.h.

#define SCM_TEMPORAL_KEY_LENGTH   16

Definition at line 308 of file libipw.h.

#define SEC_ACTIVE_KEY   (1<<4)

Definition at line 287 of file libipw.h.

#define SEC_ALG_CCMP   3

Definition at line 303 of file libipw.h.

#define SEC_ALG_NONE   0

Definition at line 300 of file libipw.h.

#define SEC_ALG_TKIP   2

Definition at line 302 of file libipw.h.

#define SEC_ALG_WEP   1

Definition at line 301 of file libipw.h.

#define SEC_AUTH_MODE   (1<<5)

Definition at line 288 of file libipw.h.

#define SEC_ENABLED   (1<<8)

Definition at line 291 of file libipw.h.

#define SEC_ENCRYPT   (1<<9)

Definition at line 292 of file libipw.h.

#define SEC_KEY_1   (1<<0)

Definition at line 283 of file libipw.h.

#define SEC_KEY_2   (1<<1)

Definition at line 284 of file libipw.h.

#define SEC_KEY_3   (1<<2)

Definition at line 285 of file libipw.h.

#define SEC_KEY_4   (1<<3)

Definition at line 286 of file libipw.h.

#define SEC_LEVEL   (1<<7)

Definition at line 290 of file libipw.h.

#define SEC_LEVEL_0   0 /* None */

Definition at line 294 of file libipw.h.

#define SEC_LEVEL_1   1 /* WEP 40 and 104 bit */

Definition at line 295 of file libipw.h.

#define SEC_LEVEL_2   2 /* Level 1 + TKIP */

Definition at line 296 of file libipw.h.

#define SEC_LEVEL_2_CKIP   3 /* Level 1 + CKIP */

Definition at line 297 of file libipw.h.

#define SEC_LEVEL_3   4 /* Level 2 + CCMP */

Definition at line 298 of file libipw.h.

#define SEC_UNICAST_GROUP   (1<<6)

Definition at line 289 of file libipw.h.

#define SNAP_SIZE   sizeof(struct libipw_snap_hdr)

Definition at line 151 of file libipw.h.

#define WEP_KEY_LEN   13

Definition at line 306 of file libipw.h.

#define WEP_KEYS   4

Definition at line 305 of file libipw.h.

#define WIRELESS_SPY   /* enable iwspy support */

Definition at line 128 of file libipw.h.

#define WLAN_FC_GET_STYPE (   fc)    ((fc) & IEEE80211_FCTL_STYPE)

Definition at line 155 of file libipw.h.

#define WLAN_FC_GET_TYPE (   fc)    ((fc) & IEEE80211_FCTL_FTYPE)

Definition at line 154 of file libipw.h.

#define WLAN_FC_GET_VERS (   fc)    ((fc) & IEEE80211_FCTL_VERS)

Definition at line 153 of file libipw.h.

#define WLAN_GET_SEQ_FRAG (   seq)    ((seq) & IEEE80211_SCTL_FRAG)

Definition at line 157 of file libipw.h.

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

Definition at line 158 of file libipw.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
LIBIPW_CH_PASSIVE_ONLY 
LIBIPW_CH_80211H_RULES 
LIBIPW_CH_B_ONLY 
LIBIPW_CH_NO_IBSS 
LIBIPW_CH_UNIFORM_SPREADING 
LIBIPW_CH_RADAR_DETECT 
LIBIPW_CH_INVALID 

Definition at line 697 of file libipw.h.

Enumerator:
LIBIPW_UNINITIALIZED 
LIBIPW_INITIALIZED 
LIBIPW_ASSOCIATING 
LIBIPW_ASSOCIATED 
LIBIPW_AUTHENTICATING 
LIBIPW_AUTHENTICATED 
LIBIPW_SHUTDOWN 

Definition at line 670 of file libipw.h.

Function Documentation

struct net_device* alloc_libipw ( int  sizeof_priv,
int  monitor 
)
read

Definition at line 144 of file libipw_module.c.

void free_libipw ( struct net_device dev,
int  monitor 
)

Definition at line 227 of file libipw_module.c.

int libipw_change_mtu ( struct net_device dev,
int  new_mtu 
)

Definition at line 135 of file libipw_module.c.

u32 libipw_channel_to_freq ( struct libipw_device ieee,
u8  channel 
)

Definition at line 96 of file libipw_geo.c.

int libipw_channel_to_index ( struct libipw_device ieee,
u8  channel 
)

Definition at line 74 of file libipw_geo.c.

u8 libipw_freq_to_channel ( struct libipw_device ieee,
u32  freq 
)

Definition at line 111 of file libipw_geo.c.

struct libipw_channel* libipw_get_channel ( struct libipw_device ieee,
u8  channel 
)
read

Definition at line 173 of file libipw_geo.c.

u8 libipw_get_channel_flags ( struct libipw_device ieee,
u8  channel 
)

Definition at line 154 of file libipw_geo.c.

struct libipw_geo* libipw_get_geo ( struct libipw_device ieee)
read

Definition at line 149 of file libipw_geo.c.

int libipw_is_valid_channel ( struct libipw_device ieee,
u8  channel 
)

Definition at line 45 of file libipw_geo.c.

void libipw_network_reset ( struct libipw_network network)

Definition at line 87 of file libipw_module.c.

void libipw_networks_age ( struct libipw_device ieee,
unsigned long  age_secs 
)

Definition at line 109 of file libipw_module.c.

int libipw_rx ( struct libipw_device ieee,
struct sk_buff skb,
struct libipw_rx_stats rx_stats 
)

Definition at line 332 of file libipw_rx.c.

void libipw_rx_any ( struct libipw_device ieee,
struct sk_buff skb,
struct libipw_rx_stats stats 
)

Definition at line 836 of file libipw_rx.c.

void libipw_rx_mgt ( struct libipw_device ieee,
struct libipw_hdr_4addr header,
struct libipw_rx_stats stats 
)

Definition at line 1673 of file libipw_rx.c.

int libipw_set_encryption ( struct libipw_device ieee)
int libipw_set_geo ( struct libipw_device ieee,
const struct libipw_geo geo 
)

Definition at line 135 of file libipw_geo.c.

void libipw_txb_free ( struct libipw_txb )

Definition at line 180 of file libipw_tx.c.

int libipw_wx_get_encode ( struct libipw_device ieee,
struct iw_request_info info,
union iwreq_data wrqu,
char key 
)

Definition at line 480 of file libipw_wx.c.

int libipw_wx_get_encodeext ( struct libipw_device ieee,
struct iw_request_info info,
union iwreq_data wrqu,
char extra 
)

Definition at line 683 of file libipw_wx.c.

int libipw_wx_get_scan ( struct libipw_device ieee,
struct iw_request_info info,
union iwreq_data wrqu,
char key 
)

Definition at line 264 of file libipw_wx.c.

int libipw_wx_set_encode ( struct libipw_device ieee,
struct iw_request_info info,
union iwreq_data wrqu,
char key 
)

Definition at line 313 of file libipw_wx.c.

int libipw_wx_set_encodeext ( struct libipw_device ieee,
struct iw_request_info info,
union iwreq_data wrqu,
char extra 
)

Definition at line 522 of file libipw_wx.c.

netdev_tx_t libipw_xmit ( struct sk_buff skb,
struct net_device dev 
)

Definition at line 255 of file libipw_tx.c.

Variable Documentation