[PATCH 2/2] nl80211: print channel switch error code

Bartosz Markowski bartosz.markowski
Fri Jan 31 07:45:40 PST 2014


From: Michal Kazior <michal.kazior at tieto.com>

This makes it easier to understand why/how channel
switch command fails.

Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
---
 src/drivers/driver_nl80211.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 77149ba..b82a13d 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -11647,7 +11647,7 @@ nla_put_failure:
 	ret = -ENOBUFS;
 error:
 	nlmsg_free(msg);
-	wpa_printf(MSG_DEBUG, "nl80211: Could not build channel switch request");
+	wpa_printf(MSG_DEBUG, "nl80211: Could not build channel switch request err=%d", ret);
 	return ret;
 }
 
-- 
1.7.9.5




More information about the Hostap mailing list