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:
parent
763a19286e
commit
bd209633eb
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue