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