Classes | Enumerations | Functions
mac80211.h File Reference
#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/if_ether.h>
#include "ieee80211.h"
#include "ath5k_interface.h"
Include dependency graph for linux_us/hwi/ath5k_raw/module/mac80211.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ieee80211_channel
struct  ieee80211_low_level_stats
struct  ieee80211_rate
struct  ieee80211_rx_status
struct  ieee80211_supported_band
struct  ieee80211_tx_info

Enumerations

enum  ieee80211_band {
  IEEE80211_BAND_2GHZ, IEEE80211_BAND_5GHZ, IEEE80211_NUM_BANDS, IEEE80211_BAND_2GHZ,
  IEEE80211_BAND_5GHZ, IEEE80211_NUM_BANDS, IEEE80211_BAND_2GHZ, IEEE80211_BAND_5GHZ,
  IEEE80211_NUM_BANDS
}
enum  ieee80211_rate_flags { IEEE80211_RATE_SHORT_PREAMBLE = 1<<0, IEEE80211_RATE_SHORT_PREAMBLE = 1<<0, IEEE80211_RATE_SHORT_PREAMBLE = 1<<0 }
enum  nl80211_iftype {
  NL80211_IFTYPE_UNSPECIFIED, NL80211_IFTYPE_ADHOC, NL80211_IFTYPE_STATION, NL80211_IFTYPE_AP,
  NL80211_IFTYPE_AP_VLAN, NL80211_IFTYPE_WDS, NL80211_IFTYPE_MONITOR, NL80211_IFTYPE_MESH_POINT,
  __NL80211_IFTYPE_AFTER_LAST, NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1, NL80211_IFTYPE_UNSPECIFIED, NL80211_IFTYPE_ADHOC,
  NL80211_IFTYPE_STATION, NL80211_IFTYPE_AP, NL80211_IFTYPE_AP_VLAN, NL80211_IFTYPE_WDS,
  NL80211_IFTYPE_MONITOR, NL80211_IFTYPE_MESH_POINT, __NL80211_IFTYPE_AFTER_LAST, NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1,
  NL80211_IFTYPE_UNSPECIFIED, NL80211_IFTYPE_ADHOC, NL80211_IFTYPE_STATION, NL80211_IFTYPE_AP,
  NL80211_IFTYPE_AP_VLAN, NL80211_IFTYPE_WDS, NL80211_IFTYPE_MONITOR, NL80211_IFTYPE_MESH_POINT,
  __NL80211_IFTYPE_AFTER_LAST, NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1
}

Functions

int ath5k_frequency_to_channel (int freq)
__le16 ath5k_generic_frame_duration (unsigned int mode, bool short_preamble, size_t frame_len, int rate)
int ath5k_get_hdrlen_from_skb (const struct sk_buff *skb)

Enumeration Type Documentation

enum ieee80211_band - supported frequency bands

The bands are assigned this way because the supported bitrates differ in these bands.

: 2.4GHz ISM band : around 5GHz band (4.9-5.7)

Enumerator:
IEEE80211_BAND_2GHZ 
IEEE80211_BAND_5GHZ 
IEEE80211_NUM_BANDS 
IEEE80211_BAND_2GHZ 
IEEE80211_BAND_5GHZ 
IEEE80211_NUM_BANDS 
IEEE80211_BAND_2GHZ 
IEEE80211_BAND_5GHZ 
IEEE80211_NUM_BANDS 

Definition at line 31 of file linux_us/hwi/ath5k_raw/module/mac80211.h.

enum ieee80211_rate_flags - rate flags

Hardware/specification flags for rates. These are structured in a way that allows using the same bitrate structure for different bands/PHY modes.

: Hardware can send with short preamble on this bitrate; only relevant in 2.4GHz band and with CCK rates. : This bitrate is a mandatory rate when used with 802.11a (on the 5 GHz band); filled by the core code when registering the wiphy. : This bitrate is a mandatory rate when used with 802.11b (on the 2.4 GHz band); filled by the core code when registering the wiphy. : This bitrate is a mandatory rate when used with 802.11g (on the 2.4 GHz band); filled by the core code when registering the wiphy. : This is an ERP rate in 802.11g mode.

Enumerator:
IEEE80211_RATE_SHORT_PREAMBLE 
IEEE80211_RATE_SHORT_PREAMBLE 
IEEE80211_RATE_SHORT_PREAMBLE 

Definition at line 76 of file linux_us/hwi/ath5k_raw/module/mac80211.h.

enum nl80211_iftype - (virtual) interface types

: unspecified type, driver decides : independent BSS member : managed BSS member : access point : VLAN interface for access points : wireless distribution interface : monitor interface receiving all frames : mesh point : highest interface type number currently defined : internal use

These values are used with the NL80211_ATTR_IFTYPE to set the type of an interface.

Enumerator:
NL80211_IFTYPE_UNSPECIFIED 
NL80211_IFTYPE_ADHOC 
NL80211_IFTYPE_STATION 
NL80211_IFTYPE_AP 
NL80211_IFTYPE_AP_VLAN 
NL80211_IFTYPE_WDS 
NL80211_IFTYPE_MONITOR 
NL80211_IFTYPE_MESH_POINT 
__NL80211_IFTYPE_AFTER_LAST 
NL80211_IFTYPE_MAX 
NL80211_IFTYPE_UNSPECIFIED 
NL80211_IFTYPE_ADHOC 
NL80211_IFTYPE_STATION 
NL80211_IFTYPE_AP 
NL80211_IFTYPE_AP_VLAN 
NL80211_IFTYPE_WDS 
NL80211_IFTYPE_MONITOR 
NL80211_IFTYPE_MESH_POINT 
__NL80211_IFTYPE_AFTER_LAST 
NL80211_IFTYPE_MAX 
NL80211_IFTYPE_UNSPECIFIED 
NL80211_IFTYPE_ADHOC 
NL80211_IFTYPE_STATION 
NL80211_IFTYPE_AP 
NL80211_IFTYPE_AP_VLAN 
NL80211_IFTYPE_WDS 
NL80211_IFTYPE_MONITOR 
NL80211_IFTYPE_MESH_POINT 
__NL80211_IFTYPE_AFTER_LAST 
NL80211_IFTYPE_MAX 

Definition at line 159 of file linux_us/hwi/ath5k_raw/module/mac80211.h.


Function Documentation

int ath5k_frequency_to_channel ( int  freq)

ieee80211_frequency_to_channel - convert frequency to channel number

Definition at line 140 of file linux_ks/hwi/ath5k_raw/module/mac80211.c.

__le16 ath5k_generic_frame_duration ( unsigned int  mode,
bool  short_preamble,
size_t  frame_len,
int  rate 
)

ieee80211_generic_frame_duration - Calculate the duration field for a frame : pointer obtained from ieee80211_alloc_hw(). : &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf. : the length of the frame. : the rate (in 100kbps) at which the frame is going to be transmitted.

Calculate the duration field of some generic frame, given its length and transmission rate (in 100kbps).

Definition at line 127 of file linux_ks/hwi/ath5k_raw/module/mac80211.c.

int ath5k_get_hdrlen_from_skb ( const struct sk_buff skb)

ieee80211_get_hdrlen_from_skb - get header length from data

Given an skb with a raw 802.11 header at the data pointer this function returns the 802.11 header length in bytes (not including encryption headers). If the data in the sk_buff is too short to contain a valid 802.11 header the function returns 0.

: the frame

Definition at line 60 of file linux_ks/hwi/ath5k_raw/module/mac80211.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:57