forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/staging/wlan-ng/hfa384x.h
....@@ -355,7 +355,7 @@
355355 /* Commonly used basic types */
356356 struct hfa384x_bytestr {
357357 __le16 len;
358
- u8 data[0];
358
+ u8 data[];
359359 } __packed;
360360
361361 struct hfa384x_bytestr32 {
....@@ -421,7 +421,7 @@
421421 /*-- Configuration Record: WPAData (data portion only) --*/
422422 struct hfa384x_wpa_data {
423423 __le16 datalen;
424
- u8 data[0]; /* max 80 */
424
+ u8 data[]; /* max 80 */
425425 } __packed;
426426
427427 /*--------------------------------------------------------------------
....@@ -1181,8 +1181,6 @@
11811181 ctlx_cmdcb_t cmdcb; /* Async command callback */
11821182 ctlx_usercb_t usercb; /* Async user callback, */
11831183 void *usercb_data; /* at CTLX completion */
1184
-
1185
- int variant; /* Identifies cmd variant */
11861184 };
11871185
11881186 struct hfa384x_usbctlxq {
....@@ -1337,7 +1335,9 @@
13371335 * interface
13381336 */
13391337
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
+ */
13411341
13421342 struct hfa384x_caplevel cap_act_ap_cfi; /*
13431343 * ap f/w to controller
....@@ -1359,7 +1359,9 @@
13591359
13601360 struct hfa384x_inf_frame *scanresults;
13611361
1362
- struct prism2sta_authlist authlist; /* Authenticated station list. */
1362
+ struct prism2sta_authlist authlist; /*
1363
+ * Authenticated station list.
1364
+ */
13631365 unsigned int accessmode; /* Access mode. */
13641366 struct prism2sta_accesslist allow; /* Allowed station list. */
13651367 struct prism2sta_accesslist deny; /* Denied station list. */
....@@ -1369,13 +1371,14 @@
13691371 void hfa384x_create(struct hfa384x *hw, struct usb_device *usb);
13701372 void hfa384x_destroy(struct hfa384x *hw);
13711373
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);
13741376 int hfa384x_drvr_disable(struct hfa384x *hw, u16 macport);
13751377 int hfa384x_drvr_enable(struct hfa384x *hw, u16 macport);
13761378 int hfa384x_drvr_flashdl_enable(struct hfa384x *hw);
13771379 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);
13791382 int hfa384x_drvr_getconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len);
13801383 int hfa384x_drvr_ramdl_enable(struct hfa384x *hw, u32 exeaddr);
13811384 int hfa384x_drvr_ramdl_disable(struct hfa384x *hw);
....@@ -1383,7 +1386,8 @@
13831386 int hfa384x_drvr_readpda(struct hfa384x *hw, void *buf, unsigned int len);
13841387 int hfa384x_drvr_setconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len);
13851388
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)
13871391 {
13881392 int result = 0;
13891393