8dd79199f8
The bes2600 driver is a fork of the upstream cw1200 driver
(drivers/net/wireless/st/cw1200/, ST-Ericsson, Dmitry Tarnyagin
2010-2011). The fork's file headers have three GPL-compliance issues:
1. NO SPDX-License-Identifier on any of 48 source files (cw1200
mainline has them on all 25). kernel.org-mandated since 2017.
2. Original "Copyright (c) 2010, ST-Ericsson" lines stripped from
all files inherited from cw1200, replaced with
"Copyright (c) 2010, Bestechnic" — factually impossible
(Bestechnic did not author the 2010 work) and a GPL-2.0 §1
attribution-preservation violation.
3. The "GPL version 2 as published by the Free Software Foundation"
boilerplate paragraph is redundant alongside SPDX and is the
legacy form modern kernel sources have replaced.
This patch corrects all three for the 48 .c/.h files in bes2600/:
- Adds `// SPDX-License-Identifier: GPL-2.0-only` (or `/* ... */`
for headers) as line 1 of every file.
- Restores `Copyright (c) 2010, ST-Ericsson` + `Author: Dmitry
Tarnyagin <dmitry.tarnyagin@lockless.no>` as the FIRST copyright
chain entry on all 22 files derived from cw1200 (bh.{c,h},
debug.{c,h}, fwio.{c,h}, hwio.{c,h}, main.c, pm.{c,h},
queue.{c,h}, scan.{c,h}, sta.{c,h}, txrx.{c,h}, wsm.{c,h}).
- Keeps `Copyright (c) 2022, Bestechnic (Beijing) Co., Ltd.` as
the SECOND chain entry where Bestechnic genuinely contributed.
- Notes "Derived from cw1200_sdio.c" + ST-Ericsson copyright on
bes2600_sdio.c (heavy derivation, not a literal rename).
- Notes "Replaces hwbus.h from cw1200/" + ST-Ericsson copyright
on sbus.h.
- Preserves the prism54/islsm authorship chain on main.c and
bes2600.h (Michael Wu 2006 + Jean-Baptiste Note 2004-2006).
- Drops the GPL-2.0 boilerplate paragraph in favour of SPDX.
No code changes — only file-header comment blocks. Module build is
unaffected (verified by header-only diff scope).
This is a prerequisite for any kernel.org submission attempt. The
existing MODULE_LICENSE("GPL") + MODULE_AUTHOR(Tarnyagin@stericsson.com)
declarations were already present and are unchanged here; the
mismatch between MODULE_AUTHOR and the (since-corrected) per-file
copyrights is now resolved.
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Firmware I/O interface for BES2600 mac80211 driver
|
|
*
|
|
* Copyright (c) 2010, ST-Ericsson
|
|
* Author: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no>
|
|
*
|
|
* Copyright (c) 2022, Bestechnic (Beijing) Co., Ltd.
|
|
*
|
|
*/
|
|
#ifndef FWIO_H_INCLUDED
|
|
#define FWIO_H_INCLUDED
|
|
|
|
#define FIRMWARE_1250_CUT11 ("wsm_5011.bin")
|
|
#define FIRMWARE_CUT22 ("wsm_22.bin")
|
|
#define FIRMWARE_CUT20 ("wsm_20.bin")
|
|
#define FIRMWARE_CUT11 ("wsm_11.bin")
|
|
#define FIRMWARE_CUT10 ("wsm_10.bin")
|
|
#if defined(BES2600_DETECTION_LOGIC)
|
|
#define FIRMWARE_1260_CUT10 ("wsm_6010.bin")
|
|
#endif
|
|
#define SDD_FILE_1250_11 ("sdd_5011.bin")
|
|
#define SDD_FILE_22 ("sdd_22.bin")
|
|
#define SDD_FILE_20 ("sdd_20.bin")
|
|
#define SDD_FILE_11 ("sdd_11.bin")
|
|
#define SDD_FILE_10 ("sdd_10.bin")
|
|
#if defined(BES2600_DETECTION_LOGIC)
|
|
#define SDD_FILE_1260_10 ("sdd_6010.bin")
|
|
#endif
|
|
#if defined(BES2600_DETECTION_LOGIC)
|
|
#define BOOTLOADER_FILE_1260 ("bootloader_1260.bin")
|
|
#endif
|
|
|
|
#define BES2600_HW_REV_CUT10 (10)
|
|
#define BES2600_HW_REV_CUT11 (11)
|
|
#define BES2600_HW_REV_CUT20 (20)
|
|
#define BES2600_HW_REV_CUT22 (22)
|
|
#define CW1250_HW_REV_CUT10 (110)
|
|
#define CW1250_HW_REV_CUT11 (5011)
|
|
#if defined(BES2600_DETECTION_LOGIC)
|
|
#define BES2600_HW_REV_CUT10 (6010)
|
|
#endif
|
|
struct sbus_ops;
|
|
struct sbus_priv;
|
|
|
|
int bes2600_load_firmware(struct sbus_ops *ops, struct sbus_priv *priv);
|
|
|
|
#endif
|