From 487b9177058a7c89e7b699e15e6e6a6fe27d546e Mon Sep 17 00:00:00 2001 From: Vinod Kumar Pirla Date: Mon, 15 May 2023 23:26:00 -0700 Subject: [PATCH] qcacld-3.0: Toggle MSB to avoid MAC address collision Toggle the MSB of last byte while deriving the link MAC address to increase the MAC address range and avoid deriving duplicate MAC addresses. Change-Id: I2ba1d8bcfaa95fd5291202316106d9b0dd74766b CRs-Fixed: 3499105 --- core/hdd/src/wlan_hdd_mlo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_mlo.c b/core/hdd/src/wlan_hdd_mlo.c index 08222f68af..f782d6ed6c 100644 --- a/core/hdd/src/wlan_hdd_mlo.c +++ b/core/hdd/src/wlan_hdd_mlo.c @@ -292,6 +292,7 @@ QDF_STATUS hdd_derive_link_address_from_mld(struct qdf_mac_addr *mld_addr, temp_byte = ((last_byte >> 4 & INTF_MACADDR_MASK) + idx) & INTF_MACADDR_MASK; new_addr.bytes[5] = last_byte + temp_byte; + new_addr.bytes[5] ^= (1 << 7); qdf_copy_macaddr(link_addr, &new_addr); link_addr++;