aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2017-06-08 08:17:54 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-08 13:06:38 (GMT)
commit6d3e24d3e38773ecd7e964063322d05d31116867 (patch)
tree835ca94b273318104985ec736b8be680dde1e862 /src
parent0b6cbc4e6452233b9d84bc6bb6fdcd79ed973161 (diff)
downloadhostap-6d3e24d3e38773ecd7e964063322d05d31116867.zip
hostap-6d3e24d3e38773ecd7e964063322d05d31116867.tar.gz
hostap-6d3e24d3e38773ecd7e964063322d05d31116867.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/ap/ap_drv_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.h b/src/ap/ap_drv_ops.h
index b598015..bf8169d 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);
}