]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Use is_zero_ether_addr() to check if BSSID is NULL
authorIlan Peer <ilan.peer@intel.com>
Tue, 25 Jul 2023 07:16:58 +0000 (12:46 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 11 Aug 2023 09:13:20 +0000 (12:13 +0300)
Use helper function is_zero_ether_addr() for checking empty bssid
value in hostapd_driver_init().

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Manaswini Paluri <quic_mpaluri@quicinc.com>
hostapd/main.c

index 336203ea3ffe95a5a15da171cb434fa1afeba54d..aac2a81deac2eb3d2b82204535d365d43f0aafd1 100644 (file)
@@ -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(&params, 0, sizeof(params));