aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r--drivers/net/wireless/libertas/dev.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index f062ed583901..76d018beebf4 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -1,8 +1,8 @@
1/** 1/*
2 * This file contains definitions and data structures specific 2 * This file contains definitions and data structures specific
3 * to Marvell 802.11 NIC. It contains the Device Information 3 * to Marvell 802.11 NIC. It contains the Device Information
4 * structure struct lbs_private.. 4 * structure struct lbs_private..
5 */ 5 */
6#ifndef _LBS_DEV_H_ 6#ifndef _LBS_DEV_H_
7#define _LBS_DEV_H_ 7#define _LBS_DEV_H_
8 8
@@ -12,7 +12,7 @@
12 12
13#include <linux/kfifo.h> 13#include <linux/kfifo.h>
14 14
15/** sleep_params */ 15/* sleep_params */
16struct sleep_params { 16struct sleep_params {
17 uint16_t sp_error; 17 uint16_t sp_error;
18 uint16_t sp_offset; 18 uint16_t sp_offset;
@@ -23,7 +23,7 @@ struct sleep_params {
23}; 23};
24 24
25 25
26/** Private structure for the MV device */ 26/* Private structure for the MV device */
27struct lbs_private { 27struct lbs_private {
28 28
29 /* Basic networking */ 29 /* Basic networking */
@@ -36,6 +36,7 @@ struct lbs_private {
36 /* CFG80211 */ 36 /* CFG80211 */
37 struct wireless_dev *wdev; 37 struct wireless_dev *wdev;
38 bool wiphy_registered; 38 bool wiphy_registered;
39 bool stopping;
39 struct cfg80211_scan_request *scan_req; 40 struct cfg80211_scan_request *scan_req;
40 u8 assoc_bss[ETH_ALEN]; 41 u8 assoc_bss[ETH_ALEN];
41 u8 disassoc_reason; 42 u8 disassoc_reason;
@@ -89,6 +90,7 @@ struct lbs_private {
89 void *card; 90 void *card;
90 u8 fw_ready; 91 u8 fw_ready;
91 u8 surpriseremoved; 92 u8 surpriseremoved;
93 u8 setup_fw_on_resume;
92 int (*hw_host_to_card) (struct lbs_private *priv, u8 type, u8 *payload, u16 nb); 94 int (*hw_host_to_card) (struct lbs_private *priv, u8 type, u8 *payload, u16 nb);
93 void (*reset_card) (struct lbs_private *priv); 95 void (*reset_card) (struct lbs_private *priv);
94 int (*enter_deep_sleep) (struct lbs_private *priv); 96 int (*enter_deep_sleep) (struct lbs_private *priv);
@@ -100,6 +102,7 @@ struct lbs_private {
100 u32 fwcapinfo; 102 u32 fwcapinfo;
101 u16 regioncode; 103 u16 regioncode;
102 u8 current_addr[ETH_ALEN]; 104 u8 current_addr[ETH_ALEN];
105 u8 copied_hwaddr;
103 106
104 /* Command download */ 107 /* Command download */
105 u8 dnld_sent; 108 u8 dnld_sent;
@@ -122,12 +125,12 @@ struct lbs_private {
122 /* Events sent from hardware to driver */ 125 /* Events sent from hardware to driver */
123 struct kfifo event_fifo; 126 struct kfifo event_fifo;
124 127
125 /** thread to service interrupts */ 128 /* thread to service interrupts */
126 struct task_struct *main_thread; 129 struct task_struct *main_thread;
127 wait_queue_head_t waitq; 130 wait_queue_head_t waitq;
128 struct workqueue_struct *work_thread; 131 struct workqueue_struct *work_thread;
129 132
130 /** Encryption stuff */ 133 /* Encryption stuff */
131 u8 authtype_auto; 134 u8 authtype_auto;
132 u8 wep_tx_key; 135 u8 wep_tx_key;
133 u8 wep_key[4][WLAN_KEY_LEN_WEP104]; 136 u8 wep_key[4][WLAN_KEY_LEN_WEP104];
@@ -137,6 +140,7 @@ struct lbs_private {
137 uint32_t wol_criteria; 140 uint32_t wol_criteria;
138 uint8_t wol_gpio; 141 uint8_t wol_gpio;
139 uint8_t wol_gap; 142 uint8_t wol_gap;
143 bool ehs_remove_supported;
140 144
141 /* Transmitting */ 145 /* Transmitting */
142 int tx_pending_len; /* -1 while building packet */ 146 int tx_pending_len; /* -1 while building packet */
@@ -158,7 +162,7 @@ struct lbs_private {
158 s16 txpower_min; 162 s16 txpower_min;
159 s16 txpower_max; 163 s16 txpower_max;
160 164
161 /** Scanning */ 165 /* Scanning */
162 struct delayed_work scan_work; 166 struct delayed_work scan_work;
163 int scan_channel; 167 int scan_channel;
164 /* Queue of things waiting for scan completion */ 168 /* Queue of things waiting for scan completion */