diff options
author | Edgardo Hames <ehames@gmail.com> | 2010-08-02 15:20:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-02 21:20:04 -0400 |
commit | b6bb56e6aa28085550179335247c649752ff2994 (patch) | |
tree | eba1c1f5e3c45289987ec7e7e6e8d0e4c3a4a8d7 /drivers/staging | |
parent | e5bdbb90299f7b8d2d88994af8541e7804833e2a (diff) |
Staging: wlan-ng: fix checkpatch issues in headers.
This patch fix errors and warnings reported by checkpatch
in p80211meta.h and p80211metstruct.h.
Signed-off-by: Edgardo Hames <ehames@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/wlan-ng/cfg80211.c | 18 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211meta.h | 16 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211metastruct.h | 60 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 9 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/p80211req.c | 12 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/prism2fw.c | 8 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/prism2mgmt.c | 22 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/prism2mib.c | 76 | ||||
-rw-r--r-- | drivers/staging/wlan-ng/prism2sta.c | 15 |
9 files changed, 119 insertions, 117 deletions
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c index 9488c5221204..53ca0bab67de 100644 --- a/drivers/staging/wlan-ng/cfg80211.c +++ b/drivers/staging/wlan-ng/cfg80211.c | |||
@@ -72,7 +72,7 @@ static int prism2_result2err(int prism2_result) | |||
72 | 72 | ||
73 | static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) | 73 | static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) |
74 | { | 74 | { |
75 | p80211msg_dot11req_mibset_t msg; | 75 | struct p80211msg_dot11req_mibset msg; |
76 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; | 76 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; |
77 | 77 | ||
78 | msg.msgcode = DIDmsg_dot11req_mibset; | 78 | msg.msgcode = DIDmsg_dot11req_mibset; |
@@ -85,7 +85,7 @@ static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data) | |||
85 | static int prism2_domibset_pstr32(wlandevice_t *wlandev, | 85 | static int prism2_domibset_pstr32(wlandevice_t *wlandev, |
86 | u32 did, u8 len, u8 *data) | 86 | u32 did, u8 len, u8 *data) |
87 | { | 87 | { |
88 | p80211msg_dot11req_mibset_t msg; | 88 | struct p80211msg_dot11req_mibset msg; |
89 | p80211item_pstr32_t *mibitem = (p80211item_pstr32_t *) &msg.mibattribute.data; | 89 | p80211item_pstr32_t *mibitem = (p80211item_pstr32_t *) &msg.mibattribute.data; |
90 | 90 | ||
91 | msg.msgcode = DIDmsg_dot11req_mibset; | 91 | msg.msgcode = DIDmsg_dot11req_mibset; |
@@ -294,7 +294,7 @@ int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
294 | u8 *mac, struct station_info *sinfo) | 294 | u8 *mac, struct station_info *sinfo) |
295 | { | 295 | { |
296 | wlandevice_t *wlandev = dev->ml_priv; | 296 | wlandevice_t *wlandev = dev->ml_priv; |
297 | p80211msg_lnxreq_commsquality_t quality; | 297 | struct p80211msg_lnxreq_commsquality quality; |
298 | int result; | 298 | int result; |
299 | 299 | ||
300 | memset(sinfo, 0, sizeof(*sinfo)); | 300 | memset(sinfo, 0, sizeof(*sinfo)); |
@@ -329,8 +329,8 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev, | |||
329 | { | 329 | { |
330 | struct prism2_wiphy_private *priv = wiphy_priv(wiphy); | 330 | struct prism2_wiphy_private *priv = wiphy_priv(wiphy); |
331 | wlandevice_t *wlandev = dev->ml_priv; | 331 | wlandevice_t *wlandev = dev->ml_priv; |
332 | p80211msg_dot11req_scan_t msg1; | 332 | struct p80211msg_dot11req_scan msg1; |
333 | p80211msg_dot11req_scan_results_t msg2; | 333 | struct p80211msg_dot11req_scan_results msg2; |
334 | int result; | 334 | int result; |
335 | int err = 0; | 335 | int err = 0; |
336 | int numbss = 0; | 336 | int numbss = 0; |
@@ -351,7 +351,7 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev, | |||
351 | 351 | ||
352 | priv->scan_request = request; | 352 | priv->scan_request = request; |
353 | 353 | ||
354 | memset(&msg1, 0x00, sizeof(p80211msg_dot11req_scan_t)); | 354 | memset(&msg1, 0x00, sizeof(struct p80211msg_dot11req_scan)); |
355 | msg1.msgcode = DIDmsg_dot11req_scan; | 355 | msg1.msgcode = DIDmsg_dot11req_scan; |
356 | msg1.bsstype.data = P80211ENUM_bsstype_any; | 356 | msg1.bsstype.data = P80211ENUM_bsstype_any; |
357 | 357 | ||
@@ -468,7 +468,7 @@ int prism2_connect(struct wiphy *wiphy, struct net_device *dev, | |||
468 | { | 468 | { |
469 | wlandevice_t *wlandev = dev->ml_priv; | 469 | wlandevice_t *wlandev = dev->ml_priv; |
470 | struct ieee80211_channel *channel = sme->channel; | 470 | struct ieee80211_channel *channel = sme->channel; |
471 | p80211msg_lnxreq_autojoin_t msg_join; | 471 | struct p80211msg_lnxreq_autojoin msg_join; |
472 | u32 did; | 472 | u32 did; |
473 | int length = sme->ssid_len; | 473 | int length = sme->ssid_len; |
474 | int chan = -1; | 474 | int chan = -1; |
@@ -589,7 +589,7 @@ int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, | |||
589 | u16 reason_code) | 589 | u16 reason_code) |
590 | { | 590 | { |
591 | wlandevice_t *wlandev = dev->ml_priv; | 591 | wlandevice_t *wlandev = dev->ml_priv; |
592 | p80211msg_lnxreq_autojoin_t msg_join; | 592 | struct p80211msg_lnxreq_autojoin msg_join; |
593 | int result; | 593 | int result; |
594 | int err = 0; | 594 | int err = 0; |
595 | 595 | ||
@@ -652,7 +652,7 @@ int prism2_get_tx_power(struct wiphy *wiphy, int *dbm) | |||
652 | { | 652 | { |
653 | struct prism2_wiphy_private *priv = wiphy_priv(wiphy); | 653 | struct prism2_wiphy_private *priv = wiphy_priv(wiphy); |
654 | wlandevice_t *wlandev = priv->wlandev; | 654 | wlandevice_t *wlandev = priv->wlandev; |
655 | p80211msg_dot11req_mibget_t msg; | 655 | struct p80211msg_dot11req_mibget msg; |
656 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; | 656 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; |
657 | int result; | 657 | int result; |
658 | int err = 0; | 658 | int err = 0; |
diff --git a/drivers/staging/wlan-ng/p80211meta.h b/drivers/staging/wlan-ng/p80211meta.h index b9badcff681f..c5f1a63add97 100644 --- a/drivers/staging/wlan-ng/p80211meta.h +++ b/drivers/staging/wlan-ng/p80211meta.h | |||
@@ -62,7 +62,7 @@ | |||
62 | /* representation of category list metadata, group list metadata, */ | 62 | /* representation of category list metadata, group list metadata, */ |
63 | /* and data item metadata for both Mib and Messages. */ | 63 | /* and data item metadata for both Mib and Messages. */ |
64 | 64 | ||
65 | typedef struct p80211meta { | 65 | struct p80211meta { |
66 | char *name; /* data item name */ | 66 | char *name; /* data item name */ |
67 | u32 did; /* partial did */ | 67 | u32 did; /* partial did */ |
68 | u32 flags; /* set of various flag bits */ | 68 | u32 flags; /* set of various flag bits */ |
@@ -75,16 +75,16 @@ typedef struct p80211meta { | |||
75 | p80211_totext_t totextptr; /* ptr to totext conversion function */ | 75 | p80211_totext_t totextptr; /* ptr to totext conversion function */ |
76 | p80211_fromtext_t fromtextptr; /* ptr to totext conversion function */ | 76 | p80211_fromtext_t fromtextptr; /* ptr to totext conversion function */ |
77 | p80211_valid_t validfunptr; /* ptr to totext conversion function */ | 77 | p80211_valid_t validfunptr; /* ptr to totext conversion function */ |
78 | } p80211meta_t; | 78 | }; |
79 | 79 | ||
80 | typedef struct grplistitem { | 80 | struct grplistitem { |
81 | char *name; | 81 | char *name; |
82 | p80211meta_t *itemlist; | 82 | struct p80211meta *itemlist; |
83 | } grplistitem_t; | 83 | }; |
84 | 84 | ||
85 | typedef struct catlistitem { | 85 | struct catlistitem { |
86 | char *name; | 86 | char *name; |
87 | grplistitem_t *grplist; | 87 | struct grplistitem *grplist; |
88 | } catlistitem_t; | 88 | }; |
89 | 89 | ||
90 | #endif /* _P80211META_H */ | 90 | #endif /* _P80211META_H */ |
diff --git a/drivers/staging/wlan-ng/p80211metastruct.h b/drivers/staging/wlan-ng/p80211metastruct.h index e2e344c4ed82..a8a4e3b5ffef 100644 --- a/drivers/staging/wlan-ng/p80211metastruct.h +++ b/drivers/staging/wlan-ng/p80211metastruct.h | |||
@@ -47,23 +47,23 @@ | |||
47 | #ifndef _P80211MKMETASTRUCT_H | 47 | #ifndef _P80211MKMETASTRUCT_H |
48 | #define _P80211MKMETASTRUCT_H | 48 | #define _P80211MKMETASTRUCT_H |
49 | 49 | ||
50 | typedef struct p80211msg_dot11req_mibget { | 50 | struct p80211msg_dot11req_mibget { |
51 | u32 msgcode; | 51 | u32 msgcode; |
52 | u32 msglen; | 52 | u32 msglen; |
53 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 53 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
54 | p80211item_unk392_t mibattribute; | 54 | p80211item_unk392_t mibattribute; |
55 | p80211item_uint32_t resultcode; | 55 | p80211item_uint32_t resultcode; |
56 | } __attribute__ ((packed)) p80211msg_dot11req_mibget_t; | 56 | } __attribute__ ((packed)); |
57 | 57 | ||
58 | typedef struct p80211msg_dot11req_mibset { | 58 | struct p80211msg_dot11req_mibset { |
59 | u32 msgcode; | 59 | u32 msgcode; |
60 | u32 msglen; | 60 | u32 msglen; |
61 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 61 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
62 | p80211item_unk392_t mibattribute; | 62 | p80211item_unk392_t mibattribute; |
63 | p80211item_uint32_t resultcode; | 63 | p80211item_uint32_t resultcode; |
64 | } __attribute__ ((packed)) p80211msg_dot11req_mibset_t; | 64 | } __attribute__ ((packed)); |
65 | 65 | ||
66 | typedef struct p80211msg_dot11req_scan { | 66 | struct p80211msg_dot11req_scan { |
67 | u32 msgcode; | 67 | u32 msgcode; |
68 | u32 msglen; | 68 | u32 msglen; |
69 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 69 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -81,9 +81,9 @@ typedef struct p80211msg_dot11req_scan { | |||
81 | p80211item_uint32_t resultcode; | 81 | p80211item_uint32_t resultcode; |
82 | p80211item_uint32_t numbss; | 82 | p80211item_uint32_t numbss; |
83 | p80211item_uint32_t append; | 83 | p80211item_uint32_t append; |
84 | } __attribute__ ((packed)) p80211msg_dot11req_scan_t; | 84 | } __attribute__ ((packed)); |
85 | 85 | ||
86 | typedef struct p80211msg_dot11req_scan_results { | 86 | struct p80211msg_dot11req_scan_results { |
87 | u32 msgcode; | 87 | u32 msgcode; |
88 | u32 msglen; | 88 | u32 msglen; |
89 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 89 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -130,9 +130,9 @@ typedef struct p80211msg_dot11req_scan_results { | |||
130 | p80211item_uint32_t supprate6; | 130 | p80211item_uint32_t supprate6; |
131 | p80211item_uint32_t supprate7; | 131 | p80211item_uint32_t supprate7; |
132 | p80211item_uint32_t supprate8; | 132 | p80211item_uint32_t supprate8; |
133 | } __attribute__ ((packed)) p80211msg_dot11req_scan_results_t; | 133 | } __attribute__ ((packed)); |
134 | 134 | ||
135 | typedef struct p80211msg_dot11req_start { | 135 | struct p80211msg_dot11req_start { |
136 | u32 msgcode; | 136 | u32 msgcode; |
137 | u32 msglen; | 137 | u32 msglen; |
138 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 138 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -168,17 +168,17 @@ typedef struct p80211msg_dot11req_start { | |||
168 | p80211item_uint32_t operationalrate7; | 168 | p80211item_uint32_t operationalrate7; |
169 | p80211item_uint32_t operationalrate8; | 169 | p80211item_uint32_t operationalrate8; |
170 | p80211item_uint32_t resultcode; | 170 | p80211item_uint32_t resultcode; |
171 | } __attribute__ ((packed)) p80211msg_dot11req_start_t; | 171 | } __attribute__ ((packed)); |
172 | 172 | ||
173 | typedef struct p80211msg_lnxreq_ifstate { | 173 | struct p80211msg_lnxreq_ifstate { |
174 | u32 msgcode; | 174 | u32 msgcode; |
175 | u32 msglen; | 175 | u32 msglen; |
176 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 176 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
177 | p80211item_uint32_t ifstate; | 177 | p80211item_uint32_t ifstate; |
178 | p80211item_uint32_t resultcode; | 178 | p80211item_uint32_t resultcode; |
179 | } __attribute__ ((packed)) p80211msg_lnxreq_ifstate_t; | 179 | } __attribute__ ((packed)); |
180 | 180 | ||
181 | typedef struct p80211msg_lnxreq_wlansniff { | 181 | struct p80211msg_lnxreq_wlansniff { |
182 | u32 msgcode; | 182 | u32 msgcode; |
183 | u32 msglen; | 183 | u32 msglen; |
184 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 184 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -190,18 +190,18 @@ typedef struct p80211msg_lnxreq_wlansniff { | |||
190 | p80211item_uint32_t stripfcs; | 190 | p80211item_uint32_t stripfcs; |
191 | p80211item_uint32_t packet_trunc; | 191 | p80211item_uint32_t packet_trunc; |
192 | p80211item_uint32_t resultcode; | 192 | p80211item_uint32_t resultcode; |
193 | } __attribute__ ((packed)) p80211msg_lnxreq_wlansniff_t; | 193 | } __attribute__ ((packed)); |
194 | 194 | ||
195 | typedef struct p80211msg_lnxreq_hostwep { | 195 | struct p80211msg_lnxreq_hostwep { |
196 | u32 msgcode; | 196 | u32 msgcode; |
197 | u32 msglen; | 197 | u32 msglen; |
198 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 198 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
199 | p80211item_uint32_t resultcode; | 199 | p80211item_uint32_t resultcode; |
200 | p80211item_uint32_t decrypt; | 200 | p80211item_uint32_t decrypt; |
201 | p80211item_uint32_t encrypt; | 201 | p80211item_uint32_t encrypt; |
202 | } __attribute__ ((packed)) p80211msg_lnxreq_hostwep_t; | 202 | } __attribute__ ((packed)); |
203 | 203 | ||
204 | typedef struct p80211msg_lnxreq_commsquality { | 204 | struct p80211msg_lnxreq_commsquality { |
205 | u32 msgcode; | 205 | u32 msgcode; |
206 | u32 msglen; | 206 | u32 msglen; |
207 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 207 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -211,9 +211,9 @@ typedef struct p80211msg_lnxreq_commsquality { | |||
211 | p80211item_uint32_t level; | 211 | p80211item_uint32_t level; |
212 | p80211item_uint32_t noise; | 212 | p80211item_uint32_t noise; |
213 | p80211item_uint32_t txrate; | 213 | p80211item_uint32_t txrate; |
214 | } __attribute__ ((packed)) p80211msg_lnxreq_commsquality_t; | 214 | } __attribute__ ((packed)); |
215 | 215 | ||
216 | typedef struct p80211msg_lnxreq_autojoin { | 216 | struct p80211msg_lnxreq_autojoin { |
217 | u32 msgcode; | 217 | u32 msgcode; |
218 | u32 msglen; | 218 | u32 msglen; |
219 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 219 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -221,26 +221,26 @@ typedef struct p80211msg_lnxreq_autojoin { | |||
221 | u8 pad_19D[3]; | 221 | u8 pad_19D[3]; |
222 | p80211item_uint32_t authtype; | 222 | p80211item_uint32_t authtype; |
223 | p80211item_uint32_t resultcode; | 223 | p80211item_uint32_t resultcode; |
224 | } __attribute__ ((packed)) p80211msg_lnxreq_autojoin_t; | 224 | } __attribute__ ((packed)); |
225 | 225 | ||
226 | typedef struct p80211msg_p2req_readpda { | 226 | struct p80211msg_p2req_readpda { |
227 | u32 msgcode; | 227 | u32 msgcode; |
228 | u32 msglen; | 228 | u32 msglen; |
229 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 229 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
230 | p80211item_unk1024_t pda; | 230 | p80211item_unk1024_t pda; |
231 | p80211item_uint32_t resultcode; | 231 | p80211item_uint32_t resultcode; |
232 | } __attribute__ ((packed)) p80211msg_p2req_readpda_t; | 232 | } __attribute__ ((packed)); |
233 | 233 | ||
234 | typedef struct p80211msg_p2req_ramdl_state { | 234 | struct p80211msg_p2req_ramdl_state { |
235 | u32 msgcode; | 235 | u32 msgcode; |
236 | u32 msglen; | 236 | u32 msglen; |
237 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 237 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
238 | p80211item_uint32_t enable; | 238 | p80211item_uint32_t enable; |
239 | p80211item_uint32_t exeaddr; | 239 | p80211item_uint32_t exeaddr; |
240 | p80211item_uint32_t resultcode; | 240 | p80211item_uint32_t resultcode; |
241 | } __attribute__ ((packed)) p80211msg_p2req_ramdl_state_t; | 241 | } __attribute__ ((packed)); |
242 | 242 | ||
243 | typedef struct p80211msg_p2req_ramdl_write { | 243 | struct p80211msg_p2req_ramdl_write { |
244 | u32 msgcode; | 244 | u32 msgcode; |
245 | u32 msglen; | 245 | u32 msglen; |
246 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 246 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -248,17 +248,17 @@ typedef struct p80211msg_p2req_ramdl_write { | |||
248 | p80211item_uint32_t len; | 248 | p80211item_uint32_t len; |
249 | p80211item_unk4096_t data; | 249 | p80211item_unk4096_t data; |
250 | p80211item_uint32_t resultcode; | 250 | p80211item_uint32_t resultcode; |
251 | } __attribute__ ((packed)) p80211msg_p2req_ramdl_write_t; | 251 | } __attribute__ ((packed)); |
252 | 252 | ||
253 | typedef struct p80211msg_p2req_flashdl_state { | 253 | struct p80211msg_p2req_flashdl_state { |
254 | u32 msgcode; | 254 | u32 msgcode; |
255 | u32 msglen; | 255 | u32 msglen; |
256 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 256 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
257 | p80211item_uint32_t enable; | 257 | p80211item_uint32_t enable; |
258 | p80211item_uint32_t resultcode; | 258 | p80211item_uint32_t resultcode; |
259 | } __attribute__ ((packed)) p80211msg_p2req_flashdl_state_t; | 259 | } __attribute__ ((packed)); |
260 | 260 | ||
261 | typedef struct p80211msg_p2req_flashdl_write { | 261 | struct p80211msg_p2req_flashdl_write { |
262 | u32 msgcode; | 262 | u32 msgcode; |
263 | u32 msglen; | 263 | u32 msglen; |
264 | u8 devname[WLAN_DEVNAMELEN_MAX]; | 264 | u8 devname[WLAN_DEVNAMELEN_MAX]; |
@@ -266,6 +266,6 @@ typedef struct p80211msg_p2req_flashdl_write { | |||
266 | p80211item_uint32_t len; | 266 | p80211item_uint32_t len; |
267 | p80211item_unk4096_t data; | 267 | p80211item_unk4096_t data; |
268 | p80211item_uint32_t resultcode; | 268 | p80211item_uint32_t resultcode; |
269 | } __attribute__ ((packed)) p80211msg_p2req_flashdl_write_t; | 269 | } __attribute__ ((packed)); |
270 | 270 | ||
271 | #endif | 271 | #endif |
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index a57ac5265a0b..aa1792c8429e 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -607,7 +607,8 @@ static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) | |||
607 | result = -ENOMEM; | 607 | result = -ENOMEM; |
608 | } | 608 | } |
609 | bail: | 609 | bail: |
610 | return result; /* If allocate,copyfrom or copyto fails, return errno */ | 610 | /* If allocate,copyfrom or copyto fails, return errno */ |
611 | return result; | ||
611 | } | 612 | } |
612 | 613 | ||
613 | /*---------------------------------------------------------------- | 614 | /*---------------------------------------------------------------- |
@@ -638,7 +639,7 @@ bail: | |||
638 | static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) | 639 | static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) |
639 | { | 640 | { |
640 | struct sockaddr *new_addr = addr; | 641 | struct sockaddr *new_addr = addr; |
641 | p80211msg_dot11req_mibset_t dot11req; | 642 | struct p80211msg_dot11req_mibset dot11req; |
642 | p80211item_unk392_t *mibattr; | 643 | p80211item_unk392_t *mibattr; |
643 | p80211item_pstr6_t *macaddr; | 644 | p80211item_pstr6_t *macaddr; |
644 | p80211item_uint32_t *resultcode; | 645 | p80211item_uint32_t *resultcode; |
@@ -654,9 +655,9 @@ static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) | |||
654 | resultcode = &dot11req.resultcode; | 655 | resultcode = &dot11req.resultcode; |
655 | 656 | ||
656 | /* Set up a dot11req_mibset */ | 657 | /* Set up a dot11req_mibset */ |
657 | memset(&dot11req, 0, sizeof(p80211msg_dot11req_mibset_t)); | 658 | memset(&dot11req, 0, sizeof(struct p80211msg_dot11req_mibset)); |
658 | dot11req.msgcode = DIDmsg_dot11req_mibset; | 659 | dot11req.msgcode = DIDmsg_dot11req_mibset; |
659 | dot11req.msglen = sizeof(p80211msg_dot11req_mibset_t); | 660 | dot11req.msglen = sizeof(struct p80211msg_dot11req_mibset); |
660 | memcpy(dot11req.devname, | 661 | memcpy(dot11req.devname, |
661 | ((wlandevice_t *) dev->ml_priv)->name, WLAN_DEVNAMELEN_MAX - 1); | 662 | ((wlandevice_t *) dev->ml_priv)->name, WLAN_DEVNAMELEN_MAX - 1); |
662 | 663 | ||
diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c index 207f080cfc9e..83ae12699042 100644 --- a/drivers/staging/wlan-ng/p80211req.c +++ b/drivers/staging/wlan-ng/p80211req.c | |||
@@ -74,7 +74,7 @@ | |||
74 | 74 | ||
75 | static void p80211req_handlemsg(wlandevice_t *wlandev, p80211msg_t *msg); | 75 | static void p80211req_handlemsg(wlandevice_t *wlandev, p80211msg_t *msg); |
76 | static int p80211req_mibset_mibget(wlandevice_t *wlandev, | 76 | static int p80211req_mibset_mibget(wlandevice_t *wlandev, |
77 | p80211msg_dot11req_mibget_t *mib_msg, | 77 | struct p80211msg_dot11req_mibget *mib_msg, |
78 | int isget); | 78 | int isget); |
79 | 79 | ||
80 | /*---------------------------------------------------------------- | 80 | /*---------------------------------------------------------------- |
@@ -155,8 +155,8 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, p80211msg_t *msg) | |||
155 | switch (msg->msgcode) { | 155 | switch (msg->msgcode) { |
156 | 156 | ||
157 | case DIDmsg_lnxreq_hostwep:{ | 157 | case DIDmsg_lnxreq_hostwep:{ |
158 | p80211msg_lnxreq_hostwep_t *req = | 158 | struct p80211msg_lnxreq_hostwep *req = |
159 | (p80211msg_lnxreq_hostwep_t *) msg; | 159 | (struct p80211msg_lnxreq_hostwep *) msg; |
160 | wlandev->hostwep &= | 160 | wlandev->hostwep &= |
161 | ~(HOSTWEP_DECRYPT | HOSTWEP_ENCRYPT); | 161 | ~(HOSTWEP_DECRYPT | HOSTWEP_ENCRYPT); |
162 | if (req->decrypt.data == P80211ENUM_truth_true) | 162 | if (req->decrypt.data == P80211ENUM_truth_true) |
@@ -169,8 +169,8 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, p80211msg_t *msg) | |||
169 | case DIDmsg_dot11req_mibget: | 169 | case DIDmsg_dot11req_mibget: |
170 | case DIDmsg_dot11req_mibset:{ | 170 | case DIDmsg_dot11req_mibset:{ |
171 | int isget = (msg->msgcode == DIDmsg_dot11req_mibget); | 171 | int isget = (msg->msgcode == DIDmsg_dot11req_mibget); |
172 | p80211msg_dot11req_mibget_t *mib_msg = | 172 | struct p80211msg_dot11req_mibget *mib_msg = |
173 | (p80211msg_dot11req_mibget_t *) msg; | 173 | (struct p80211msg_dot11req_mibget *) msg; |
174 | p80211req_mibset_mibget(wlandev, mib_msg, isget); | 174 | p80211req_mibset_mibget(wlandev, mib_msg, isget); |
175 | } | 175 | } |
176 | default: | 176 | default: |
@@ -181,7 +181,7 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, p80211msg_t *msg) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | static int p80211req_mibset_mibget(wlandevice_t *wlandev, | 183 | static int p80211req_mibset_mibget(wlandevice_t *wlandev, |
184 | p80211msg_dot11req_mibget_t *mib_msg, | 184 | struct p80211msg_dot11req_mibget *mib_msg, |
185 | int isget) | 185 | int isget) |
186 | { | 186 | { |
187 | p80211itemd_t *mibitem = (p80211itemd_t *) mib_msg->mibattribute.data; | 187 | p80211itemd_t *mibitem = (p80211itemd_t *) mib_msg->mibattribute.data; |
diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index f8fe17f4e188..5b97c4afa2ac 100644 --- a/drivers/staging/wlan-ng/prism2fw.c +++ b/drivers/staging/wlan-ng/prism2fw.c | |||
@@ -239,7 +239,7 @@ int prism2_fwtry(struct usb_device *udev, wlandevice_t *wlandev) | |||
239 | int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev) | 239 | int prism2_fwapply(const struct ihex_binrec *rfptr, wlandevice_t *wlandev) |
240 | { | 240 | { |
241 | signed int result = 0; | 241 | signed int result = 0; |
242 | p80211msg_dot11req_mibget_t getmsg; | 242 | struct p80211msg_dot11req_mibget getmsg; |
243 | p80211itemd_t *item; | 243 | p80211itemd_t *item; |
244 | u32 *data; | 244 | u32 *data; |
245 | 245 | ||
@@ -766,7 +766,7 @@ int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, | |||
766 | int read_cardpda(struct pda *pda, wlandevice_t *wlandev) | 766 | int read_cardpda(struct pda *pda, wlandevice_t *wlandev) |
767 | { | 767 | { |
768 | int result = 0; | 768 | int result = 0; |
769 | p80211msg_p2req_readpda_t msg; | 769 | struct p80211msg_p2req_readpda msg; |
770 | 770 | ||
771 | /* set up the msg */ | 771 | /* set up the msg */ |
772 | msg.msgcode = DIDmsg_p2req_readpda; | 772 | msg.msgcode = DIDmsg_p2req_readpda; |
@@ -981,8 +981,8 @@ int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, | |||
981 | unsigned int nfchunks) | 981 | unsigned int nfchunks) |
982 | { | 982 | { |
983 | int result = 0; | 983 | int result = 0; |
984 | p80211msg_p2req_ramdl_state_t rstatemsg; | 984 | struct p80211msg_p2req_ramdl_state rstatemsg; |
985 | p80211msg_p2req_ramdl_write_t rwritemsg; | 985 | struct p80211msg_p2req_ramdl_write rwritemsg; |
986 | p80211msg_t *msgp; | 986 | p80211msg_t *msgp; |
987 | u32 resultcode; | 987 | u32 resultcode; |
988 | int i; | 988 | int i; |
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index ef23f8b1454f..04514a85d101 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c +++ b/drivers/staging/wlan-ng/prism2mgmt.c | |||
@@ -117,7 +117,7 @@ int prism2mgmt_scan(wlandevice_t *wlandev, void *msgp) | |||
117 | { | 117 | { |
118 | int result = 0; | 118 | int result = 0; |
119 | hfa384x_t *hw = wlandev->priv; | 119 | hfa384x_t *hw = wlandev->priv; |
120 | p80211msg_dot11req_scan_t *msg = msgp; | 120 | struct p80211msg_dot11req_scan *msg = msgp; |
121 | u16 roamingmode, word; | 121 | u16 roamingmode, word; |
122 | int i, timeout; | 122 | int i, timeout; |
123 | int istmpenable = 0; | 123 | int istmpenable = 0; |
@@ -361,13 +361,13 @@ exit: | |||
361 | int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp) | 361 | int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp) |
362 | { | 362 | { |
363 | int result = 0; | 363 | int result = 0; |
364 | p80211msg_dot11req_scan_results_t *req; | 364 | struct p80211msg_dot11req_scan_results *req; |
365 | hfa384x_t *hw = wlandev->priv; | 365 | hfa384x_t *hw = wlandev->priv; |
366 | hfa384x_HScanResultSub_t *item = NULL; | 366 | hfa384x_HScanResultSub_t *item = NULL; |
367 | 367 | ||
368 | int count; | 368 | int count; |
369 | 369 | ||
370 | req = (p80211msg_dot11req_scan_results_t *) msgp; | 370 | req = (struct p80211msg_dot11req_scan_results *) msgp; |
371 | 371 | ||
372 | req->resultcode.status = P80211ENUM_msgitem_status_data_ok; | 372 | req->resultcode.status = P80211ENUM_msgitem_status_data_ok; |
373 | 373 | ||
@@ -513,7 +513,7 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp) | |||
513 | { | 513 | { |
514 | int result = 0; | 514 | int result = 0; |
515 | hfa384x_t *hw = wlandev->priv; | 515 | hfa384x_t *hw = wlandev->priv; |
516 | p80211msg_dot11req_start_t *msg = msgp; | 516 | struct p80211msg_dot11req_start *msg = msgp; |
517 | 517 | ||
518 | p80211pstrd_t *pstr; | 518 | p80211pstrd_t *pstr; |
519 | u8 bytebuf[80]; | 519 | u8 bytebuf[80]; |
@@ -689,7 +689,7 @@ done: | |||
689 | int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp) | 689 | int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp) |
690 | { | 690 | { |
691 | hfa384x_t *hw = wlandev->priv; | 691 | hfa384x_t *hw = wlandev->priv; |
692 | p80211msg_p2req_readpda_t *msg = msgp; | 692 | struct p80211msg_p2req_readpda *msg = msgp; |
693 | int result; | 693 | int result; |
694 | 694 | ||
695 | /* We only support collecting the PDA when in the FWLOAD | 695 | /* We only support collecting the PDA when in the FWLOAD |
@@ -755,7 +755,7 @@ int prism2mgmt_readpda(wlandevice_t *wlandev, void *msgp) | |||
755 | int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp) | 755 | int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp) |
756 | { | 756 | { |
757 | hfa384x_t *hw = wlandev->priv; | 757 | hfa384x_t *hw = wlandev->priv; |
758 | p80211msg_p2req_ramdl_state_t *msg = msgp; | 758 | struct p80211msg_p2req_ramdl_state *msg = msgp; |
759 | 759 | ||
760 | if (wlandev->msdstate != WLAN_MSD_FWLOAD) { | 760 | if (wlandev->msdstate != WLAN_MSD_FWLOAD) { |
761 | printk(KERN_ERR | 761 | printk(KERN_ERR |
@@ -811,7 +811,7 @@ int prism2mgmt_ramdl_state(wlandevice_t *wlandev, void *msgp) | |||
811 | int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp) | 811 | int prism2mgmt_ramdl_write(wlandevice_t *wlandev, void *msgp) |
812 | { | 812 | { |
813 | hfa384x_t *hw = wlandev->priv; | 813 | hfa384x_t *hw = wlandev->priv; |
814 | p80211msg_p2req_ramdl_write_t *msg = msgp; | 814 | struct p80211msg_p2req_ramdl_write *msg = msgp; |
815 | u32 addr; | 815 | u32 addr; |
816 | u32 len; | 816 | u32 len; |
817 | u8 *buf; | 817 | u8 *buf; |
@@ -874,7 +874,7 @@ int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp) | |||
874 | { | 874 | { |
875 | int result = 0; | 875 | int result = 0; |
876 | hfa384x_t *hw = wlandev->priv; | 876 | hfa384x_t *hw = wlandev->priv; |
877 | p80211msg_p2req_flashdl_state_t *msg = msgp; | 877 | struct p80211msg_p2req_flashdl_state *msg = msgp; |
878 | 878 | ||
879 | if (wlandev->msdstate != WLAN_MSD_FWLOAD) { | 879 | if (wlandev->msdstate != WLAN_MSD_FWLOAD) { |
880 | printk(KERN_ERR | 880 | printk(KERN_ERR |
@@ -944,7 +944,7 @@ int prism2mgmt_flashdl_state(wlandevice_t *wlandev, void *msgp) | |||
944 | int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp) | 944 | int prism2mgmt_flashdl_write(wlandevice_t *wlandev, void *msgp) |
945 | { | 945 | { |
946 | hfa384x_t *hw = wlandev->priv; | 946 | hfa384x_t *hw = wlandev->priv; |
947 | p80211msg_p2req_flashdl_write_t *msg = msgp; | 947 | struct p80211msg_p2req_flashdl_write *msg = msgp; |
948 | u32 addr; | 948 | u32 addr; |
949 | u32 len; | 949 | u32 len; |
950 | u8 *buf; | 950 | u8 *buf; |
@@ -1008,7 +1008,7 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp) | |||
1008 | int result = 0; | 1008 | int result = 0; |
1009 | u16 reg; | 1009 | u16 reg; |
1010 | u16 port_type; | 1010 | u16 port_type; |
1011 | p80211msg_lnxreq_autojoin_t *msg = msgp; | 1011 | struct p80211msg_lnxreq_autojoin *msg = msgp; |
1012 | p80211pstrd_t *pstr; | 1012 | p80211pstrd_t *pstr; |
1013 | u8 bytebuf[256]; | 1013 | u8 bytebuf[256]; |
1014 | hfa384x_bytestr_t *p2bytestr = (hfa384x_bytestr_t *) bytebuf; | 1014 | hfa384x_bytestr_t *p2bytestr = (hfa384x_bytestr_t *) bytebuf; |
@@ -1076,7 +1076,7 @@ int prism2mgmt_autojoin(wlandevice_t *wlandev, void *msgp) | |||
1076 | int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) | 1076 | int prism2mgmt_wlansniff(wlandevice_t *wlandev, void *msgp) |
1077 | { | 1077 | { |
1078 | int result = 0; | 1078 | int result = 0; |
1079 | p80211msg_lnxreq_wlansniff_t *msg = msgp; | 1079 | struct p80211msg_lnxreq_wlansniff *msg = msgp; |
1080 | 1080 | ||
1081 | hfa384x_t *hw = wlandev->priv; | 1081 | hfa384x_t *hw = wlandev->priv; |
1082 | u16 word; | 1082 | u16 word; |
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c index 0b0ec9c59a5d..d3a06fa0b4f6 100644 --- a/drivers/staging/wlan-ng/prism2mib.c +++ b/drivers/staging/wlan-ng/prism2mib.c | |||
@@ -79,7 +79,7 @@ | |||
79 | #define F_READ 0x2 /* MIB may be read. */ | 79 | #define F_READ 0x2 /* MIB may be read. */ |
80 | #define F_WRITE 0x4 /* MIB may be written. */ | 80 | #define F_WRITE 0x4 /* MIB may be written. */ |
81 | 81 | ||
82 | typedef struct mibrec { | 82 | struct mibrec { |
83 | u32 did; | 83 | u32 did; |
84 | u16 flag; | 84 | u16 flag; |
85 | u16 parm1; | 85 | u16 parm1; |
@@ -89,63 +89,63 @@ typedef struct mibrec { | |||
89 | int isget, | 89 | int isget, |
90 | wlandevice_t *wlandev, | 90 | wlandevice_t *wlandev, |
91 | hfa384x_t *hw, | 91 | hfa384x_t *hw, |
92 | p80211msg_dot11req_mibset_t *msg, void *data); | 92 | struct p80211msg_dot11req_mibset *msg, void *data); |
93 | } mibrec_t; | 93 | }; |
94 | 94 | ||
95 | static int prism2mib_bytearea2pstr(mibrec_t *mib, | 95 | static int prism2mib_bytearea2pstr(struct mibrec *mib, |
96 | int isget, | 96 | int isget, |
97 | wlandevice_t *wlandev, | 97 | wlandevice_t *wlandev, |
98 | hfa384x_t *hw, | 98 | hfa384x_t *hw, |
99 | p80211msg_dot11req_mibset_t *msg, | 99 | struct p80211msg_dot11req_mibset *msg, |
100 | void *data); | 100 | void *data); |
101 | 101 | ||
102 | static int prism2mib_uint32(mibrec_t *mib, | 102 | static int prism2mib_uint32(struct mibrec *mib, |
103 | int isget, | 103 | int isget, |
104 | wlandevice_t *wlandev, | 104 | wlandevice_t *wlandev, |
105 | hfa384x_t *hw, | 105 | hfa384x_t *hw, |
106 | p80211msg_dot11req_mibset_t *msg, void *data); | 106 | struct p80211msg_dot11req_mibset *msg, void *data); |
107 | 107 | ||
108 | static int prism2mib_flag(mibrec_t *mib, | 108 | static int prism2mib_flag(struct mibrec *mib, |
109 | int isget, | 109 | int isget, |
110 | wlandevice_t *wlandev, | 110 | wlandevice_t *wlandev, |
111 | hfa384x_t *hw, | 111 | hfa384x_t *hw, |
112 | p80211msg_dot11req_mibset_t *msg, void *data); | 112 | struct p80211msg_dot11req_mibset *msg, void *data); |
113 | 113 | ||
114 | static int prism2mib_wepdefaultkey(mibrec_t *mib, | 114 | static int prism2mib_wepdefaultkey(struct mibrec *mib, |
115 | int isget, | 115 | int isget, |
116 | wlandevice_t *wlandev, | 116 | wlandevice_t *wlandev, |
117 | hfa384x_t *hw, | 117 | hfa384x_t *hw, |
118 | p80211msg_dot11req_mibset_t *msg, | 118 | struct p80211msg_dot11req_mibset *msg, |
119 | void *data); | 119 | void *data); |
120 | 120 | ||
121 | static int prism2mib_privacyinvoked(mibrec_t *mib, | 121 | static int prism2mib_privacyinvoked(struct mibrec *mib, |
122 | int isget, | 122 | int isget, |
123 | wlandevice_t *wlandev, | 123 | wlandevice_t *wlandev, |
124 | hfa384x_t *hw, | 124 | hfa384x_t *hw, |
125 | p80211msg_dot11req_mibset_t *msg, | 125 | struct p80211msg_dot11req_mibset *msg, |
126 | void *data); | 126 | void *data); |
127 | 127 | ||
128 | static int prism2mib_excludeunencrypted(mibrec_t *mib, | 128 | static int prism2mib_excludeunencrypted(struct mibrec *mib, |
129 | int isget, | 129 | int isget, |
130 | wlandevice_t *wlandev, | 130 | wlandevice_t *wlandev, |
131 | hfa384x_t *hw, | 131 | hfa384x_t *hw, |
132 | p80211msg_dot11req_mibset_t *msg, | 132 | struct p80211msg_dot11req_mibset *msg, |
133 | void *data); | 133 | void *data); |
134 | 134 | ||
135 | static int prism2mib_fragmentationthreshold(mibrec_t *mib, | 135 | static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
136 | int isget, | 136 | int isget, |
137 | wlandevice_t *wlandev, | 137 | wlandevice_t *wlandev, |
138 | hfa384x_t *hw, | 138 | hfa384x_t *hw, |
139 | p80211msg_dot11req_mibset_t *msg, | 139 | struct p80211msg_dot11req_mibset *msg, |
140 | void *data); | 140 | void *data); |
141 | 141 | ||
142 | static int prism2mib_priv(mibrec_t *mib, | 142 | static int prism2mib_priv(struct mibrec *mib, |
143 | int isget, | 143 | int isget, |
144 | wlandevice_t *wlandev, | 144 | wlandevice_t *wlandev, |
145 | hfa384x_t *hw, | 145 | hfa384x_t *hw, |
146 | p80211msg_dot11req_mibset_t *msg, void *data); | 146 | struct p80211msg_dot11req_mibset *msg, void *data); |
147 | 147 | ||
148 | static mibrec_t mibtab[] = { | 148 | static struct mibrec mibtab[] = { |
149 | 149 | ||
150 | /* dot11smt MIB's */ | 150 | /* dot11smt MIB's */ |
151 | {DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey0, | 151 | {DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey0, |
@@ -261,11 +261,11 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp) | |||
261 | { | 261 | { |
262 | hfa384x_t *hw = wlandev->priv; | 262 | hfa384x_t *hw = wlandev->priv; |
263 | int result, isget; | 263 | int result, isget; |
264 | mibrec_t *mib; | 264 | struct mibrec *mib; |
265 | 265 | ||
266 | u16 which; | 266 | u16 which; |
267 | 267 | ||
268 | p80211msg_dot11req_mibset_t *msg = msgp; | 268 | struct p80211msg_dot11req_mibset *msg = msgp; |
269 | p80211itemd_t *mibitem; | 269 | p80211itemd_t *mibitem; |
270 | 270 | ||
271 | msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; | 271 | msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; |
@@ -371,11 +371,11 @@ done: | |||
371 | * | 371 | * |
372 | ----------------------------------------------------------------*/ | 372 | ----------------------------------------------------------------*/ |
373 | 373 | ||
374 | static int prism2mib_bytearea2pstr(mibrec_t *mib, | 374 | static int prism2mib_bytearea2pstr(struct mibrec *mib, |
375 | int isget, | 375 | int isget, |
376 | wlandevice_t *wlandev, | 376 | wlandevice_t *wlandev, |
377 | hfa384x_t *hw, | 377 | hfa384x_t *hw, |
378 | p80211msg_dot11req_mibset_t *msg, | 378 | struct p80211msg_dot11req_mibset *msg, |
379 | void *data) | 379 | void *data) |
380 | { | 380 | { |
381 | int result; | 381 | int result; |
@@ -421,11 +421,11 @@ static int prism2mib_bytearea2pstr(mibrec_t *mib, | |||
421 | * | 421 | * |
422 | ----------------------------------------------------------------*/ | 422 | ----------------------------------------------------------------*/ |
423 | 423 | ||
424 | static int prism2mib_uint32(mibrec_t *mib, | 424 | static int prism2mib_uint32(struct mibrec *mib, |
425 | int isget, | 425 | int isget, |
426 | wlandevice_t *wlandev, | 426 | wlandevice_t *wlandev, |
427 | hfa384x_t *hw, | 427 | hfa384x_t *hw, |
428 | p80211msg_dot11req_mibset_t *msg, void *data) | 428 | struct p80211msg_dot11req_mibset *msg, void *data) |
429 | { | 429 | { |
430 | int result; | 430 | int result; |
431 | u32 *uint32 = (u32 *) data; | 431 | u32 *uint32 = (u32 *) data; |
@@ -468,11 +468,11 @@ static int prism2mib_uint32(mibrec_t *mib, | |||
468 | * | 468 | * |
469 | ----------------------------------------------------------------*/ | 469 | ----------------------------------------------------------------*/ |
470 | 470 | ||
471 | static int prism2mib_flag(mibrec_t *mib, | 471 | static int prism2mib_flag(struct mibrec *mib, |
472 | int isget, | 472 | int isget, |
473 | wlandevice_t *wlandev, | 473 | wlandevice_t *wlandev, |
474 | hfa384x_t *hw, | 474 | hfa384x_t *hw, |
475 | p80211msg_dot11req_mibset_t *msg, void *data) | 475 | struct p80211msg_dot11req_mibset *msg, void *data) |
476 | { | 476 | { |
477 | int result; | 477 | int result; |
478 | u32 *uint32 = (u32 *) data; | 478 | u32 *uint32 = (u32 *) data; |
@@ -525,11 +525,11 @@ static int prism2mib_flag(mibrec_t *mib, | |||
525 | * | 525 | * |
526 | ----------------------------------------------------------------*/ | 526 | ----------------------------------------------------------------*/ |
527 | 527 | ||
528 | static int prism2mib_wepdefaultkey(mibrec_t *mib, | 528 | static int prism2mib_wepdefaultkey(struct mibrec *mib, |
529 | int isget, | 529 | int isget, |
530 | wlandevice_t *wlandev, | 530 | wlandevice_t *wlandev, |
531 | hfa384x_t *hw, | 531 | hfa384x_t *hw, |
532 | p80211msg_dot11req_mibset_t *msg, | 532 | struct p80211msg_dot11req_mibset *msg, |
533 | void *data) | 533 | void *data) |
534 | { | 534 | { |
535 | int result; | 535 | int result; |
@@ -575,11 +575,11 @@ static int prism2mib_wepdefaultkey(mibrec_t *mib, | |||
575 | * | 575 | * |
576 | ----------------------------------------------------------------*/ | 576 | ----------------------------------------------------------------*/ |
577 | 577 | ||
578 | static int prism2mib_privacyinvoked(mibrec_t *mib, | 578 | static int prism2mib_privacyinvoked(struct mibrec *mib, |
579 | int isget, | 579 | int isget, |
580 | wlandevice_t *wlandev, | 580 | wlandevice_t *wlandev, |
581 | hfa384x_t *hw, | 581 | hfa384x_t *hw, |
582 | p80211msg_dot11req_mibset_t *msg, | 582 | struct p80211msg_dot11req_mibset *msg, |
583 | void *data) | 583 | void *data) |
584 | { | 584 | { |
585 | int result; | 585 | int result; |
@@ -621,11 +621,11 @@ static int prism2mib_privacyinvoked(mibrec_t *mib, | |||
621 | * | 621 | * |
622 | ----------------------------------------------------------------*/ | 622 | ----------------------------------------------------------------*/ |
623 | 623 | ||
624 | static int prism2mib_excludeunencrypted(mibrec_t *mib, | 624 | static int prism2mib_excludeunencrypted(struct mibrec *mib, |
625 | int isget, | 625 | int isget, |
626 | wlandevice_t *wlandev, | 626 | wlandevice_t *wlandev, |
627 | hfa384x_t *hw, | 627 | hfa384x_t *hw, |
628 | p80211msg_dot11req_mibset_t *msg, | 628 | struct p80211msg_dot11req_mibset *msg, |
629 | void *data) | 629 | void *data) |
630 | { | 630 | { |
631 | int result; | 631 | int result; |
@@ -660,11 +660,11 @@ static int prism2mib_excludeunencrypted(mibrec_t *mib, | |||
660 | * | 660 | * |
661 | ----------------------------------------------------------------*/ | 661 | ----------------------------------------------------------------*/ |
662 | 662 | ||
663 | static int prism2mib_fragmentationthreshold(mibrec_t *mib, | 663 | static int prism2mib_fragmentationthreshold(struct mibrec *mib, |
664 | int isget, | 664 | int isget, |
665 | wlandevice_t *wlandev, | 665 | wlandevice_t *wlandev, |
666 | hfa384x_t *hw, | 666 | hfa384x_t *hw, |
667 | p80211msg_dot11req_mibset_t *msg, | 667 | struct p80211msg_dot11req_mibset *msg, |
668 | void *data) | 668 | void *data) |
669 | { | 669 | { |
670 | int result; | 670 | int result; |
@@ -709,11 +709,11 @@ static int prism2mib_fragmentationthreshold(mibrec_t *mib, | |||
709 | * | 709 | * |
710 | ----------------------------------------------------------------*/ | 710 | ----------------------------------------------------------------*/ |
711 | 711 | ||
712 | static int prism2mib_priv(mibrec_t *mib, | 712 | static int prism2mib_priv(struct mibrec *mib, |
713 | int isget, | 713 | int isget, |
714 | wlandevice_t *wlandev, | 714 | wlandevice_t *wlandev, |
715 | hfa384x_t *hw, | 715 | hfa384x_t *hw, |
716 | p80211msg_dot11req_mibset_t *msg, void *data) | 716 | struct p80211msg_dot11req_mibset *msg, void *data) |
717 | { | 717 | { |
718 | p80211pstrd_t *pstr = (p80211pstrd_t *) data; | 718 | p80211pstrd_t *pstr = (p80211pstrd_t *) data; |
719 | 719 | ||
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index 5ac6aa610649..e5c576899b97 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b/drivers/staging/wlan-ng/prism2sta.c | |||
@@ -366,9 +366,9 @@ static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg) | |||
366 | break; /* ignore me. */ | 366 | break; /* ignore me. */ |
367 | case DIDmsg_lnxreq_ifstate: | 367 | case DIDmsg_lnxreq_ifstate: |
368 | { | 368 | { |
369 | p80211msg_lnxreq_ifstate_t *ifstatemsg; | 369 | struct p80211msg_lnxreq_ifstate *ifstatemsg; |
370 | pr_debug("Received mlme ifstate request\n"); | 370 | pr_debug("Received mlme ifstate request\n"); |
371 | ifstatemsg = (p80211msg_lnxreq_ifstate_t *) msg; | 371 | ifstatemsg = (struct p80211msg_lnxreq_ifstate *) msg; |
372 | result = | 372 | result = |
373 | prism2sta_ifstate(wlandev, | 373 | prism2sta_ifstate(wlandev, |
374 | ifstatemsg->ifstate.data); | 374 | ifstatemsg->ifstate.data); |
@@ -387,11 +387,11 @@ static int prism2sta_mlmerequest(wlandevice_t *wlandev, p80211msg_t *msg) | |||
387 | result = prism2mgmt_autojoin(wlandev, msg); | 387 | result = prism2mgmt_autojoin(wlandev, msg); |
388 | break; | 388 | break; |
389 | case DIDmsg_lnxreq_commsquality:{ | 389 | case DIDmsg_lnxreq_commsquality:{ |
390 | p80211msg_lnxreq_commsquality_t *qualmsg; | 390 | struct p80211msg_lnxreq_commsquality *qualmsg; |
391 | 391 | ||
392 | pr_debug("Received commsquality request\n"); | 392 | pr_debug("Received commsquality request\n"); |
393 | 393 | ||
394 | qualmsg = (p80211msg_lnxreq_commsquality_t *) msg; | 394 | qualmsg = (struct p80211msg_lnxreq_commsquality *) msg; |
395 | 395 | ||
396 | qualmsg->link.status = | 396 | qualmsg->link.status = |
397 | P80211ENUM_msgitem_status_data_ok; | 397 | P80211ENUM_msgitem_status_data_ok; |
@@ -1987,8 +1987,9 @@ void prism2sta_commsqual_defer(struct work_struct *data) | |||
1987 | hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh); | 1987 | hfa384x_t *hw = container_of(data, struct hfa384x, commsqual_bh); |
1988 | wlandevice_t *wlandev = hw->wlandev; | 1988 | wlandevice_t *wlandev = hw->wlandev; |
1989 | hfa384x_bytestr32_t ssid; | 1989 | hfa384x_bytestr32_t ssid; |
1990 | p80211msg_dot11req_mibget_t msg; | 1990 | struct p80211msg_dot11req_mibget msg; |
1991 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data; | 1991 | p80211item_uint32_t *mibitem = (p80211item_uint32_t *) |
1992 | &msg.mibattribute.data; | ||
1992 | int result = 0; | 1993 | int result = 0; |
1993 | 1994 | ||
1994 | if (hw->wlandev->hwremoved) | 1995 | if (hw->wlandev->hwremoved) |
@@ -2020,7 +2021,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) | |||
2020 | /* Get the signal rate */ | 2021 | /* Get the signal rate */ |
2021 | msg.msgcode = DIDmsg_dot11req_mibget; | 2022 | msg.msgcode = DIDmsg_dot11req_mibget; |
2022 | mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate; | 2023 | mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate; |
2023 | result = p80211req_dorequest(wlandev, (u8 *) & msg); | 2024 | result = p80211req_dorequest(wlandev, (u8 *) &msg); |
2024 | 2025 | ||
2025 | if (result) { | 2026 | if (result) { |
2026 | pr_debug("get signal rate failed, result = %d\n", | 2027 | pr_debug("get signal rate failed, result = %d\n", |