Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
zd_mac.c File Reference
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/jiffies.h>
#include <net/ieee80211_radiotap.h>
#include "zd_def.h"
#include "zd_chip.h"
#include "zd_mac.h"
#include "zd_rf.h"

Go to the source code of this file.

Data Structures

struct  zd_reg_alpha2_map
 

Macros

#define SUPPORTED_FIF_FLAGS
 
#define BEACON_WATCHDOG_DELAY   round_jiffies_relative(HZ)
 
#define LINK_LED_WORK_DELAY   HZ
 

Functions

int zd_mac_preinit_hw (struct ieee80211_hw *hw)
 
int zd_mac_init_hw (struct ieee80211_hw *hw)
 
void zd_mac_clear (struct zd_mac *mac)
 
int zd_op_start (struct ieee80211_hw *hw)
 
void zd_op_stop (struct ieee80211_hw *hw)
 
int zd_restore_settings (struct zd_mac *mac)
 
void zd_mac_tx_failed (struct urb *urb)
 
void zd_mac_tx_to_dev (struct sk_buff *skb, int error)
 
int zd_mac_rx (struct ieee80211_hw *hw, const u8 *buffer, unsigned int length)
 
struct ieee80211_hwzd_mac_alloc_hw (struct usb_interface *intf)
 

Macro Definition Documentation

#define BEACON_WATCHDOG_DELAY   round_jiffies_relative(HZ)

Definition at line 1435 of file zd_mac.c.

#define LINK_LED_WORK_DELAY   HZ

Definition at line 1508 of file zd_mac.c.

#define SUPPORTED_FIF_FLAGS
Value:

Definition at line 1234 of file zd_mac.c.

Function Documentation

struct ieee80211_hw* zd_mac_alloc_hw ( struct usb_interface intf)
read

Definition at line 1374 of file zd_mac.c.

void zd_mac_clear ( struct zd_mac mac)

Definition at line 235 of file zd_mac.c.

int zd_mac_init_hw ( struct ieee80211_hw hw)

Definition at line 194 of file zd_mac.c.

int zd_mac_preinit_hw ( struct ieee80211_hw hw)

Definition at line 179 of file zd_mac.c.

int zd_mac_rx ( struct ieee80211_hw hw,
const u8 buffer,
unsigned int  length 
)

Definition at line 1032 of file zd_mac.c.

void zd_mac_tx_failed ( struct urb urb)

zd_mac_tx_failed - callback for failed frames : the mac80211 wireless device

This function is called if a frame couldn't be successfully transferred. The first frame from the tx queue, will be selected and reported as error to the upper layers.

Definition at line 500 of file zd_mac.c.

void zd_mac_tx_to_dev ( struct sk_buff skb,
int  error 
)

zd_mac_tx_to_dev - callback for USB layer : a &sk_buff pointer : error value, 0 if transmission successful

Informs the MAC layer that the frame has successfully transferred to the device. If an ACK is required and the transfer to the device has been successful, the packets are put on the with the control set removed.

Definition at line 583 of file zd_mac.c.

int zd_op_start ( struct ieee80211_hw hw)

Definition at line 283 of file zd_mac.c.

void zd_op_stop ( struct ieee80211_hw hw)

Definition at line 343 of file zd_mac.c.

int zd_restore_settings ( struct zd_mac mac)

Definition at line 371 of file zd_mac.c.