On 8/18/2019 4:15 PM, Alexei Avshalom Lazar wrote:
Signed-off-by: Alexei Avshalom Lazar <ailizaro@xxxxxxxxxxxxxx>
---
drivers/net/wireless/ath/wil6210/Kconfig | 11 ++
drivers/net/wireless/ath/wil6210/Makefile | 1 +
drivers/net/wireless/ath/wil6210/ioctl.c | 245 +++++++++++++++++++++++++++++
drivers/net/wireless/ath/wil6210/netdev.c | 8 +
drivers/net/wireless/ath/wil6210/wil6210.h | 1 +
include/uapi/linux/wil6210_uapi.h | 77 +++++++++
6 files changed, 343 insertions(+)
create mode 100644 drivers/net/wireless/ath/wil6210/ioctl.c
create mode 100644 include/uapi/linux/wil6210_uapi.h
diff --git a/drivers/net/wireless/ath/wil6210/Kconfig b/drivers/net/wireless/ath/wil6210/Kconfig
index 0d1a8da..48b14de 100644
--- a/drivers/net/wireless/ath/wil6210/Kconfig
+++ b/drivers/net/wireless/ath/wil6210/Kconfig
@@ -53,3 +53,14 @@ config WIL6210_DEBUGFS
option if you are interested in debugging the driver.
If unsure, say Y to make it easier to debug problems.
+
+config WIL6210_WRITE_IOCTL
+ bool "wil6210 write ioctl to the device"
+ depends on WIL6210
+ default y
+ help
+ Say Y here to allow write-access from user-space to
+ the device memory through ioctl. This is useful for
+ debugging purposes only.
+
+ If unsure, say N.
I was about to scream in horror seeing this patch, but noticed you
rectified it in v8. *Phew*
Regards,
Arend