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

login
register
mail settings
Submitter Bartosz.Markowski@tieto.com
Date Jan. 31, 2014, 3:45 p.m.
Message ID <1391183140-3437-3-git-send-email-bartosz.markowski@tieto.com>
Download mbox | patch
Permalink /patch/315713/
State New
Headers show

Comments

Bartosz.Markowski@tieto.com - Jan. 31, 2014, 3:45 p.m.
From: Michal Kazior <michal.kazior@tieto.com>

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

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

Patch

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