From: Ilan Peer <ilan.peer@xxxxxxxxx> Use helper function is_zero_ether_addr() for checking empty bssid value in hostapd_driver_init(). Signed-off-by: Ilan Peer <ilan.peer@xxxxxxxxx> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx> Signed-off-by: Manaswini Paluri <quic_mpaluri@xxxxxxxxxxx> --- hostapd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(¶ms, 0, sizeof(params)); -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap