From: Ilan Peer Date: Thu, 8 Jun 2017 08:17:54 +0000 (+0300) Subject: ap: Fix return value in hostapd_drv_switch_channel() X-Git-Tag: hostap_2_7~1202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d3e24d3e38773ecd7e964063322d05d31116867;p=thirdparty%2Fhostap.git 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 --- 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); }