diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_wlan.h')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_wlan.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/drivers/net/wireless/hostap/hostap_wlan.h b/drivers/net/wireless/hostap/hostap_wlan.h index 57904015380f..ca25283e1c92 100644 --- a/drivers/net/wireless/hostap/hostap_wlan.h +++ b/drivers/net/wireless/hostap/hostap_wlan.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/interrupt.h> | 4 | #include <linux/interrupt.h> |
5 | #include <linux/wireless.h> | 5 | #include <linux/wireless.h> |
6 | #include <linux/netdevice.h> | 6 | #include <linux/netdevice.h> |
7 | #include <linux/etherdevice.h> | ||
7 | #include <linux/mutex.h> | 8 | #include <linux/mutex.h> |
8 | #include <net/iw_handler.h> | 9 | #include <net/iw_handler.h> |
9 | #include <net/ieee80211_radiotap.h> | 10 | #include <net/ieee80211_radiotap.h> |
@@ -85,16 +86,16 @@ struct hfa384x_rx_frame { | |||
85 | /* 802.11 */ | 86 | /* 802.11 */ |
86 | __le16 frame_control; | 87 | __le16 frame_control; |
87 | __le16 duration_id; | 88 | __le16 duration_id; |
88 | u8 addr1[6]; | 89 | u8 addr1[ETH_ALEN]; |
89 | u8 addr2[6]; | 90 | u8 addr2[ETH_ALEN]; |
90 | u8 addr3[6]; | 91 | u8 addr3[ETH_ALEN]; |
91 | __le16 seq_ctrl; | 92 | __le16 seq_ctrl; |
92 | u8 addr4[6]; | 93 | u8 addr4[ETH_ALEN]; |
93 | __le16 data_len; | 94 | __le16 data_len; |
94 | 95 | ||
95 | /* 802.3 */ | 96 | /* 802.3 */ |
96 | u8 dst_addr[6]; | 97 | u8 dst_addr[ETH_ALEN]; |
97 | u8 src_addr[6]; | 98 | u8 src_addr[ETH_ALEN]; |
98 | __be16 len; | 99 | __be16 len; |
99 | 100 | ||
100 | /* followed by frame data; max 2304 bytes */ | 101 | /* followed by frame data; max 2304 bytes */ |
@@ -114,16 +115,16 @@ struct hfa384x_tx_frame { | |||
114 | /* 802.11 */ | 115 | /* 802.11 */ |
115 | __le16 frame_control; /* parts not used */ | 116 | __le16 frame_control; /* parts not used */ |
116 | __le16 duration_id; | 117 | __le16 duration_id; |
117 | u8 addr1[6]; | 118 | u8 addr1[ETH_ALEN]; |
118 | u8 addr2[6]; /* filled by firmware */ | 119 | u8 addr2[ETH_ALEN]; /* filled by firmware */ |
119 | u8 addr3[6]; | 120 | u8 addr3[ETH_ALEN]; |
120 | __le16 seq_ctrl; /* filled by firmware */ | 121 | __le16 seq_ctrl; /* filled by firmware */ |
121 | u8 addr4[6]; | 122 | u8 addr4[ETH_ALEN]; |
122 | __le16 data_len; | 123 | __le16 data_len; |
123 | 124 | ||
124 | /* 802.3 */ | 125 | /* 802.3 */ |
125 | u8 dst_addr[6]; | 126 | u8 dst_addr[ETH_ALEN]; |
126 | u8 src_addr[6]; | 127 | u8 src_addr[ETH_ALEN]; |
127 | __be16 len; | 128 | __be16 len; |
128 | 129 | ||
129 | /* followed by frame data; max 2304 bytes */ | 130 | /* followed by frame data; max 2304 bytes */ |
@@ -156,7 +157,7 @@ struct hfa384x_hostscan_request { | |||
156 | } __packed; | 157 | } __packed; |
157 | 158 | ||
158 | struct hfa384x_join_request { | 159 | struct hfa384x_join_request { |
159 | u8 bssid[6]; | 160 | u8 bssid[ETH_ALEN]; |
160 | __le16 channel; | 161 | __le16 channel; |
161 | } __packed; | 162 | } __packed; |
162 | 163 | ||
@@ -228,7 +229,7 @@ struct hfa384x_scan_result { | |||
228 | __le16 chid; | 229 | __le16 chid; |
229 | __le16 anl; | 230 | __le16 anl; |
230 | __le16 sl; | 231 | __le16 sl; |
231 | u8 bssid[6]; | 232 | u8 bssid[ETH_ALEN]; |
232 | __le16 beacon_interval; | 233 | __le16 beacon_interval; |
233 | __le16 capability; | 234 | __le16 capability; |
234 | __le16 ssid_len; | 235 | __le16 ssid_len; |
@@ -241,7 +242,7 @@ struct hfa384x_hostscan_result { | |||
241 | __le16 chid; | 242 | __le16 chid; |
242 | __le16 anl; | 243 | __le16 anl; |
243 | __le16 sl; | 244 | __le16 sl; |
244 | u8 bssid[6]; | 245 | u8 bssid[ETH_ALEN]; |
245 | __le16 beacon_interval; | 246 | __le16 beacon_interval; |
246 | __le16 capability; | 247 | __le16 capability; |
247 | __le16 ssid_len; | 248 | __le16 ssid_len; |
@@ -824,7 +825,7 @@ struct local_info { | |||
824 | #define PRISM2_INFO_PENDING_SCANRESULTS 1 | 825 | #define PRISM2_INFO_PENDING_SCANRESULTS 1 |
825 | int prev_link_status; /* previous received LinkStatus info */ | 826 | int prev_link_status; /* previous received LinkStatus info */ |
826 | int prev_linkstatus_connected; | 827 | int prev_linkstatus_connected; |
827 | u8 preferred_ap[6]; /* use this AP if possible */ | 828 | u8 preferred_ap[ETH_ALEN]; /* use this AP if possible */ |
828 | 829 | ||
829 | #ifdef PRISM2_CALLBACK | 830 | #ifdef PRISM2_CALLBACK |
830 | void *callback_data; /* Can be used in callbacks; e.g., allocate | 831 | void *callback_data; /* Can be used in callbacks; e.g., allocate |