]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ap: Fix return value in hostapd_drv_switch_channel()
authorIlan Peer <ilan.peer@intel.com>
Thu, 8 Jun 2017 08:17:54 +0000 (11:17 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 8 Jul 2017 13:06:38 +0000 (16:06 +0300)
The documentation in driver.h state that in case of an error
-1 is returned.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/ap_drv_ops.h

index b598015a919b5ffa36fe26de1ea22a92c0f19764..bf8169ddd8565fc80b364557194e4ad72df135d8 100644 (file)
@@ -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);
 }