Message ID | 1496909880-3511-1-git-send-email-andrei.otcheretianski@intel.com |
---|---|
State | Accepted |
Headers | show |
On Thu, Jun 08, 2017 at 11:17:54AM +0300, Andrei Otcheretianski wrote: > The documentation in driver.h state that in case of an error > -1 is returned. Thanks, applied.
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); }