diff mbox series

[v2,2/2] AP: Use is_zero_ether_addr() to check if BSSID is NULL

Message ID 20230725071658.15731-2-quic_mpaluri@quicinc.com
State Accepted
Headers show
Series [v2,1/2] AP: Add configuration option to specify the desired MLD address | expand

Commit Message

Manaswini Paluri July 25, 2023, 7:16 a.m. UTC
From: Ilan Peer <ilan.peer@intel.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hostapd/main.c b/hostapd/main.c
index ac9a47a48..4b730b6ef 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(&params, 0, sizeof(params));