Functions
mac80211.c File Reference
#include <linux/types.h>
#include "ath5k.h"
#include "mac80211.h"
Include dependency graph for linux_ks/hwi/ath5k_raw/module/mac80211.c:

Go to the source code of this file.

Functions

int ath5k_frame_duration (unsigned int mode, size_t len, int rate, int erp, int short_preamble)
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 (u16 fc)
int ath5k_get_hdrlen_from_skb (const struct sk_buff *skb)
static int ath5k_is_erp_rate (unsigned int mode, int rate)

Function Documentation

int ath5k_frame_duration ( unsigned int  mode,
size_t  len,
int  rate,
int  erp,
int  short_preamble 
)

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

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 ( u16  fc)

Definition at line 23 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.

static int ath5k_is_erp_rate ( unsigned int  mode,
int  rate 
) [inline, static]

ieee80211_is_erp_rate - Check if a rate is an ERP rate : The PHY-mode for this rate : Transmission rate to check, in 100 kbps

Check if a given rate is an Extended Rate PHY (ERP) rate.

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



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12