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.h62
1 files changed, 12 insertions, 50 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h
index 71c5ad46ebf6..4536d9c0ad87 100644
--- a/drivers/net/wireless/libertas/dev.h
+++ b/drivers/net/wireless/libertas/dev.h
@@ -7,8 +7,8 @@
7#define _LBS_DEV_H_ 7#define _LBS_DEV_H_
8 8
9#include "mesh.h" 9#include "mesh.h"
10#include "scan.h" 10#include "defs.h"
11#include "assoc.h" 11#include "host.h"
12 12
13#include <linux/kfifo.h> 13#include <linux/kfifo.h>
14 14
@@ -29,7 +29,6 @@ struct lbs_private {
29 /* Basic networking */ 29 /* Basic networking */
30 struct net_device *dev; 30 struct net_device *dev;
31 u32 connect_status; 31 u32 connect_status;
32 int infra_open;
33 struct work_struct mcast_work; 32 struct work_struct mcast_work;
34 u32 nr_of_multicastmacaddr; 33 u32 nr_of_multicastmacaddr;
35 u8 multicastlist[MRVDRV_MAX_MULTICAST_LIST_SIZE][ETH_ALEN]; 34 u8 multicastlist[MRVDRV_MAX_MULTICAST_LIST_SIZE][ETH_ALEN];
@@ -37,6 +36,9 @@ struct lbs_private {
37 /* CFG80211 */ 36 /* CFG80211 */
38 struct wireless_dev *wdev; 37 struct wireless_dev *wdev;
39 bool wiphy_registered; 38 bool wiphy_registered;
39 struct cfg80211_scan_request *scan_req;
40 u8 assoc_bss[ETH_ALEN];
41 u8 disassoc_reason;
40 42
41 /* Mesh */ 43 /* Mesh */
42 struct net_device *mesh_dev; /* Virtual device */ 44 struct net_device *mesh_dev; /* Virtual device */
@@ -49,10 +51,6 @@ struct lbs_private {
49 u8 mesh_ssid_len; 51 u8 mesh_ssid_len;
50#endif 52#endif
51 53
52 /* Monitor mode */
53 struct net_device *rtap_net_dev;
54 u32 monitormode;
55
56 /* Debugfs */ 54 /* Debugfs */
57 struct dentry *debugfs_dir; 55 struct dentry *debugfs_dir;
58 struct dentry *debugfs_debug; 56 struct dentry *debugfs_debug;
@@ -62,6 +60,9 @@ struct lbs_private {
62 struct dentry *regs_dir; 60 struct dentry *regs_dir;
63 struct dentry *debugfs_regs_files[6]; 61 struct dentry *debugfs_regs_files[6];
64 62
63 /** 11D and domain regulatory data */
64 struct lbs_802_11d_domain_reg domain_reg;
65
65 /* Hardware debugging */ 66 /* Hardware debugging */
66 u32 mac_offset; 67 u32 mac_offset;
67 u32 bbp_offset; 68 u32 bbp_offset;
@@ -133,14 +134,10 @@ struct lbs_private {
133 struct workqueue_struct *work_thread; 134 struct workqueue_struct *work_thread;
134 135
135 /** Encryption stuff */ 136 /** Encryption stuff */
136 struct lbs_802_11_security secinfo;
137 struct enc_key wpa_mcast_key;
138 struct enc_key wpa_unicast_key;
139 u8 wpa_ie[MAX_WPA_IE_LEN];
140 u8 wpa_ie_len;
141 u16 wep_tx_keyidx;
142 struct enc_key wep_keys[4];
143 u8 authtype_auto; 137 u8 authtype_auto;
138 u8 wep_tx_key;
139 u8 wep_key[4][WLAN_KEY_LEN_WEP104];
140 u8 wep_key_len[4];
144 141
145 /* Wake On LAN */ 142 /* Wake On LAN */
146 uint32_t wol_criteria; 143 uint32_t wol_criteria;
@@ -161,6 +158,7 @@ struct lbs_private {
161 /* NIC/link operation characteristics */ 158 /* NIC/link operation characteristics */
162 u16 mac_control; 159 u16 mac_control;
163 u8 radio_on; 160 u8 radio_on;
161 u8 cur_rate;
164 u8 channel; 162 u8 channel;
165 s16 txpower_cur; 163 s16 txpower_cur;
166 s16 txpower_min; 164 s16 txpower_min;
@@ -169,42 +167,6 @@ struct lbs_private {
169 /** Scanning */ 167 /** Scanning */
170 struct delayed_work scan_work; 168 struct delayed_work scan_work;
171 int scan_channel; 169 int scan_channel;
172 /* remember which channel was scanned last, != 0 if currently scanning */
173 u8 scan_ssid[IEEE80211_MAX_SSID_LEN + 1];
174 u8 scan_ssid_len;
175
176 /* Associating */
177 struct delayed_work assoc_work;
178 struct current_bss_params curbssparams;
179 u8 mode;
180 struct list_head network_list;
181 struct list_head network_free_list;
182 struct bss_descriptor *networks;
183 struct assoc_request * pending_assoc_req;
184 struct assoc_request * in_progress_assoc_req;
185 uint16_t enablehwauto;
186
187 /* ADHOC */
188 u16 beacon_period;
189 u8 beacon_enable;
190 u8 adhoccreate;
191
192 /* WEXT */
193 char name[DEV_NAME_LEN];
194 u8 nodename[16];
195 struct iw_statistics wstats;
196 u8 cur_rate;
197#define MAX_REGION_CHANNEL_NUM 2
198 struct region_channel region_channel[MAX_REGION_CHANNEL_NUM];
199
200 /** Requested Signal Strength*/
201 u16 SNR[MAX_TYPE_B][MAX_TYPE_AVG];
202 u16 NF[MAX_TYPE_B][MAX_TYPE_AVG];
203 u8 RSSI[MAX_TYPE_B][MAX_TYPE_AVG];
204 u8 rawSNR[DEFAULT_DATA_AVG_FACTOR];
205 u8 rawNF[DEFAULT_DATA_AVG_FACTOR];
206 u16 nextSNRNF;
207 u16 numSNRNF;
208}; 170};
209 171
210extern struct cmd_confirm_sleep confirm_sleep; 172extern struct cmd_confirm_sleep confirm_sleep;