Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
main.c File Reference
#include "core.h"
#include "hif-ops.h"
#include "cfg80211.h"
#include "target.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define AR6003_RESET_CONTROL_ADDRESS   0x00004000
 
#define AR6004_RESET_CONTROL_ADDRESS   0x00004000
 

Functions

struct ath6kl_staath6kl_find_sta (struct ath6kl_vif *vif, u8 *node_addr)
 
struct ath6kl_staath6kl_find_sta_by_aid (struct ath6kl *ar, u8 aid)
 
enum htc_endpoint_id ath6kl_ac2_endpoint_id (void *devt, u8 ac)
 
struct ath6kl_cookieath6kl_alloc_cookie (struct ath6kl *ar)
 
void ath6kl_cookie_init (struct ath6kl *ar)
 
void ath6kl_cookie_cleanup (struct ath6kl *ar)
 
void ath6kl_free_cookie (struct ath6kl *ar, struct ath6kl_cookie *cookie)
 
int ath6kl_diag_read32 (struct ath6kl *ar, u32 address, u32 *value)
 
int ath6kl_diag_write32 (struct ath6kl *ar, u32 address, __le32 value)
 
int ath6kl_diag_read (struct ath6kl *ar, u32 address, void *data, u32 length)
 
int ath6kl_diag_write (struct ath6kl *ar, u32 address, void *data, u32 length)
 
int ath6kl_read_fwlogs (struct ath6kl *ar)
 
void ath6kl_reset_device (struct ath6kl *ar, u32 target_type, bool wait_fot_compltn, bool cold_reset)
 
void ath6kl_connect_ap_mode_bss (struct ath6kl_vif *vif, u16 channel)
 
void ath6kl_connect_ap_mode_sta (struct ath6kl_vif *vif, u16 aid, u8 *mac_addr, u8 keymgmt, u8 ucipher, u8 auth, u8 assoc_req_len, u8 *assoc_info, u8 apsd_info)
 
void disconnect_timer_handler (unsigned long ptr)
 
void ath6kl_disconnect (struct ath6kl_vif *vif)
 
void ath6kl_ready_event (void *devt, u8 *datap, u32 sw_ver, u32 abi_ver, enum wmi_phy_cap cap)
 
void ath6kl_scan_complete_evt (struct ath6kl_vif *vif, int status)
 
void ath6kl_connect_event (struct ath6kl_vif *vif, u16 channel, u8 *bssid, u16 listen_int, u16 beacon_int, enum network_type net_type, u8 beacon_ie_len, u8 assoc_req_len, u8 assoc_resp_len, u8 *assoc_info)
 
void ath6kl_tkip_micerr_event (struct ath6kl_vif *vif, u8 keyid, bool ismcast)
 
void ath6kl_tgt_stats_event (struct ath6kl_vif *vif, u8 *ptr, u32 len)
 
void ath6kl_wakeup_event (void *dev)
 
void ath6kl_txpwr_rx_evt (void *devt, u8 tx_pwr)
 
void ath6kl_pspoll_event (struct ath6kl_vif *vif, u8 aid)
 
void ath6kl_dtimexpiry_event (struct ath6kl_vif *vif)
 
void ath6kl_disconnect_event (struct ath6kl_vif *vif, u8 reason, u8 *bssid, u8 assoc_resp_len, u8 *assoc_info, u16 prot_reason_status)
 
struct ath6kl_vifath6kl_vif_first (struct ath6kl *ar)
 
void init_netdev (struct net_device *dev)
 

Macro Definition Documentation

#define AR6003_RESET_CONTROL_ADDRESS   0x00004000

Definition at line 344 of file main.c.

#define AR6004_RESET_CONTROL_ADDRESS   0x00004000

Definition at line 345 of file main.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file main.c.

Function Documentation

enum htc_endpoint_id ath6kl_ac2_endpoint_id ( void devt,
u8  ac 
)

Definition at line 146 of file main.c.

struct ath6kl_cookie* ath6kl_alloc_cookie ( struct ath6kl ar)
read

Definition at line 152 of file main.c.

void ath6kl_connect_ap_mode_bss ( struct ath6kl_vif vif,
u16  channel 
)

Definition at line 400 of file main.c.

void ath6kl_connect_ap_mode_sta ( struct ath6kl_vif vif,
u16  aid,
u8 mac_addr,
u8  keymgmt,
u8  ucipher,
u8  auth,
u8  assoc_req_len,
u8 assoc_info,
u8  apsd_info 
)

Definition at line 451 of file main.c.

void ath6kl_connect_event ( struct ath6kl_vif vif,
u16  channel,
u8 bssid,
u16  listen_int,
u16  beacon_int,
enum network_type  net_type,
u8  beacon_ie_len,
u8  assoc_req_len,
u8  assoc_resp_len,
u8 assoc_info 
)

Definition at line 638 of file main.c.

void ath6kl_cookie_cleanup ( struct ath6kl ar)

Definition at line 178 of file main.c.

void ath6kl_cookie_init ( struct ath6kl ar)

Definition at line 165 of file main.c.

int ath6kl_diag_read ( struct ath6kl ar,
u32  address,
void data,
u32  length 
)

Definition at line 233 of file main.c.

int ath6kl_diag_read32 ( struct ath6kl ar,
u32  address,
u32 value 
)

Definition at line 200 of file main.c.

int ath6kl_diag_write ( struct ath6kl ar,
u32  address,
void data,
u32  length 
)

Definition at line 250 of file main.c.

int ath6kl_diag_write32 ( struct ath6kl ar,
u32  address,
__le32  value 
)

Definition at line 218 of file main.c.

void ath6kl_disconnect ( struct ath6kl_vif vif)

Definition at line 535 of file main.c.

void ath6kl_disconnect_event ( struct ath6kl_vif vif,
u8  reason,
u8 bssid,
u8  assoc_resp_len,
u8 assoc_info,
u16  prot_reason_status 
)

Definition at line 975 of file main.c.

void ath6kl_dtimexpiry_event ( struct ath6kl_vif vif)

Definition at line 931 of file main.c.

struct ath6kl_sta* ath6kl_find_sta ( struct ath6kl_vif vif,
u8 node_addr 
)
read

Definition at line 26 of file main.c.

struct ath6kl_sta* ath6kl_find_sta_by_aid ( struct ath6kl ar,
u8  aid 
)
read

Definition at line 44 of file main.c.

void ath6kl_free_cookie ( struct ath6kl ar,
struct ath6kl_cookie cookie 
)

Definition at line 184 of file main.c.

void ath6kl_pspoll_event ( struct ath6kl_vif vif,
u8  aid 
)

Definition at line 875 of file main.c.

int ath6kl_read_fwlogs ( struct ath6kl ar)

Definition at line 268 of file main.c.

void ath6kl_ready_event ( void devt,
u8 datap,
u32  sw_ver,
u32  abi_ver,
enum wmi_phy_cap  cap 
)

Definition at line 551 of file main.c.

void ath6kl_reset_device ( struct ath6kl ar,
u32  target_type,
bool  wait_fot_compltn,
bool  cold_reset 
)

Definition at line 347 of file main.c.

void ath6kl_scan_complete_evt ( struct ath6kl_vif vif,
int  status 
)

Definition at line 581 of file main.c.

void ath6kl_tgt_stats_event ( struct ath6kl_vif vif,
u8 ptr,
u32  len 
)

Definition at line 829 of file main.c.

void ath6kl_tkip_micerr_event ( struct ath6kl_vif vif,
u8  keyid,
bool  ismcast 
)

Definition at line 686 of file main.c.

void ath6kl_txpwr_rx_evt ( void devt,
u8  tx_pwr 
)

Definition at line 867 of file main.c.

struct ath6kl_vif* ath6kl_vif_first ( struct ath6kl ar)
read

Definition at line 1063 of file main.c.

void ath6kl_wakeup_event ( void dev)

Definition at line 860 of file main.c.

void disconnect_timer_handler ( unsigned long  ptr)

Definition at line 526 of file main.c.

void init_netdev ( struct net_device dev)

Definition at line 1286 of file main.c.