mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
ap: Fix return value in hostapd_drv_switch_channel()
The documentation in driver.h state that in case of an error -1 is returned. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
0b6cbc4e64
commit
6d3e24d3e3
@ -276,7 +276,7 @@ static inline int hostapd_drv_switch_channel(struct hostapd_data *hapd,
|
|||||||
{
|
{
|
||||||
if (hapd->driver == NULL || hapd->driver->switch_channel == NULL ||
|
if (hapd->driver == NULL || hapd->driver->switch_channel == NULL ||
|
||||||
hapd->drv_priv == NULL)
|
hapd->drv_priv == NULL)
|
||||||
return -ENOTSUP;
|
return -1;
|
||||||
|
|
||||||
return hapd->driver->switch_channel(hapd->drv_priv, settings);
|
return hapd->driver->switch_channel(hapd->drv_priv, settings);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user