From 6d3e24d3e38773ecd7e964063322d05d31116867 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Thu, 8 Jun 2017 11:17:54 +0300 Subject: [PATCH] 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 --- src/ap/ap_drv_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/ap_drv_ops.h b/src/ap/ap_drv_ops.h index b598015a9..bf8169ddd 100644 --- a/src/ap/ap_drv_ops.h +++ b/src/ap/ap_drv_ops.h @@ -276,7 +276,7 @@ static inline int hostapd_drv_switch_channel(struct hostapd_data *hapd, { if (hapd->driver == NULL || hapd->driver->switch_channel == NULL || hapd->drv_priv == NULL) - return -ENOTSUP; + return -1; return hapd->driver->switch_channel(hapd->drv_priv, settings); } -- 2.47.2