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 <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Manaswini Paluri <quic_mpaluri@quicinc.com>
This commit is contained in:
Ilan Peer 2023-07-25 12:46:58 +05:30 committed by Jouni Malinen
parent 763a19286e
commit bd209633eb

View file

@ -218,7 +218,7 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
#endif /* CONFIG_IEEE80211BE */ #endif /* CONFIG_IEEE80211BE */
/* Initialize the driver interface */ /* 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; b = NULL;
os_memset(&params, 0, sizeof(params)); os_memset(&params, 0, sizeof(params));