Git Product home page Git Product logo

rtl8723du's People

Contributors

charlesterrell avatar int-index avatar jaz303 avatar lwfinger avatar mansr avatar sndwvs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8723du's Issues

make error

I'm getting the same error as "make error on Rocky Linux #17". I'm not using Rocky but almost the same. I'm using Almalinux.

/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1855:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1855:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/brian/rtl8723du/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1577: module/home/brian/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'
make: *** [Makefile:2466: modules] Error 2

You asked for output on the other issue -- here's the output for mine:

[brian@N0DBH rtl8723du]$ find /usr/src/ -name netdevice.h
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/uapi/linux/netdevice.h
[brian@N0DBH rtl8723du]$ grep -a 3 ndo_select_queue /usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h
grep: ndo_select_queue: No such file or directory
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Version: @(#)dev.h 1.0.10 08/12/93
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Moved to /usr/include/linux for NET3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:# define LL_MAX_HEADER 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define NETDEV_HW_ADDR_T_SLAVE 3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(3, int defer_hard_irqs_count)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Each entry is a 32bit value. Upper part is the high-order bits
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * For example, if 64 CPUs are possible, rps_cpu_mask = 0x3f,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * meaning we use 32-6=26 bits for the hash.
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 ents[0] ____cacheline_aligned_in_smp;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:extern u32 rps_cpu_mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 hash)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 val = hash & ~rps_cpu_mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define MAX_PHYS_ITEM_ID_LEN 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: TC_SETUP_CLSU32,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flags;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 start_offload_tcp_sn);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: struct sock *sk, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 3. Update dev->stats asynchronously and atomically, and define
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * u16 rxq_index, u32 flow_id);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * struct net_device *dev, u32 filter_mask,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int queue_index, u32 maxrate);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int (*ndo_xsk_wakeup)(struct net_device *dev, u32 queue_id, u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flow_id);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 pid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 filter_mask,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 maxrate);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flags))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 queue_id, u32 flags))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(3, int (*ndo_fdb_get)(struct sk_buff *skb,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u16 vid, u32 portid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(13)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(23)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(30)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(31)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(32)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(33)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(34)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(35)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(36)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(37)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(38)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(39)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(43)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_MASTER: device is an L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_SLAVE: device is enslaved to an L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_RX_HANDLER: only invoke the rx handler of L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_ISATAP = 1<<3,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_TEAM_PORT = 1<<13,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_MASTER = 1<<18,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_SLAVE = 1<<21,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_RXFH_CONFIGURED = 1<<23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_RX_HANDLER = 1<<29,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_TX_SKB_NO_LINEAR = 1<<31,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_MASTER IFF_L3MDEV_MASTER
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_SLAVE IFF_L3MDEV_SLAVE
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_RX_HANDLER IFF_L3MDEV_RX_HANDLER
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @operstate: RFC2863 operstate
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#ifdef CONFIG_NET_L3_MASTER_DEV
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: const struct l3mdev_ops *l3mdev_ops;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * and is not intended for 3rd party consumption
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define GSO_MAX_SIZE 65536
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define GSO_MAX_SEGS 65535
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(2, 3, struct list_head net_notifier_list)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(13)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(23)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(30)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define NETDEV_ALIGN 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u8 csum_cnt:3;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_L34,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_L23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_E23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_E34,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 mtu;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: int fd, int expected_fd, u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:u32 dev_xdp_prog_id(struct net_device dev, enum bpf_xdp_mode mode);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: const u32 vlan_hdr_len = 4; /
VLAN_HLEN /
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Mark device as dormant (as per RFC2863).
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Mark device as under test (as per RFC2863).
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:/
Both ethtool_ops interface and internal driver implementation use u32 */
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static_assert(NETIF_MSG_CLASS_COUNT <= 32);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define __NETIF_MSG_BIT(bit) ((u32)1 << (bit))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:int skb_crc32c_csum_help(struct sk_buff *skb);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_has_l3_rx_handler(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_RX_HANDLER;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_is_l3_master(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_MASTER;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_is_l3_slave(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_SLAVE;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(3, 4)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 0001 802.3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 8035 RARP
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 8137 IPX

Error: While installing on EndeavourOS

Error when installing on EndeavourOS(Arch)

[arboygo@arboygo-pc rtl8723du]$ sudo make install
[sudo] password for arboygo: 
/bin/sh: line 1: bc: command not found
/bin/sh: line 1: echo: write error: Broken pipe
Makefile:2541: warning: overriding recipe for target 'sign'
Makefile:2476: warning: ignoring old recipe for target 'sign'
install -p -m 644 8723du.ko  /lib/modules/6.1.3-arch1-1/kernel/drivers/net/wireless/
/sbin/depmod -a 6.1.3-arch1-1
[arboygo@arboygo-pc rtl8723du]$ sudo modprobe -rv 8723du 
[arboygo@arboygo-pc rtl8723du]$ sudo modprobe -v 8723du
insmod /lib/modules/6.1.3-arch1-1/kernel/net/wireless/cfg80211.ko.zst 
insmod /lib/modules/6.1.3-arch1-1/kernel/drivers/net/wireless/8723du.ko 

Which branch of the driver should we use

First, thank you very much for this driver.

I wonder which branch of the driver should we use?
5.13.4 seems to be more recent from Realtek and contains significantly more code but both branches being maintained making the choice confusing.

Thanks.

building failure on EndeavourOS

When I typed make, it threw this error:

/bin/sh: řádek 1: bc: příkaz nenalezen
/bin/sh: řádek 1: bc: příkaz nenalezen
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:69: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                                     ^
In file included from /home/ok1asw/Stažené/rtl8723du/include/drv_types.h:40,
                 from /home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:6:
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:51: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                   ^~~~~~~~
/home/ok1asw/Stažené/rtl8723du/include/rtw_debug.h:68:55: note: in definition of macro ‘RTW_PRINT’
   68 |                         _dbgdump(DRIVER_PREFIX fmt, ##arg);\
      |                                                       ^~~
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:9: note: in expansion of macro ‘RTW_PRINT_SEL’
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |         ^~~~~~~~~~~~~
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:61: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                             ^~~~~~~~
/home/ok1asw/Stažené/rtl8723du/include/rtw_debug.h:68:55: note: in definition of macro ‘RTW_PRINT’
   68 |                         _dbgdump(DRIVER_PREFIX fmt, ##arg);\
      |                                                       ^~~
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:9: note: in expansion of macro ‘RTW_PRINT_SEL’
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |         ^~~~~~~~~~~~~
/home/ok1asw/Stažené/rtl8723du/core/rtw_debug.c:28:51: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   28 |         RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                   ^~~~~~~~
/home/ok1asw/Stažené/rtl8723du/include/rtw_debug.h:178:46: note: in definition of macro ‘RTW_PRINT_SEL’
  178 |                         _seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \
      |                                              ^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:271: /home/ok1asw/Stažené/rtl8723du/core/rtw_debug.o] Chyba 1
make[1]: *** [Makefile:1851: /home/ok1asw/Stažené/rtl8723du] Chyba 2
make: *** [Makefile:195: modules] Chyba 2

specs:
specs


I'm trying to make my wifi card work. lsusb says this about the wifi card: Bus 001 Device 007: ID 0bda:d723 Realtek Semiconductor Corp. 802.11n WLAN Adapter. From this site I concluded that I need the driver RTL8723DU. I do this for the first time so please tell me if I do anything wrong. I already tried 3 other drivers without success.

ioctl_cfg80211.c:458:3: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’ [SOLVED]

Hi!)
My laptop: DEXP Aquilon
My OS: Ubuntu 20.04.6 LTS
My core version: 5.15.0-72-generic
A try to build code from this repository (branch v5.13.4).
I installed all requirements,
A see this message:

$ make
Makefile:2541: warning: overriding recipe for target 'sign'
Makefile:2476: warning: ignoring old recipe for target 'sign'
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-72-generic/build M=/home/vadimatorik/Downloads/rtl8723du  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-72-generic'
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_cmd.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_security.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_debug.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_io.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_ioctl_query.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_ioctl_set.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_ieee80211.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.o
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c:304:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
  304 |   if (rfctl->txpwr_lmt_name)
      |      ^
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c:307:2: note: here
  307 |  default:
      |  ^~~~~~~
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c:1688:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1688 |    ptable->func = &OnAuthClient;
      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/vadimatorik/Downloads/rtl8723du/core/rtw_mlme_ext.c:1690:2: note: here
 1690 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_mi.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_wlan_util.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_vht.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_pwrctrl.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_rf.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_chplan.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/monitor/rtw_radiotap.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_recv.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_sta_mgt.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_ap.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/wds/rtw_wds.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/mesh/rtw_mesh.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_xmit.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_p2p.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_rson.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_tdls.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_br_ext.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_iol.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_sreset.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_btcoex_wifionly.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_btcoex.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_beamforming.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_odm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_rm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_rm_fsm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_ft.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_wnm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_mbo.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_rm_util.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/efuse/rtw_efuse.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_roch.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-internal.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-internal-enc.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-gcm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-ccm.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-omac1.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/ccmp.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/gcmp.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-siv.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/aes-ctr.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/sha256-internal.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/sha256.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/sha256-prf.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/crypto/rtw_crypto_wrap.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/core/rtw_swcrypto.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/osdep_service.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/os_intfs.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/usb_intf.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_linux.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/xmit_linux.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/mlme_linux.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/recv_linux.o
  CC [M]  /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.o
/home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c:458:3: error: too many arguments to function ‘cfg80211_ch_switch_started_notify’
  458 |   cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/vadimatorik/Downloads/rtl8723du/include/osdep_service_linux.h:98,
                 from /home/vadimatorik/Downloads/rtl8723du/include/osdep_service.h:54,
                 from /home/vadimatorik/Downloads/rtl8723du/include/drv_types.h:27,
                 from /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7713:6: note: declared here
 7713 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c:6735:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6735 |   *ht = 0;
      |   ~~~~^~~
/home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.c:6737:2: note: here
 6737 |  case NL80211_CHAN_WIDTH_20:
      |  ^~~~
make[2]: *** [scripts/Makefile.build:297: /home/vadimatorik/Downloads/rtl8723du/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1907: /home/vadimatorik/Downloads/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-72-generic'
make: *** [Makefile:2462: modules] Error 2

DKMS build fails with Ubuntu 22.10 - proposed fix

Building via dkms on Ubuntu 22.10 failed with weird compile errors. For example, looking for hal/phydm in the kernel headers. The person who was maintaining the PPA seems to have last updated it several months ago, so that didn't work either. I got it to build and install on my laptop ("evolve iii maestro-ebook-11") by changing dkms.conf and Makefile to look a little more like the rtl8812au driver. Now it builds, installs, and seems to be working. Haven't tested uninstalling, though, nor has it been through a kernel upgrade yet.

I'll do a pull request with my changes.

make fails compiling rtw_p2p.c

This worked previously but doesn't after the latest OS update...
make is failing while trying to comple rtw_p2p.c with the following error...

OS: Fedora 35
Kernel: 5.17.4-200

8723du-driver/rtl8723du/core/rtw_p2p.c: In function ‘process_assoc_req_p2p_ie’:
8723du-driver/rtl8723du/core/rtw_p2p.c:2306:46: error: passing argument 1 of ‘dev_addr_set’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2306 |                                 dev_addr_set(psta, pattr_content);
      |                                              ^~~~
      |                                              |
      |                                              struct sta_info *
In file included from 8723du-driver/rtl8723du/include/osdep_service_linux.h:19,
                 from 8723du-driver/rtl8723du/include/osdep_service.h:31,
                 from 8723du-driver/rtl8723du/include/drv_types.h:16,
                 from 8723du-driver/rtl8723du/core/rtw_p2p.c:6:
./include/linux/netdevice.h:4353:52: note: expected ‘struct net_device *’ but argument is of type ‘struct sta_info *’
 4353 | static inline void dev_addr_set(struct net_device *dev, const u8 *addr)
      |                                 ~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: 8723du-driver/rtl8723du/core/rtw_p2p.o] Error 1
make[1]: *** [Makefile:1841: 8723du-driver/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.17.4-200.fc35.x86_64'
make: *** [Makefile:199: modules] Error 2

error when renaming interface

I used the driver for the 5.10.2 kernel and the Rosk Pi S board with this error:

[    8.525180] RTW: module init start
[    8.525201] RTW: rtl8723ds v5.1.1.5_20523.20161209_BTCOEX20161208-1212
[    8.525208] RTW: build time: Dec 24 2020 14:54:26
[    8.525215] RTW: rtl8723ds BT-Coex version = BTCOEX20161208-1212
[    8.526644] RTW: sdio_init: sdio clk rate: 1000000
[    8.581732] RTW: rtw_read_efuse_from_file /system/etc/wifi/wifi_efuse_8723ds.map is not readable
[    8.581745] RTW: ERROR invalid phy efuse and read from file fail, will use driver default!!
[    8.581800] RTW: rtw_read_macaddr_from_file /data/wifimac.txt is not readable
[    8.582562] RTW: hal_com_config_channel_plan use def_chplan:0x20
[    8.644390] random: crng init done
[   10.110239] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[   10.111303] RTW: ERROR invalid mac addr:00:00:00:00:00:00, assign random MAC
[   10.113149] RTW: rtw_ndev_init(wlan0) if1 mac_addr=00:e0:4c:43:24:11
[   10.116704] RTW: module init ret=0
[   10.253530] rtl8723ds mmc2:0001:1 wlan125: renamed from wlan0
[   10.275726] rtl8723ds mmc2:0001:1 wlan1: renamed from wlan125
[   10.293410] ------------[ cut here ]------------
[   10.293432] name 'wlan0'
[   10.293523] WARNING: CPU: 0 PID: 567 at fs/proc/generic.c:694 remove_proc_entry+0x188/0x1bc
[   10.293532] Modules linked in: 8723ds realtek cfg80211 snd_soc_simple_card snd_soc_rockchip_i2s_tdm snd_soc_simple_card_utils snd_soc_rk3308 snd_soc_pcm5102a rfkill dwmac_rk snd_soc_core stmmac_platform snd_pcm_dmaengine stmmac snd_pcm pcs_xpcs snd_timer snd soundcore cpufreq_dt dm_mod xfs
[   10.293749] CPU: 0 PID: 567 Comm: udevd Not tainted 5.10.2 #1
[   10.293758] Hardware name: Radxa ROCK Pi S (DT)
[   10.293775] pstate: 00000005 (nzcv daif -PAN -UAO -TCO BTYPE=--)
[   10.293791] pc : remove_proc_entry+0x188/0x1bc
[   10.293808] lr : remove_proc_entry+0x188/0x1bc
[   10.293820] sp : ffff800012823aa0
[   10.293832] x29: ffff800012823aa0 x28: ffff0000030fc080 
[   10.293861] x27: ffff0000023a6550 x26: ffff0000023a6000 
[   10.293888] x25: ffff800011aacef0 x24: ffff000004b1fe40 
[   10.293915] x23: ffff800012359570 x22: ffff800011b91ae8 
[   10.293941] x21: ffff000004b1fe40 x20: ffff0000029f9d00 
[   10.293969] x19: 0000000000000000 x18: ffff8000118cece8 
[   10.293994] x17: 0000000000000000 x16: 0000000000000000 
[   10.294019] x15: 0000000000000018 x14: 000000000000038d 
[   10.294045] x13: ffff0000029fa1b0 x12: ffff800012823750 
[   10.294072] x11: ffff800011926d10 x10: 00000000fffff000 
[   10.294099] x9 : ffff800011926d10 x8 : ffff8000118ced10 
[   10.294126] x7 : ffff800011926d10 x6 : 0000000000000000 
[   10.294151] x5 : 0000000000000000 x4 : 0000000000000000 
[   10.294178] x3 : 00000000ffffffff x2 : 0000000000000001 
[   10.294203] x1 : d8fffd561ab19800 x0 : 0000000000000000 
[   10.294228] Call trace:
[   10.294246]  remove_proc_entry+0x188/0x1bc
[   10.294572]  rtw_adapter_proc_replace+0x6c/0xa0 [8723ds]
[   10.294833]  rtw_ndev_notifier_call+0x70/0x94 [8723ds]
[   10.294855]  raw_notifier_call_chain+0x54/0x74
[   10.294875]  call_netdevice_notifiers_info+0x58/0xa4
[   10.294894]  dev_change_name+0x1d8/0x320
[   10.294915]  dev_ifsioc+0x290/0x3bc
[   10.294932]  dev_ioctl+0x474/0x640
[   10.294949]  sock_do_ioctl+0xb0/0x200
[   10.294964]  sock_ioctl+0x268/0x4d0
[   10.294986]  __arm64_sys_ioctl+0xa8/0xf0
[   10.295007]  el0_svc_common.constprop.0+0x78/0x1c4
[   10.295025]  do_el0_svc+0x24/0x8c
[   10.295046]  el0_svc+0x14/0x20
[   10.295061]  el0_sync_handler+0x1a4/0x1b0
[   10.295077]  el0_sync+0x174/0x180
[   10.295089] ---[ end trace b26a1a008feac8c3 ]---

compile warning: core/rtw_br_ext.c:94:9: warning: ‘memcpy’ forming offset [40, 2051] is out of the bounds [0, 40]

In function ‘__nat25_add_pppoe_tag’,
inlined from ‘nat25_db_handle’ at /root/rtl8723du/core/rtw_br_ext.c:1121:11:
/root/rtl8723du/core/rtw_br_ext.c:94:9: warning: ‘memcpy’ forming offset [40, 2051] is out of the bounds [0, 40] of object ‘tag_buf’ with type ‘unsigned char[40]’ [-Warray-bounds]
94 | memcpy((unsigned char *)ph->tag, tag, data_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8723du/core/rtw_br_ext.c: In function ‘nat25_db_handle’:
/root/rtl8723du/core/rtw_br_ext.c:1090:63: note: ‘tag_buf’ declared here
1090 | unsigned char tag_buf[40];
| ^~~~~~~

kernel panic on PowerPC linux 5.15

I use an Edimax stick EW-7611ULB V2 on a Freescale PowerPC P1010 device with Linux kernel 5.15.25
The Wifi seems to work(plug-in/-out works without problems), but I get a kernel panic at configuration/connection(OnAssocReq).

Do you have any clue what I could try ?

BUG: Unable to handle kernel data access on read at 0xb0000010
Faulting instruction address: 0xb1b6b210
Oops: Kernel access of bad area, sig: 11 [#1]
BE PAGE_SIZE=4K PREEMPT_RT MIC-400
Modules linked in: 8723du(O) 8723bu(O) brcmfmac brcmutil rt2800usb rt2x00usb rt2800lib crc_ccitt rt2x00lib xhci_pci xhci_hcd pps_irq(O) spider2(O)
CPU: 0 PID: 2173 Comm: irq/44-xhci_hcd Tainted: G O 5.15.25-rt32-00074-g2425a6ad7cf9-dirty #9
NIP: b1b6b210 LR: b1b6b15c CTR: b1b6b4e4
REGS: 852b79e0 TRAP: 0300 Tainted: G O (5.15.25-rt32-00074-g2425a6ad7cf9-dirty)
MSR: 00029000 <CE,EE,ME> CR: 22000224 XER: 20000000
DEAR: b0000010 ESR: 00000000
GPR00: 00000008 852b7ac0 852b8cc0 852b7b24 00000070 00000056 0000003f 00000004
GPR08: 0000904c 00000000 b1b6b4e4 00000004 7001652c 00000000 7005347c 00000018
GPR16: 00000000 70b4f408 b1cb0000 b1c7ae80 b1c7ad4c b1c7ad14 b1c7ad90 b1c7ae20
GPR24: b1c7add8 00000001 002ea6c1 852b7b24 b0000010 afffffba 00000056 d7e15818
NIP [b1b6b210] rtw_ieee802_11_parse_elems+0x118/0x478 [8723du]
LR [b1b6b15c] rtw_ieee802_11_parse_elems+0x64/0x478 [8723du]
Call Trace:
[852b7ac0] [b13aa4d0] 0xb13aa4d0 (unreliable)
[852b7b10] [b1b86e00] OnAssocReq+0x194/0x6d8 [8723du]
[852b7c30] [b1b76298] on_action_spct+0x1c4/0x3f4 [8723du]
[852b7c60] [b1b791c0] mgt_dispatcher+0x1ac/0x24c [8723du]
[852b7ca0] [b1b9a074] validate_recv_frame+0x48c/0x17b8 [8723du]
[852b7cf0] [b1b9b4cc] rtw_recv_entry+0x44/0x290 [8723du]
[852b7d10] [b1b9bd4c] pre_recv_entry+0x58/0x98 [8723du]
[852b7d30] [b1c1180c] recvbuf2recvframe+0x2d4/0x300 [8723du]
[852b7d80] [b1bc14a4] usb_recv_tasklet+0x7c/0x16c [8723du]
[852b7db0] [70036120] tasklet_action_common.isra.18+0x108/0x164
[852b7de0] [7082bcb4] __do_softirq+0x10c/0x214
[852b7e40] [700364d0] __local_bh_enable_ip+0x12c/0x130
[852b7e70] [7006deb4] irq_forced_thread_fn+0xa0/0xc0
[852b7e90] [7006e1d8] irq_thread+0x148/0x274
[852b7ed0] [700535e4] kthread+0x168/0x198
[852b7f10] [7000f14c] ret_from_kernel_thread+0x14/0x1c
Instruction dump:
3c60b1c8 3863ac90 4cc63182 480f8e3d 3860ffff 48000334 93bb0000 98bb0004
7ffef850 7f9df214 2b9f0001 409d0304 <7d3df0ae> 3bbc0002 88bc0001 3bfffffe
---[ end trace 0000000000000002 ]---
printk: enabled sync mode

Kernel panic - not syncing:
Aiee, killing interrupt handler!
Rebooting in 10 seconds..

orange pi5 - ubuntu installation

Some additional steps have to be carried out for installing this on Ubuntu for orange pi 5.

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
export ARCH=arm64

After that, the source codes need to be edited. As I'm not familiar with C, I used vs code to search. Search for the terms kernel_write, kernel_read, or filp_open. Right at the top after #include , paste this for all affected files.

MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

compile error

The rtw_proc.c file gives an error when compiling
Screenshot_2022-05-11_00-16-29

rtw_cfg80211_ch_switch_notify triggers a warning

The current version, 47f5f90, triggers a WARN_ON in linux 5.10.186. Initializing struct cfg80211_chan_def chdef = {}; doesn't help. This triggers the warning, https://github.com/victronenergy/linux/blob/jeroen/venus-5.10.186/net/wireless/nl80211.c#L17148. That is a temporary branch, but is based on the latest stable of 5.10.

The WARN_ON is not present on linux v6.4 though. It is also not present in cfcb42a.

Since I don't know anything about these drivers any suggestion what might be causing it is welcome.

[    9.511375] ------------[ cut here ]------------
[    9.516378] WARNING: CPU: 0 PID: 595 at net/wireless/nl80211.c:17148 cfg80211_ch_switch_notify+0xb0/0xb4 [cfg80211]
[    9.527040] Modules linked in: cmac algif_hash algif_skcipher af_alg ip6table_filter ip6_tables xt_conntrack nf_conntrack nf_defrag_ipv6 libcrc32c nf_defrag_ipv4 iptable_filter ip_tables x_tables dwmac_sun8i stmmac_platform governor_simpleondemand 8723du(O) stmmac btusb btrtl btintel btbcm sun8i_drm_hdmi pcs_xpcs mcp251xfd phylink dw_hdmi pwm_sun4i ftdi_sio edt_ft5x06 mdio_mux of_mdio can_dev usbserial fixed_phy lima victron_gxdisp_bl bluetooth libphy cfg80211 ecdh_generic ti_tla2024 ecc industrialio lm75 gpu_sched rfkill sun4i_drm sun4i_frontend sun4i_tcon sun8i_mixer sun8i_tcon_top drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea fb font drm drm_panel_orientation_quirks
[    9.591041] CPU: 0 PID: 595 Comm: RTW_CMD_THREAD Tainted: G           O      5.10.186-venus-11 #1
[    9.599943] Hardware name: Allwinner sun8i Family
[    9.604751] [<c010d1e4>] (unwind_backtrace) from [<c010a2e4>] (show_stack+0x10/0x14)
[    9.612578] [<c010a2e4>] (show_stack) from [<c0662a2c>] (dump_stack+0x98/0xac)
[    9.619822] [<c0662a2c>] (dump_stack) from [<c0660980>] (__warn+0xa0/0xb8)
[    9.626707] [<c0660980>] (__warn) from [<c06609fc>] (warn_slowpath_fmt+0x64/0xc0)
[    9.634392] [<c06609fc>] (warn_slowpath_fmt) from [<bf275a9c>] (cfg80211_ch_switch_notify+0xb0/0xb4 [cfg80211])
[    9.645461] [<bf275a9c>] (cfg80211_ch_switch_notify [cfg80211]) from [<bf40ca80>] (rtw_cfg80211_ch_switch_notify+0x94/0x9c [8723du])
[    9.658646] [<bf40ca80>] (rtw_cfg80211_ch_switch_notify [8723du]) from [<bf3b1234>] (rtw_chk_start_clnt_join+0x3cc/0x5fc [8723du])
[    9.671561] [<bf3b1234>] (rtw_chk_start_clnt_join [8723du]) from [<bf3b1698>] (join_cmd_hdl+0x234/0x328 [8723du])
[    9.683155] [<bf3b1698>] (join_cmd_hdl [8723du]) from [<bf3792b0>] (rtw_cmd_thread+0x41c/0x768 [8723du])
[    9.693569] [<bf3792b0>] (rtw_cmd_thread [8723du]) from [<c01438c0>] (kthread+0x108/0x134)
[    9.701926] [<c01438c0>] (kthread) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[    9.709195] Exception stack(0xc19e3fb0 to 0xc19e3ff8)
[    9.714294] 3fa0:                                     00000000 00000000 00000000 00000000
[    9.722484] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.730692] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    9.737717] ---[ end trace 3edc9b246c5bdd5b ]---

Make error, Ubuntu 22.10

I just updated to Ubuntu MATE 22.10 and went to rebuild the driver.
I get this error when trying to build

/home/mia/source/rtl8723du/os_dep/linux/ioctl_cfg80211.c:10610:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’ 10610 | if (wdev->current_bss) { |

Make fails on the new kernel 5.19.2 on Arch

Running make exits with the following error and I suspect the cause is the new kernel..

/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c:175:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
175 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tony/Git/rtl8723du/include/osdep_service_linux.h:79,
from /home/tony/Git/rtl8723du/include/osdep_service.h:31,
from /home/tony/Git/rtl8723du/include/drv_types.h:16,
from /home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c:6:
./include/net/cfg80211.h:7967:6: note: declared here
7967 | void cfg80211_ch_switch_notify(struct net_device dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c: At top level:
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c:5627:20: error: initialization of ‘int (
)(struct wiphy *, struct net_device , unsigned int)’ from incompatible pointer type ‘int ()(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
5627 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c:5627:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.c:5836:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
5836 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/tony/Git/rtl8723du/os_dep/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1849: /home/tony/Git/rtl8723du] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.19.2-arch1-1/build'
make: *** [Makefile:199: modules] Error 2

Authentication failures on 5.13.0-27-generic

NetworkManager can list the available Wi-Fi networks but it’s impossible to connect to any of them (authentication fails). The issue is due to 9690f34, which introduces a bug, as in the #else branch the rtw_napi_gro_receive(&adapt->napi, pskb) subroutine is no longer called at all.

I believe the intent was to stop checking for GRO_DROP, but the entire call was removed as an accident. A similar issue and fix in another repo:

make error on Rocky Linux

/home/user/rtl8723du/os_dep/linux/os_intfs.c:1855:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/user/rtl8723du/os_dep/linux/os_intfs.c:1855:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/user/rtl8723du/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1571: module/home/user/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.12.2.el8_5.x86_64'
make: *** [Makefile:2462: modules] Error 2

Module crashes in various circumstances

Hello lwfinger and team!

My 8723du module has been crashing as of late, with traces like this:

[144976.013061] atkbd serio0: Unknown key pressed (translated set 2, code 0x55 on isa0060/serio0).
[144976.013082] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[144976.606490] atkbd serio0: Unknown key released (translated set 2, code 0x55 on isa0060/serio0).
[144976.606502] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[144980.611924] atkbd serio0: Unknown key pressed (translated set 2, code 0x55 on isa0060/serio0).
[144980.611947] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[144980.683930] atkbd serio0: Unknown key released (translated set 2, code 0x55 on isa0060/serio0).
[144980.683954] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[144980.722524] atkbd serio0: Unknown key pressed (translated set 2, code 0x55 on isa0060/serio0).
[144980.722548] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[144981.116142] atkbd serio0: Unknown key released (translated set 2, code 0x55 on isa0060/serio0).
[144981.116153] atkbd serio0: Use 'setkeycodes 55 ' to make it known.
[145260.527385] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s21f0u7i2: link becomes ready
[145562.150272] ------------[ cut here ]------------
[145562.150280] WARNING: CPU: 0 PID: 60651 at net/wireless/sme.c:839 __cfg80211_connect_result+0x7bd/0x7d0 [cfg80211]
[145562.150368] Modules linked in: xt_MASQUERADE xt_mark nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device intel_pmc_bxt intel_telemetry_pltdrv snd_sof_pci_intel_apl intel_punit_ipc snd_sof_intel_hda_common intel_telemetry_core soundwire_intel soundwire_generic_allocation soundwire_cadence x86_pkg_temp_thermal snd_sof_intel_hda intel_powerclamp snd_sof_pci cmac coretemp algif_hash algif_skcipher af_alg snd_sof_xtensa_dsp bnep kvm_intel hid_multitouch snd_sof kvm spi_pxa2xx_platform dw_dmac snd_sof_utils 8250_dw soundwire_bus joydev mousedev snd_soc_avs snd_soc_hda_codec intel_rapl_msr uvcvideo irqbypass snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp videobuf2_vmalloc snd_soc_acpi_intel_match snd_soc_acpi snd_soc_core snd_compress rapl videobuf2_memops videobuf2_v4l2 ac97_bus i2c_i801 btusb intel_cstate videobuf2_common snd_pcm_dmaengine i2c_smbus btrtl snd_hda_codec_hdmi
[145562.150431] snd_hda_codec_realtek nfnetlink snd_hda_codec_generic tun ledtrig_audio rtsx_usb_ms btbcm btintel snd_hda_intel btmtk snd_intel_dspcfg memstick snd_intel_sdw_acpi snd_hda_codec videodev snd_hda_core mc snd_hwdep processor_thermal_device_pci_legacy processor_thermal_device snd_pcm processor_thermal_rfim bluetooth processor_thermal_mbox snd_timer processor_thermal_rapl qrtr snd intel_rapl_common intel_lpss_pci intel_soc_dts_iosf intel_lpss soundcore idma64 ecdh_generic crc16 goodix_ts int3400_thermal int3403_thermal intel_hid acpi_thermal_rel int340x_thermal_zone soc_button_array sparse_keymap vfat fat mac_hid fuse loop dm_mod zram ip_tables x_tables 8723du(OE) cfg80211 rfkill rtsx_usb_sdmmc crct10dif_pclmul rtsx_usb mmc_block crc32_pclmul i915 polyval_generic gf128mul ghash_clmulni_intel sha512_ssse3 drm_buddy serio_raw intel_gtt atkbd sdhci_pci aesni_intel cqhci libps2 crypto_simd sdhci vivaldi_fmap drm_display_helper cryptd cec xhci_pci wdat_wdt xhci_pci_renesas mmc_core
[145562.150526] i2c_hid_acpi ttm i2c_hid i8042 video serio wmi btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor raid6_pq uinput crypto_user
[145562.150542] CPU: 0 PID: 60651 Comm: kworker/u8:13 Tainted: G W OE 6.1.25-1-lts #1 0ebfa615fba354813deb87c6e669e65852f0b237
[145562.150547] Hardware name: GPU Company GWTC116-2/GPU Company, BIOS CC-BI-11.6-Y116GRX510-GF55C-268-D 06/21/2022
[145562.150549] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[145562.150608] RIP: 0010:__cfg80211_connect_result+0x7bd/0x7d0 [cfg80211]
[145562.150671] Code: 89 44 1f fe e9 d8 fc ff ff e8 3f ab a7 e3 45 31 ed 0f b7 d0 e9 66 fd ff ff 4c 89 e7 e8 ac df ff ff 83 3b 00 0f 85 25 fe ff ff <0f> 0b 48 89 de 4c 89 e7 e8 c6 e5 ff ff e9 f9 fa ff ff 90 f3 0f 1e
[145562.150674] RSP: 0018:ffffaf374542fdb0 EFLAGS: 00010246
[145562.150676] RAX: 0000000000000000 RBX: ffff892d822e3018 RCX: 0000000000000000
[145562.150678] RDX: 0000000000000000 RSI: 00000000fffffe00 RDI: ffff892d8afa5800
[145562.150680] RBP: ffffaf374542fe10 R08: 0000000000000000 R09: 0000000000000000
[145562.150681] R10: 0000000000000002 R11: 0000000000000000 R12: ffff892d8afa5800
[145562.150683] R13: 0000000000000000 R14: ffff892d822e3341 R15: ffff892d822e3018
[145562.150685] FS: 0000000000000000(0000) GS:ffff892dfbc00000(0000) knlGS:0000000000000000
[145562.150687] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[145562.150689] CR2: 00007ff48cee9998 CR3: 0000000006108000 CR4: 0000000000350ef0
[145562.150691] Call Trace:
[145562.150696]
[145562.150701] ? psi_task_switch+0x122/0x230
[145562.150710] ? cfg80211_process_wdev_events+0x15c/0x1b0 [cfg80211 025db8f9feb35d275c274d597c3b30ea5f277173]
[145562.150769] cfg80211_process_wdev_events+0x15c/0x1b0 [cfg80211 025db8f9feb35d275c274d597c3b30ea5f277173]
[145562.150829] cfg80211_process_rdev_events+0x2a/0x40 [cfg80211 025db8f9feb35d275c274d597c3b30ea5f277173]
[145562.150888] cfg80211_event_work+0x29/0x40 [cfg80211 025db8f9feb35d275c274d597c3b30ea5f277173]
[145562.150946] process_one_work+0x1c4/0x380
[145562.150952] worker_thread+0x51/0x390
[145562.150956] ? rescuer_thread+0x3b0/0x3b0
[145562.150959] kthread+0xdb/0x110
[145562.150963] ? kthread_complete_and_exit+0x20/0x20
[145562.150966] ret_from_fork+0x1f/0x30
[145562.150973]
[145562.150974] ---[ end trace 0000000000000000 ]---
[145570.878247] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s21f0u7i2: link becomes ready

Do you have any guidance, or is there any way I can help debugging this?

Thank you,

locks up on fedora32: systemd-udevd hogs cpu

I realize this might not be the clearest or most helpful, but I'm not even sure where to proceed.

I have some rtl8723bu and du modules. The bu modules actually appear to "just work" with the rtl8xxxu driver, and I've reported that to Jens. However, the du modules... don't. Out of the box (no driver from here, standard fedora32 system, whatever that might mean), the btusb driver sees the bluetooth portion, but within a second or two the usb device disconnects, as if the device firmware has crashed.

I've built and installed this driver, and have blacklisted btrtl and rtl8xxxu and have then plugged in my rtl8723du module. Kernel log below, for Linux strem 5.11.22-100.fc32.x86_64 #1 SMP Wed May 19 18:58:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

The "tracker" stuff is I think a red herring, but what I see is that "systemd-udevd" instantly goes to 100% cpu on one core. It stays like this until a few seconds after I disconnect the rtl8723du device. "iw list" or similar commands hang, and can't be killed. Even sudo kill -9 from another terminal will hang. Firefox won't launch, but things that were already running seem to continue working.

Rebooting is the only recovery, and normally requires a hard power off, as network manager hangs trying to "cleanup"

Further, the line Unknown symbol __rtw_dbg (err -2) is presumably why there's no debug info from the driver itself.

Jun 04 16:14:49 strem kernel: usb 1-3: new high-speed USB device number 21 using xhci_hcd
Jun 04 16:14:49 strem kernel: usb 1-3: New USB device found, idVendor=0bda, idProduct=d723, bcdDevice= 2.00
Jun 04 16:14:49 strem kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 04 16:14:49 strem kernel: usb 1-3: Product: 802.11n WLAN Adapter
Jun 04 16:14:49 strem kernel: usb 1-3: Manufacturer: Realtek
Jun 04 16:14:49 strem kernel: usb 1-3: SerialNumber: 00e04c000001
Jun 04 16:14:49 strem kernel: Bluetooth: hci1: RTL: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723
Jun 04 16:14:49 strem systemd[1]: Starting Load/Save RF Kill Switch Status...
Jun 04 16:14:49 strem kernel: Bluetooth: hci1: RTL: rom_version status=0 version=2
Jun 04 16:14:49 strem kernel: Bluetooth: hci1: RTL: loading rtl_bt/rtl8723d_fw.bin
Jun 04 16:14:49 strem kernel: Bluetooth: hci1: RTL: loading rtl_bt/rtl8723d_config.bin
Jun 04 16:14:49 strem kernel: Bluetooth: hci1: RTL: cfg_sz 10, total sz 33266
Jun 04 16:14:49 strem mtp-probe[4400]: checking bus 1, device 21: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Jun 04 16:14:49 strem mtp-probe[4400]: bus: 1, device: 21 was not an MTP device
Jun 04 16:14:49 strem systemd[1]: Started Load/Save RF Kill Switch Status.
Jun 04 16:14:49 strem audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/>
Jun 04 16:14:49 strem upowerd[1397]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3
Jun 04 16:14:49 strem kernel: rtw88_8723d: loading out-of-tree module taints kernel.
Jun 04 16:14:49 strem kernel: rtw88_8723d: module verification failed: signature and/or required key missing - tainting kernel
Jun 04 16:14:49 strem kernel: rtw88_8723d: Unknown symbol __rtw_dbg (err -2)
Jun 04 16:14:49 strem kernel: usbcore: registered new interface driver rtl8723du
Jun 04 16:14:49 strem NetworkManager[898]: <info>  [1622823289.9355] device (wlan0): driver supports Access Point (AP) mode
Jun 04 16:14:49 strem NetworkManager[898]: <info>  [1622823289.9361] manager: (wlan0): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/11)
Jun 04 16:14:49 strem mtp-probe[4410]: checking bus 1, device 21: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3"
Jun 04 16:14:49 strem mtp-probe[4410]: bus: 1, device: 21 was not an MTP device
Jun 04 16:14:49 strem upowerd[1397]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2
Jun 04 16:14:49 strem systemd-udevd[4405]: Using default interface naming scheme 'v245'.
Jun 04 16:14:49 strem systemd-udevd[4405]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jun 04 16:14:49 strem wireless[4417]: setting regulatory domain to IS based on timezone (Atlantic/Reykjavik)
Jun 04 16:14:49 strem kernel: rtl8723du 1-3:1.2 wlp0s20f0u3i2: renamed from wlan0
Jun 04 16:14:49 strem NetworkManager[898]: <info>  [1622823289.9639] rfkill5: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/ieee80211/phy1/rfki>
Jun 04 16:14:49 strem NetworkManager[898]: <info>  [1622823289.9654] device (wlan0): interface index 10 renamed iface from 'wlan0' to 'wlp0s20f0u3i2'
Jun 04 16:14:49 strem NetworkManager[898]: <info>  [1622823289.9721] device (wlp0s20f0u3i2): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Jun 04 16:14:49 strem systemd-udevd[4425]: Using default interface naming scheme 'v245'.
Jun 04 16:14:50 strem kernel: Bluetooth: hci1: RTL: fw version 0x828a96f1
Jun 04 16:14:50 strem bluetoothd[873]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSink/sbc
Jun 04 16:14:50 strem bluetoothd[873]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource/sbc
Jun 04 16:14:52 strem ModemManager[871]: <info>  Couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3': not supported by any plugin
Jun 04 16:14:54 strem systemd[1]: systemd-rfkill.service: Succeeded.
Jun 04 16:14:54 strem audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/s>
Jun 04 16:14:57 strem systemd[1786]: tracker-extract.service: Succeeded.
Jun 04 16:15:08 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:16 strem tracker-store[4139]: OK
Jun 04 16:15:16 strem systemd[1786]: tracker-store.service: Succeeded.
Jun 04 16:15:17 strem gnome-shell[2058]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is no>
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem systemd[1786]: Starting Tracker metadata database store and lookup manager...
Jun 04 16:15:17 strem systemd[1786]: Started Tracker metadata database store and lookup manager.
Jun 04 16:15:17 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:17 strem gnome-shell[2058]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is no>
Jun 04 16:15:17 strem systemd[1786]: Started dbus-:[email protected].
Jun 04 16:15:17 strem gnome-shell[2058]: Received error from D-Bus search provider org.gnome.seahorse.Application.desktop during GetResultMetas: Gio.DBusError: GDBus.Error:org.freedesk>
Jun 04 16:15:17 strem gnome-shell[2058]: Wrong number of result metas returned by search provider org.gnome.seahorse.Application.desktop: expected 2 but got 0
Jun 04 16:15:17 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:17 strem PackageKit[1412]: resolve transaction /7900_dbabcaed from uid 1000 finished with success after 4ms
Jun 04 16:15:17 strem systemd[1786]: Started Application launched by gnome-shell.
Jun 04 16:15:18 strem audit[4694]: NETFILTER_CFG table=filter family=7 entries=0 op=xt_register pid=4694 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 comm=495043204C61756>
Jun 04 16:15:27 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:27 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:29 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:37 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:47 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:47 strem gnome-contacts-[4438]: Failed to reach quiescence normally (0 backends and 5 persona stores still haven't reached quiescence). Forcing IndividualAggregator quiesc>
Jun 04 16:15:47 strem tracker-store[4492]: OK
Jun 04 16:15:47 strem systemd[1786]: tracker-store.service: Succeeded.
Jun 04 16:15:50 strem systemd-udevd[634]: wlp0s20f0u3i2: Worker [4425] processing SEQNUM=4521 is taking a long time
Jun 04 16:15:50 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:15:50 strem systemd[1786]: dbus-:[email protected]: Consumed 25.562s CPU time.
Jun 04 16:15:57 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:16:14 strem kernel: usb 1-3: USB disconnect, device number 21
Jun 04 16:16:14 strem bluetoothd[873]: Endpoint unregistered: sender=:1.106 path=/MediaEndpoint/A2DPSink/sbc
Jun 04 16:16:14 strem bluetoothd[873]: Endpoint unregistered: sender=:1.106 path=/MediaEndpoint/A2DPSource/sbc
Jun 04 16:16:14 strem systemd[1]: Starting Load/Save RF Kill Switch Status...
Jun 04 16:16:14 strem systemd[1]: Started Load/Save RF Kill Switch Status.
Jun 04 16:16:14 strem audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/>
Jun 04 16:16:17 strem systemd[1786]: dbus-:[email protected]: Succeeded.
Jun 04 16:16:20 strem systemd[1]: systemd-rfkill.service: Succeeded.
Jun 04 16:16:19 strem audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/s>
Jun 04 16:17:23 strem gnome-shell[2058]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is no>
Jun 04 16:17:23 strem systemd[1786]: Started dbus-:[email protected].

Periodic latency spikes

I'm seeing a strange behaviour with the RTL8723DU. Every 2 seconds or so, there is a huge spike in latency, easily observable with a simple ping command:

PING 10.0.4.155 (10.0.4.155) 56(84) bytes of data.
64 bytes from 10.0.4.155: icmp_seq=1 ttl=64 time=719 ms
64 bytes from 10.0.4.155: icmp_seq=2 ttl=64 time=1.22 ms
64 bytes from 10.0.4.155: icmp_seq=3 ttl=64 time=800 ms
64 bytes from 10.0.4.155: icmp_seq=4 ttl=64 time=1.23 ms
64 bytes from 10.0.4.155: icmp_seq=5 ttl=64 time=878 ms
64 bytes from 10.0.4.155: icmp_seq=6 ttl=64 time=1.19 ms
64 bytes from 10.0.4.155: icmp_seq=7 ttl=64 time=956 ms
64 bytes from 10.0.4.155: icmp_seq=8 ttl=64 time=1.11 ms
64 bytes from 10.0.4.155: icmp_seq=9 ttl=64 time=1055 ms
64 bytes from 10.0.4.155: icmp_seq=10 ttl=64 time=36.9 ms

--- 10.0.4.155 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9023ms
rtt min/avg/max/mdev = 1.114/444.987/1054.864/444.541 ms, pipe 2

Notice how every second reply takes several hundred ms.

I have tried disabling every power management feature I could find without seeing any improvement, though I might have missed something. Any suggestions for fixing this would be appreciated.

the network connects but no connection

Hello, good afternoon

I am having a little problem with the driver, it seems that the network card connects successfully to my wi-fi but it does not give Internet I try to do the ping command, but it shows that the network is inaccessible

I have no idea what could be causing the problem, I await your response, thanks.

Kernel 6.3 fix

diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c
index 64541a3641..a2d9d49fcf 100644
--- a/os_dep/ioctl_cfg80211.c
+++ b/os_dep/ioctl_cfg80211.c
@@ -173,6 +173,8 @@ u8 rtw_cfg80211_ch_switch_notify(struct adapter *adapter, u8 ch, u8 bw, u8 offse
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
+	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
 #else
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
 #endif

or use the driver in linux 6.2+ with

CONFIG_RTW88
CONFIG_RTW88_8723DU
CONFIG_WLAN
CONFIG_WLAN_VENDOR_REALTEK

RTL8723DU Wifi Driver Add to Mainline Linux Kernel

Hi

Is there any way to get this RTL8723DU wifi driver into the mainline Linux kernel or ask Realtek for help?
So many ARM boards use this wifi and they use mainline Linux kernel then the wifi doesn't work out of the box.
Some Linux OS's like LibreELEC, users can't manually install extra wifi drivers, only when this OS is build from source since it uses mainline Linux kernel, they also don't want to use out of tree wifi drivers and want the wifi drivers to be added to the mainline Linux kernel.
Hope it would be possible one day as it would solve a lot of problems.

Error "not a git repository"

Error:

user@debian:~$ git remote set-url origin git://github.com/lwfinger/rtl8723du.git
fatal: not a git repository (or any of the parent directories): .git

How to fix:

git clone https://github.com/lwfinger/rtl8723du.git -b v5.13.4

WORKED !!!!!!!!!!!!!!!! THANKS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Now I have to fix the audio Everest Semi ES8316 ALSA SoC Codec Driver. Oh boy, Linux =(

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000

On 5.19, get a null pointer exception as soon as the dongle is plugged in.
`
[ 128.837664] usb 1-2: new high-speed USB device number 5 using xhci-hcd
[ 128.987546] usb 1-2: New USB device found, idVendor=0bda, idProduct=d723, bcdDevice= 2.00
[ 128.987727] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 128.987821] usb 1-2: Product: 802.11n WLAN Adapter
[ 128.987894] usb 1-2: Manufacturer: Realtek
[ 128.987965] usb 1-2: SerialNumber: 00e04c000001
[ 129.007297] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723
[ 129.008329] Bluetooth: hci0: RTL: rom_version status=0 version=2
[ 129.008358] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723d_fw.bin
[ 129.014607] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723d_config.bin
[ 129.015038] Bluetooth: hci0: RTL: cfg_sz 10, total sz 33266
[ 129.094945] 8723du: loading out-of-tree module taints kernel.
[ 129.279387] Bluetooth: hci0: RTL: fw version 0x828a96f1
[ 129.367781] usbcore: registered new interface driver rtl8723du
[ 130.259888] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 130.263195] Mem abort info:
[ 130.265984] ESR = 0x0000000096000004
[ 130.269866] EC = 0x25: DABT (current EL), IL = 32 bits
[ 130.275153] SET = 0, FnV = 0
[ 130.278328] EA = 0, S1PTW = 0
[ 130.280888] FSC = 0x04: level 0 translation fault
[ 130.285776] Data abort info:
[ 130.288588] ISV = 0, ISS = 0x00000004
[ 130.292953] CM = 0, WnR = 0
[ 130.295596] user pgtable: 4k pages, 48-bit VAs, pgdp=000000005b796000
[ 130.303655] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000
[ 130.308754] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 130.313923] Modules linked in: 8723du(O) 8021q garp mrp stp llc cfg80211 cbc des_generic libdes ecb rfcomm iptable_nat algif_skcipher md4 algif_hash nf_nat nf_conntrack af_alg bnep nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle bpfilter iptable_filter btusb btrtl btbcm btintel btmtk bluetooth ecdh_generic ecc rfkill meson_vdec(C) videobuf2_dma_contig v4l2_mem2mem videobuf2_memops snd_soc_hdmi_codec videobuf2_v4l2 videobuf2_common videodev snd_soc_meson_gx_sound_card snd_soc_meson_t9015 snd_soc_meson_aiu ao_cec meson_rng meson_ir snd_soc_simple_amplifier snd_soc_meson_codec_glue snd_soc_meson_card_utils amlogic_gxl_crypto rng_core crypto_engine snd_soc_core mc snd_compress snd_pcm_dmaengine snd_pcm_oss snd_mixer_oss snd_pcm meson_gxbb_wdt nvmem_meson_efuse snd_timer sch_fq_codel dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua pkcs8_key_parser ipmi_devintf ipmi_msghandler fuse ip_tables x_tables ipv6 crc_ccitt btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy
[ 130.314155] async_pq async_xor async_tx xor xor_neon raid6_pq libcrc32c raid1 raid0 md_mod hid_lenovo dw_hdmi_i2s_audio meson_gxl dwmac_generic meson_drm meson_dw_hdmi crct10dif_ce drm_cma_helper dwmac_meson8b stmmac_platform stmmac dw_hdmi lima drm_display_helper gpu_sched drm_shmem_helper pcs_xpcs meson_canvas cec rc_core display_connector drm_kms_helper drm
[ 130.432081] CPU: 0 PID: 608 Comm: iwd Tainted: G C O 5.19.5-02955-g068aa9070f39 #1
[ 130.440703] Hardware name: libre-computer aml-s905x-cc/aml-s905x-cc, BIOS 2022.07+ 07/01/2022
[ 130.449156] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 130.456055] pc : __pi_memcmp+0xd8/0x110
[ 130.459850] lr : cfg80211_rtw_scan+0x2ac/0x7e4 [8723du]
[ 130.465028] sp : ffff800009bbb5c0
[ 130.468303] x29: ffff800009bbb5c0 x28: 000000000000000c x27: ffff4afc5195a368
[ 130.475375] x26: ffff4afc43230048 x25: 000000000000000d x24: ffff4afc6e620a00
[ 130.482447] x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000
[ 130.489520] x20: ffff800009ced000 x19: ffff4afc6e620a00 x18: 0000000000000000
[ 130.496592] x17: 0000000000000000 x16: ffffc27877b254c0 x15: 0000aaab02603ad0
[ 130.503665] x14: 0000000000000000 x13: ffffc27825b8c1b0 x12: 0000000000000000
[ 130.510737] x11: ffff4afc43243000 x10: ffffc27878296ec8 x9 : 0000000000000000
[ 130.517810] x8 : ffff4afc6e620a62 x7 : ffffffffffffffff x6 : 0000000800000a7f
[ 130.524882] x5 : ffff4afc5620d3a0 x4 : 0000000000000000 x3 : ffff4afc56202aa0
[ 130.531955] x2 : 0000000000000003 x1 : ffffc27825ce2600 x0 : 0000000000000000
[ 130.539028] Call trace:
[ 130.541443] __pi_memcmp+0xd8/0x110
[ 130.544893] cfg80211_scan+0x110/0x150 [cfg80211]
[ 130.549552] nl80211_trigger_scan+0x3f8/0x66c [cfg80211]
[ 130.554813] genl_family_rcv_msg_doit+0xc8/0x150
[ 130.559383] genl_rcv_msg+0xe4/0x1e0
[ 130.562919] netlink_rcv_skb+0x5c/0x130
[ 130.566714] genl_rcv+0x38/0x50
[ 130.569819] netlink_unicast+0x2a8/0x300
[ 130.573700] netlink_sendmsg+0x1c0/0x410
[ 130.577581] sock_sendmsg+0x54/0x60
[ 130.581031] __sys_sendto+0x118/0x14c
[ 130.584654] __arm64_sys_sendto+0x2c/0x40
[ 130.588621] invoke_syscall+0x48/0x114
[ 130.592330] el0_svc_common.constprop.0+0xd4/0xfc
[ 130.596988] do_el0_svc+0x30/0xc0
[ 130.600266] el0_svc+0x34/0xb0
[ 130.603284] el0t_64_sync_handler+0xbc/0x140
[ 130.607510] el0t_64_sync+0x18c/0x190
[ 130.611138] Code: d65f03c0 d503201f b1001042 540000c3 (b8404403)
[ 130.617174] ---[ end trace 0000000000000000 ]---

`

build against clang compiled kernel

distro: gentoo stable

if kernel compiled manually with gcc (default compiler), everything works perfectly fine

if binary kernel used or compiled manually with clang, then

  • make fails with error
    gcc: error: unrecognized command line option ‘-Qunused-arguments’, etc

screenshot-2022-12-12--14-02-24-window

  • make CC=clang
    fails with ERROR: "is_broadcast_mac_addr" [] undefined!

screenshot-2022-12-12--14-00-45-window

ERROR: "__stack_chk_guard"

Hello,
I'm trying to compile this 8723du.ko module on sebanc brunch chromeos build using chromebrew, but it throws error about "stack_chk_guard" :

chronos@localhost /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.88-brunch-sebanc/build M=/home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du  modules
make[1]: Entering directory '/lib/modules/5.4.88-brunch-sebanc/build'
  CC [M]  /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/core/rtw_cmd.o
  CC [M]  /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/core/rtw_security.o
...
...
  CC [M]  /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/hal/halbtc8723d2ant.o
  CC [M]  /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/platform/platform_ops.o
  LD [M]  /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/8723du.o
  Building modules, stage 2.
  MODPOST 1 modules
ERROR: "__stack_chk_guard" [/home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du/8723du.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1654: modules] Error 2
make[1]: Leaving directory '/lib/modules/5.4.88-brunch-sebanc/build'
make: *** [Makefile:196: modules] Error 2
chronos@localhost /home/user/c0fb6532976981f2f5630f6b64affa2626b1ea70/Downloads/rtl8723du $

According to some of my friend, this is because of the gcc10 that chromebrew use and suggest to add "-fstack-protector-all" on Makefile, but unfortunately I don't know how or where I have to put that cflag.
Can someone help me, where I have to put this cflag on Makefile please ?
I tried with EXTRA_CFLAGS += -fstack-protector-all on the beginning of Makefile but it throws the same error.

With the same hardware but on ubuntu, this rtl8723du driver was compiled and runs very good without a problem.

Thank you very much in advance, and really appreciate this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.