From: Jintao Lin Date: Tue, 6 Dec 2022 00:37:04 +0000 (+0000) Subject: nl80211: Enforce unique address for AP iftype X-Git-Tag: hostap_2_11~1381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9804e3067a73d06dafd4f917fe3e3d645242cf6;p=thirdparty%2Fhostap.git nl80211: Enforce unique address for AP iftype Some Wi-Fi SoCs do not ensure unique MAC address for the new virtual interface. Enforce unique address is used for the created AP interface similarly to other previously address interface types. Signed-off-by: Jintao Lin --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 1b76fcc4f..3f6c05c09 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -8329,7 +8329,7 @@ static int wpa_driver_nl80211_if_add(void *priv, enum wpa_driver_if_type type, if (!addr && (type == WPA_IF_P2P_CLIENT || type == WPA_IF_P2P_GROUP || type == WPA_IF_P2P_GO || type == WPA_IF_MESH || - type == WPA_IF_STATION)) { + type == WPA_IF_STATION || type == WPA_IF_AP_BSS)) { /* Enforce unique address */ u8 new_addr[ETH_ALEN];