diff mbox

ap: Fix return value in hostapd_drv_switch_channel()

Message ID 1496909880-3511-1-git-send-email-andrei.otcheretianski@intel.com
State Accepted
Headers show

Commit Message

Andrei Otcheretianski June 8, 2017, 8:17 a.m. UTC
From: Ilan Peer <ilan.peer@intel.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen July 8, 2017, 7:32 p.m. UTC | #1
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 mbox

Patch

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);
 }