From d694ba3b322e36ea5778b45b35e1afc633a55055 Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: Fri, 20 Nov 2020 16:05:54 +0100
Subject: [PATCH] mac80211.sh: use correct bssid for multibss case

Today BRCM generate correct MAC address when
we add interfaces.

So, leave bssid not set, then hostapd will use
HwAddr from interface.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
---
 .../base-files/lib/netifd/wireless/mac80211.sh               | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh b/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh
index 5d67bf5fb..308a82915 100755
--- a/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh
+++ b/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh
@@ -420,6 +420,11 @@ mac80211_generate_mac() {
 				return
 			}
 		}
+
+		# Today BRCM set correct HwAddr when we add iface
+		# So, hostapd will use HwAddr
+		echo "00:00:00:00:00:00"
+		return
 	}
 
 	local oIFS="$IFS"; IFS=":"; set -- $mask; IFS="$oIFS"
-- 
GitLab