mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
Major updates: - Add Linux kernel 6.12-6.19 compatibility support - Add Linux 6.16 timer_container_of and wakelock API support - Add Debian 6.1.0-26 backport support - Fix Bluetooth firmware upload for chip_mcu_id == 1 (cache_mem_addr) - Add USB device ID 368b:8d81 support - Add AIC8800DW device support - Add TP-Link Archer TX1U Nano support (USB_VENDOR_ID_TENDA_V2:0x0110) - Add TENDA series device support (U2, U11, U11 PRO) - Add AIC8800FC_CUS4/5/6 series support - Add AIC8800M80_CUS7/8 series support - Add UGREEN AIC8800D80 adapter support - Fix CONFIG_USB_BT interface number check (allow 1 or 3 interfaces) - Update firmware files for all chip variants Device support: - AIC8800D80/D81/DC/DW series - AIC8800D80X2/D81X2/D89X2 series - AIC8800D80N/D80LN/D80WN/DLN/DWN series - TENDA U2/U11/U11 PRO/TX1U Nano adapters - Multiple OEM variants (FC_CUS1-6, M80_CUS1-8) Kernel compatibility: - Linux 3.10 - 6.19+ - Debian 6.1.0-26 with backported APIs - Ubuntu and other distributions Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
50 lines
992 B
C
50 lines
992 B
C
#define RWNX_FN_ENTRY_STR ">>> %s()\n", __func__
|
|
|
|
|
|
|
|
/* message levels */
|
|
#define LOGERROR 0x0001
|
|
#define LOGINFO 0x0002
|
|
#define LOGTRACE 0x0004
|
|
#define LOGDEBUG 0x0008
|
|
#define LOGDATA 0x0010
|
|
#define LOGSTEER 0x0020
|
|
#define LOGFW 0x0200
|
|
|
|
extern int aicwf_dbg_level;
|
|
void rwnx_data_dump(char* tag, void* data, unsigned long len);
|
|
|
|
#define AICWF_LOG "AICWFDBG("
|
|
|
|
#define AICWFDBG(level, args, arg...) \
|
|
do { \
|
|
if (aicwf_dbg_level & level) { \
|
|
printk(AICWF_LOG#level")\t" args, ##arg); \
|
|
} \
|
|
} while (0)
|
|
|
|
#define RWNX_DBG(fmt, ...) \
|
|
do { \
|
|
if (aicwf_dbg_level & LOGTRACE) { \
|
|
printk(AICWF_LOG"LOGTRACE)\t"fmt , ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
|
|
|
|
|
|
#if 0
|
|
#define RWNX_DBG(fmt, ...) \
|
|
do { \
|
|
if (aicwf_dbg_level & LOGTRACE) { \
|
|
printk(AICWF_LOG"LOGTRACE"")\t" fmt, ##__VA_ARGS__); \
|
|
} \
|
|
} while (0)
|
|
#define AICWFDBG(args, level) \
|
|
do { \
|
|
if (aicwf_dbg_level & level) { \
|
|
printk(AICWF_LOG"(%s)\t" ,#level); \
|
|
printf args; \
|
|
} \
|
|
} while (0)
|
|
#endif
|