forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/net/wireless/intel/ipw2x00/libipw.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Merged with mainline ieee80211.h in Aug 2004. Original ieee802_11
34 * remains copyright by the original authors
....@@ -12,11 +13,6 @@
1213 * Adaption to a generic IEEE 802.11 stack by James Ketrenos
1314 * <jketreno@linux.intel.com>
1415 * Copyright (c) 2004-2005, Intel Corporation
15
- *
16
- * This program is free software; you can redistribute it and/or modify
17
- * it under the terms of the GNU General Public License version 2 as
18
- * published by the Free Software Foundation. See README and COPYING for
19
- * more details.
2016 *
2117 * API Version History
2218 * 1.0.x -- Initial version
....@@ -64,8 +60,7 @@
6460 extern u32 libipw_debug_level;
6561 #define LIBIPW_DEBUG(level, fmt, args...) \
6662 do { if (libipw_debug_level & (level)) \
67
- printk(KERN_DEBUG "libipw: %c %s " fmt, \
68
- in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0)
63
+ printk(KERN_DEBUG "libipw: %s " fmt, __func__ , ## args); } while (0)
6964 #else
7065 #define LIBIPW_DEBUG(level, fmt, args...) do {} while (0)
7166 #endif /* CONFIG_LIBIPW_DEBUG */
....@@ -338,7 +333,7 @@
338333 __le16 frame_ctl;
339334 __le16 duration_id;
340335 u8 addr1[ETH_ALEN];
341
- u8 payload[0];
336
+ u8 payload[];
342337 } __packed;
343338
344339 struct libipw_hdr_2addr {
....@@ -346,7 +341,7 @@
346341 __le16 duration_id;
347342 u8 addr1[ETH_ALEN];
348343 u8 addr2[ETH_ALEN];
349
- u8 payload[0];
344
+ u8 payload[];
350345 } __packed;
351346
352347 struct libipw_hdr_3addr {
....@@ -356,7 +351,7 @@
356351 u8 addr2[ETH_ALEN];
357352 u8 addr3[ETH_ALEN];
358353 __le16 seq_ctl;
359
- u8 payload[0];
354
+ u8 payload[];
360355 } __packed;
361356
362357 struct libipw_hdr_4addr {
....@@ -367,7 +362,7 @@
367362 u8 addr3[ETH_ALEN];
368363 __le16 seq_ctl;
369364 u8 addr4[ETH_ALEN];
370
- u8 payload[0];
365
+ u8 payload[];
371366 } __packed;
372367
373368 struct libipw_hdr_3addrqos {
....@@ -384,7 +379,7 @@
384379 struct libipw_info_element {
385380 u8 id;
386381 u8 len;
387
- u8 data[0];
382
+ u8 data[];
388383 } __packed;
389384
390385 /*
....@@ -410,7 +405,7 @@
410405 __le16 transaction;
411406 __le16 status;
412407 /* challenge */
413
- struct libipw_info_element info_element[0];
408
+ struct libipw_info_element info_element[];
414409 } __packed;
415410
416411 struct libipw_channel_switch {
....@@ -446,7 +441,7 @@
446441 struct libipw_probe_request {
447442 struct libipw_hdr_3addr header;
448443 /* SSID, supported rates */
449
- struct libipw_info_element info_element[0];
444
+ struct libipw_info_element info_element[];
450445 } __packed;
451446
452447 struct libipw_probe_response {
....@@ -456,7 +451,7 @@
456451 __le16 capability;
457452 /* SSID, supported rates, FH params, DS params,
458453 * CF params, IBSS params, TIM (if beacon), RSN */
459
- struct libipw_info_element info_element[0];
454
+ struct libipw_info_element info_element[];
460455 } __packed;
461456
462457 /* Alias beacon for probe_response */
....@@ -467,7 +462,7 @@
467462 __le16 capability;
468463 __le16 listen_interval;
469464 /* SSID, supported rates, RSN */
470
- struct libipw_info_element info_element[0];
465
+ struct libipw_info_element info_element[];
471466 } __packed;
472467
473468 struct libipw_reassoc_request {
....@@ -475,7 +470,7 @@
475470 __le16 capability;
476471 __le16 listen_interval;
477472 u8 current_ap[ETH_ALEN];
478
- struct libipw_info_element info_element[0];
473
+ struct libipw_info_element info_element[];
479474 } __packed;
480475
481476 struct libipw_assoc_response {
....@@ -484,7 +479,7 @@
484479 __le16 status;
485480 __le16 aid;
486481 /* supported rates */
487
- struct libipw_info_element info_element[0];
482
+ struct libipw_info_element info_element[];
488483 } __packed;
489484
490485 struct libipw_txb {
....@@ -494,7 +489,7 @@
494489 u8 reserved;
495490 u16 frag_size;
496491 u16 payload_size;
497
- struct sk_buff *fragments[0];
492
+ struct sk_buff *fragments[];
498493 };
499494
500495 /* SWEEP TABLE ENTRIES NUMBER */
....@@ -598,7 +593,7 @@
598593 struct libipw_info_element ie;
599594 u8 owner[ETH_ALEN];
600595 u8 recovery_interval;
601
- struct libipw_channel_map channel_map[0];
596
+ struct libipw_channel_map channel_map[];
602597 };
603598
604599 struct libipw_csa {
....@@ -834,7 +829,7 @@
834829
835830 /* This must be the last item so that it points to the data
836831 * allocated beyond this structure by alloc_libipw */
837
- u8 priv[0];
832
+ u8 priv[];
838833 };
839834
840835 #define IEEE_A (1<<0)