From 18d7a341c3a1b273076f3497033b39a94ec8af50 Mon Sep 17 00:00:00 2001 From: Azq2 Date: Fri, 6 Jan 2023 19:18:59 +0200 Subject: [PATCH 1/3] Make different MAC for if1 --- os_dep/linux/os_intfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index f53cce8f..a5b1d774 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -3145,7 +3145,7 @@ _adapter *rtw_drv_add_vir_if(_adapter *primary_padapter, * If it is 1, the address is locally administered */ mac[0] |= BIT(1); - if (padapter->iface_id > IFACE_ID1) + if (padapter->iface_id >= IFACE_ID1) mac[4] ^= BIT(padapter->iface_id); _rtw_memcpy(adapter_mac_addr(padapter), mac, ETH_ALEN); From 3c9f845847fb1a727a702900f00535cba3b42987 Mon Sep 17 00:00:00 2001 From: Azq2 Date: Fri, 6 Jan 2023 17:07:53 +0200 Subject: [PATCH 2/3] Fix uninitialized cfg80211_chan_def --- os_dep/linux/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 52bc855b..b30bc8c5 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -430,7 +430,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8 u8 ret = _SUCCESS; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) - struct cfg80211_chan_def chdef; + struct cfg80211_chan_def chdef = {}; if (!rtw_cfg80211_allow_ch_switch_notify(adapter)) goto exit; From fbf2119f0ef5bfa7037a0d0885a39cbd15e7bc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Sun, 21 Jan 2024 15:06:43 +0000 Subject: [PATCH 3/3] Enable CONFIG_CONCURRENT_MODE --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d5757274..b491a283 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and lat endif EXTRA_CFLAGS += -I$(src)/include - +EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE EXTRA_LDFLAGS += --strip-debug CONFIG_AUTOCFG_CP = n