.. | .. |
---|
355 | 355 | /* Commonly used basic types */ |
---|
356 | 356 | struct hfa384x_bytestr { |
---|
357 | 357 | __le16 len; |
---|
358 | | - u8 data[0]; |
---|
| 358 | + u8 data[]; |
---|
359 | 359 | } __packed; |
---|
360 | 360 | |
---|
361 | 361 | struct hfa384x_bytestr32 { |
---|
.. | .. |
---|
421 | 421 | /*-- Configuration Record: WPAData (data portion only) --*/ |
---|
422 | 422 | struct hfa384x_wpa_data { |
---|
423 | 423 | __le16 datalen; |
---|
424 | | - u8 data[0]; /* max 80 */ |
---|
| 424 | + u8 data[]; /* max 80 */ |
---|
425 | 425 | } __packed; |
---|
426 | 426 | |
---|
427 | 427 | /*-------------------------------------------------------------------- |
---|
.. | .. |
---|
1181 | 1181 | ctlx_cmdcb_t cmdcb; /* Async command callback */ |
---|
1182 | 1182 | ctlx_usercb_t usercb; /* Async user callback, */ |
---|
1183 | 1183 | void *usercb_data; /* at CTLX completion */ |
---|
1184 | | - |
---|
1185 | | - int variant; /* Identifies cmd variant */ |
---|
1186 | 1184 | }; |
---|
1187 | 1185 | |
---|
1188 | 1186 | struct hfa384x_usbctlxq { |
---|
.. | .. |
---|
1337 | 1335 | * interface |
---|
1338 | 1336 | */ |
---|
1339 | 1337 | |
---|
1340 | | - struct hfa384x_caplevel cap_act_sta_mfi; /* sta f/w to modem interface */ |
---|
| 1338 | + struct hfa384x_caplevel cap_act_sta_mfi; /* |
---|
| 1339 | + * sta f/w to modem interface |
---|
| 1340 | + */ |
---|
1341 | 1341 | |
---|
1342 | 1342 | struct hfa384x_caplevel cap_act_ap_cfi; /* |
---|
1343 | 1343 | * ap f/w to controller |
---|
.. | .. |
---|
1359 | 1359 | |
---|
1360 | 1360 | struct hfa384x_inf_frame *scanresults; |
---|
1361 | 1361 | |
---|
1362 | | - struct prism2sta_authlist authlist; /* Authenticated station list. */ |
---|
| 1362 | + struct prism2sta_authlist authlist; /* |
---|
| 1363 | + * Authenticated station list. |
---|
| 1364 | + */ |
---|
1363 | 1365 | unsigned int accessmode; /* Access mode. */ |
---|
1364 | 1366 | struct prism2sta_accesslist allow; /* Allowed station list. */ |
---|
1365 | 1367 | struct prism2sta_accesslist deny; /* Denied station list. */ |
---|
.. | .. |
---|
1369 | 1371 | void hfa384x_create(struct hfa384x *hw, struct usb_device *usb); |
---|
1370 | 1372 | void hfa384x_destroy(struct hfa384x *hw); |
---|
1371 | 1373 | |
---|
1372 | | -int |
---|
1373 | | -hfa384x_corereset(struct hfa384x *hw, int holdtime, int settletime, int genesis); |
---|
| 1374 | +int hfa384x_corereset(struct hfa384x *hw, int holdtime, int settletime, |
---|
| 1375 | + int genesis); |
---|
1374 | 1376 | int hfa384x_drvr_disable(struct hfa384x *hw, u16 macport); |
---|
1375 | 1377 | int hfa384x_drvr_enable(struct hfa384x *hw, u16 macport); |
---|
1376 | 1378 | int hfa384x_drvr_flashdl_enable(struct hfa384x *hw); |
---|
1377 | 1379 | int hfa384x_drvr_flashdl_disable(struct hfa384x *hw); |
---|
1378 | | -int hfa384x_drvr_flashdl_write(struct hfa384x *hw, u32 daddr, void *buf, u32 len); |
---|
| 1380 | +int hfa384x_drvr_flashdl_write(struct hfa384x *hw, u32 daddr, void *buf, |
---|
| 1381 | + u32 len); |
---|
1379 | 1382 | int hfa384x_drvr_getconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len); |
---|
1380 | 1383 | int hfa384x_drvr_ramdl_enable(struct hfa384x *hw, u32 exeaddr); |
---|
1381 | 1384 | int hfa384x_drvr_ramdl_disable(struct hfa384x *hw); |
---|
.. | .. |
---|
1383 | 1386 | int hfa384x_drvr_readpda(struct hfa384x *hw, void *buf, unsigned int len); |
---|
1384 | 1387 | int hfa384x_drvr_setconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len); |
---|
1385 | 1388 | |
---|
1386 | | -static inline int hfa384x_drvr_getconfig16(struct hfa384x *hw, u16 rid, void *val) |
---|
| 1389 | +static inline int |
---|
| 1390 | +hfa384x_drvr_getconfig16(struct hfa384x *hw, u16 rid, void *val) |
---|
1387 | 1391 | { |
---|
1388 | 1392 | int result = 0; |
---|
1389 | 1393 | |
---|