From a6acdedc2b194f36f089630fb966b56408623c99 Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Thu, 19 Jan 2023 22:41:55 +0000 Subject: [PATCH] Make different MAC for if1 Signed-off-by: Kirill Zhumarin --- drivers/net/wireless/rtl8812au/os_dep/linux/os_intfs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/rtl8812au/os_dep/linux/os_intfs.c b/drivers/net/wireless/rtl8812au/os_dep/linux/os_intfs.c index 8aa7a212c..297025b1c 100644 --- a/drivers/net/wireless/rtl8812au/os_dep/linux/os_intfs.c +++ b/drivers/net/wireless/rtl8812au/os_dep/linux/os_intfs.c @@ -2932,7 +2932,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); -- Created with Armbian build tools https://github.com/armbian/build