summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/wil6210/ioctl.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-03-09 10:30:37 +0200
committerKyle Yan <kyan@codeaurora.org>2016-05-27 14:53:02 -0700
commitf696bf2b3ca9ec77a69ad0e18f53e8cf2497ecc2 (patch)
tree3d7c0b90a7fcb5817b217eb191902c1b87afbd06 /drivers/net/wireless/ath/wil6210/ioctl.c
parent640664b4d9f2be516442f43ab16f1dbc9da9780d (diff)
wil6210: clean ioctl debug message
Fix a debug message related to IOCTL that was incorrectly logged with the MISC category, and move it inside wil_ioctl so it will always be logged even if we call wil_ioctl from other places. Change-Id: I3cf69b18f195e5db01a1f5832013342c9f481286 Signed-off-by: Lior David <qca_liord@qca.qualcomm.com> Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Git-commit: 6777e71ca91ea488488362a919900488e0ade3f2 Git-repo: https://github.com/kvalo/ath.git CRs-Fixed: 982931 [merez@codeaurora.org: fixed conflict due to android private ioctl] Signed-off-by: Maya Erez <merez@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/ioctl.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/ioctl.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/wil6210/ioctl.c b/drivers/net/wireless/ath/wil6210/ioctl.c
index ce7040fdbf6a..47058ccccb5b 100644
--- a/drivers/net/wireless/ath/wil6210/ioctl.c
+++ b/drivers/net/wireless/ath/wil6210/ioctl.c
@@ -215,15 +215,23 @@ out_free:
}
int wil_ioctl(struct wil6210_priv *wil, void __user *data, int cmd)
{
+ int ret;
+
switch (cmd) {
case WIL_IOCTL_MEMIO:
- return wil_ioc_memio_dword(wil, data);
+ ret = wil_ioc_memio_dword(wil, data);
+ break;
case WIL_IOCTL_MEMIO_BLOCK:
- return wil_ioc_memio_block(wil, data);
+ ret = wil_ioc_memio_block(wil, data);
+ break;
case (SIOCDEVPRIVATE + 1):
- return wil_ioc_android(wil, data);
+ ret = wil_ioc_android(wil, data);
+ break;
default:
wil_dbg_ioctl(wil, "Unsupported IOCTL 0x%04x\n", cmd);
return -ENOIOCTLCMD;
}
+
+ wil_dbg_ioctl(wil, "ioctl(0x%04x) -> %d\n", cmd, ret);
+ return ret;
}