a02f8b7629
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.5 KiB
C
49 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* BT/WiFi coexistence request interface
|
|
*
|
|
* Copyright (c) 2022, Bestechnic (Beijing) Co., Ltd.
|
|
*
|
|
*/
|
|
#ifndef EPTA_REQUEST_H
|
|
#define EPTA_REQUEST_H
|
|
|
|
#include "linux/list.h"
|
|
#include "bes2600.h"
|
|
|
|
typedef enum {
|
|
BWIFI_STATUS_IDLE = 0,
|
|
BWIFI_STATUS_DISCONNECTING = 1,
|
|
BWIFI_STATUS_SCANNING = 2,
|
|
BWIFI_STATUS_CONNECTING = 3,
|
|
BWIFI_STATUS_WPS_CONNECTING = 4,
|
|
BWIFI_STATUS_CONNECTED = 5,
|
|
BWIFI_STATUS_DHCPING = 6,
|
|
BWIFI_STATUS_GOT_IP = 7,
|
|
/* Warning: don't change enum value above, it's aligned with fw */
|
|
|
|
BWIFI_STATUS_CONNECTING_5G = 8,
|
|
BWIFI_STATUS_CONNECTED_5G = 9,
|
|
BWIFI_STATUS_DISCONNECTED = 10,
|
|
BWIFI_STATUS_GOT_IP_5G = 11,
|
|
BWIFI_STATUS_SCANNING_5G = 12,
|
|
BWIFI_STATUS_SCANNING_COMP = 13,
|
|
} BWIFI_STATUS_T;
|
|
|
|
typedef enum {
|
|
COEX_TS_TYPE_BT,
|
|
COEX_TS_TYPE_WIFI,
|
|
} COEX_TS_TYPE_T;
|
|
|
|
typedef struct {
|
|
struct list_head node;
|
|
COEX_TS_TYPE_T type;
|
|
uint32_t value;
|
|
} COEX_WIFI_BT_TS_T;
|
|
|
|
void bbt_change_current_status(struct bes2600_common *hw_priv, uint32_t new_status);
|
|
void bwifi_change_current_status(struct bes2600_common *hw_priv, BWIFI_STATUS_T new_status);
|
|
void coex_wifi_bt_ts_thread_init(struct bes2600_common *hw_priv);
|
|
void coex_wifi_bt_ts_thread_deinit(struct bes2600_common *hw_priv);
|
|
void coex_calc_wifi_scan_time(uint32_t *min_chan, uint32_t *max_chan);
|
|
#endif /*EPTA_REQUEST_H*/ |