-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
69 lines (55 loc) · 2.71 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef _ACX_MAIN_H_
#define _ACX_MAIN_H_
/* Minutes to wait until next radio recalibration: */
#define RECALIB_PAUSE 5
extern struct ieee80211_rate acx111_rates[];
extern const int acx111_rates_sizeof;
extern const u8 bitpos2genframe_txrate[];
struct ieee80211_hw* acx_alloc_hw(const struct ieee80211_ops *hw_ops);
int acx_start_watchdog(acx_device_t *adev);
int acx_stop_watchdog(acx_device_t *adev);
int acx_init_mechanics(acx_device_t *adev);
int acx_free_mechanics(acx_device_t *adev);
int acx_init_ieee80211(acx_device_t *adev, struct ieee80211_hw *hw);
void acx_after_interrupt_task(acx_device_t *adev);
void acx_log_irq(u16 irqtype);
void acx_schedule_task(acx_device_t *adev, unsigned int set_flag);
void acx_timer(unsigned long address);
int acx_op_add_interface(struct ieee80211_hw *ieee, struct ieee80211_VIF *vif);
void acx_remove_interface(acx_device_t *adev, struct ieee80211_vif *vif);
void acx_op_remove_interface(struct ieee80211_hw *hw, struct ieee80211_VIF *vif);
int acx_op_config(struct ieee80211_hw *hw, u32 changed);
void acx_op_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *info, u32 changed);
int acx_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
struct ieee80211_vif *vif, struct ieee80211_sta *sta,
struct ieee80211_key_conf *key);
void acx_op_configure_filter(struct ieee80211_hw *hw,
unsigned int changed_flags,
unsigned int *total_flags, u64 multicast);
#if CONFIG_ACX_MAC80211_VERSION >= KERNEL_VERSION(3, 2, 0)
int acx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue,
const struct ieee80211_tx_queue_params *params);
#else
int acx_conf_tx(struct ieee80211_hw *hw, u16 queue,
const struct ieee80211_tx_queue_params *params);
#endif
int acx_op_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set);
int acx_op_get_stats(struct ieee80211_hw *hw,
struct ieee80211_low_level_stats *stats);
#if CONFIG_ACX_MAC80211_VERSION < KERNEL_VERSION(2, 6, 34)
int acx_e_op_get_tx_stats(struct ieee80211_hw *hw,
struct ieee80211_tx_queue_stats *stats);
#endif
#if CONFIG_ACX_MAC80211_VERSION < KERNEL_VERSION(2, 6, 39)
int acx_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
#elif CONFIG_ACX_MAC80211_VERSION < KERNEL_VERSION(3, 7, 0)
void acx_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
#else
void acx_op_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
struct sk_buff *skb);
#endif
int acx_op_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
struct cfg80211_scan_request *req);
int acx_recover_hw(acx_device_t *adev);
#endif