From: Ilan Peer Date: Tue, 25 Jul 2023 07:16:58 +0000 (+0530) Subject: AP: Use is_zero_ether_addr() to check if BSSID is NULL X-Git-Tag: hostap_2_11~1048 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd209633eb10e8ec96f302ef6507b2141f780cc4;p=thirdparty%2Fhostap.git AP: Use is_zero_ether_addr() to check if BSSID is NULL Use helper function is_zero_ether_addr() for checking empty bssid value in hostapd_driver_init(). Signed-off-by: Ilan Peer Signed-off-by: Andrei Otcheretianski Signed-off-by: Manaswini Paluri --- diff --git a/hostapd/main.c b/hostapd/main.c index 336203ea3..aac2a81de 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -218,7 +218,7 @@ static int hostapd_driver_init(struct hostapd_iface *iface) #endif /* CONFIG_IEEE80211BE */ /* Initialize the driver interface */ - if (!(b[0] | b[1] | b[2] | b[3] | b[4] | b[5])) + if (is_zero_ether_addr(b)) b = NULL; os_memset(¶ms, 0, sizeof(params));