Skip to contentSkip to conversation

wireless: add wil6210

PATCH New Luis R. Rodriguez 3 participants 5 messages Dec 20, 2012 – Jan 4, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v12 1/1 wireless: add wil6210

From: "Luis R. Rodriguez" <[email protected]>

John,

I've taken Vladimir's work and adjusted the Kconfig, added MAINTAINERS and goes reviewed by me. We'd like this in for the 3.8-rc series and as such the code identified as generic will be moved to generic places in the development cycle, for not it goes stuffed under dbg_hexdump.h. I also folded his second patch into this one that adds the entries to Kconfig to enable the module. The concerns that Johannes had expressed of using PCP mode emulated as AP mode are addressed by removing that support for now. I've also nuked the Documentation/ pages in favor more for ensuring we keep up to date the wiki page.

The volatile use cases seem odd but the hardware has issues using the supplied IO accessors and as such it provdes its own for now. If and when that can be addressed each use case will be addressed. Other checkpatch warnings are spurious.

In case the patch does not make it to your inbox you can wget it here:

http://bombadil.infradead.org/~mcgrof/2012/12/20/0001-wireless-add-new-wil6210-802.11ad-60GHz-driver.patch
sha256sum:
dd4d8927c24a7906f94b80af7438b3fbb220d2f304d1a5ea7d7d200a8c650418

Vladimir Kondratiev (1):
wireless: add new wil6210 802.11ad 60GHz driver

 MAINTAINERS                                    |    8 +
 drivers/net/wireless/ath/Kconfig               |    1 +
 drivers/net/wireless/ath/Makefile              |    1 +
 drivers/net/wireless/ath/wil6210/Kconfig       |   30 +
 drivers/net/wireless/ath/wil6210/Makefile      |   14 +
 drivers/net/wireless/ath/wil6210/cfg80211.c    |  573 ++++++++++++
 drivers/net/wireless/ath/wil6210/dbg_hexdump.h |   30 +
 drivers/net/wireless/ath/wil6210/debugfs.c     |  603 +++++++++++++
 drivers/net/wireless/ath/wil6210/interrupt.c   |  471 ++++++++++
 drivers/net/wireless/ath/wil6210/main.c        |  407 +++++++++
 drivers/net/wireless/ath/wil6210/netdev.c      |  157 ++++
 drivers/net/wireless/ath/wil6210/pcie_bus.c    |  223 +++++
 drivers/net/wireless/ath/wil6210/txrx.c        |  871 ++++++++++++++++++
 drivers/net/wireless/ath/wil6210/txrx.h        |  362 ++++++++
 drivers/net/wireless/ath/wil6210/wil6210.h     |  363 ++++++++
 drivers/net/wireless/ath/wil6210/wmi.c         |  975 +++++++++++++++++++++
 drivers/net/wireless/ath/wil6210/wmi.h         | 1116 ++++++++++++++++++++++++
 17 files changed, 6205 insertions(+)
 create mode 100644 drivers/net/wireless/ath/wil6210/Kconfig
 create mode 100644 drivers/net/wireless/ath/wil6210/Makefile
 create mode 100644 drivers/net/wireless/ath/wil6210/cfg80211.c
 create mode 100644 drivers/net/wireless/ath/wil6210/dbg_hexdump.h
 create mode 100644 drivers/net/wireless/ath/wil6210/debugfs.c
 create mode 100644 drivers/net/wireless/ath/wil6210/interrupt.c
 create mode 100644 drivers/net/wireless/ath/wil6210/main.c
 create mode 100644 drivers/net/wireless/ath/wil6210/netdev.c
 create mode 100644 drivers/net/wireless/ath/wil6210/pcie_bus.c
 create mode 100644 drivers/net/wireless/ath/wil6210/txrx.c
 create mode 100644 drivers/net/wireless/ath/wil6210/txrx.h
 create mode 100644 drivers/net/wireless/ath/wil6210/wil6210.h
 create mode 100644 drivers/net/wireless/ath/wil6210/wmi.c
 create mode 100644 drivers/net/wireless/ath/wil6210/wmi.h
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v12 1/1 wireless: add new wil6210 802.11ad 60GHz driver

From: Vladimir Kondratiev <[email protected]>

This adds support for the 60 GHz 802.11ad Wilocity card through a new driver, wil6210. Wilocity implemented the firmware, QCA maintains the device driver.

Currently supported:

- STA: with security
- AP: limited to 1 connected STA, security disabled
- Monitor: due to a hardware/firmware limitation either control or non-control frames are monitored

Using a STA and AP with this drive, one can assemble a fully functional BSS. Throughput of 1.2Gbps is achieved with iperf.

The wil6210 cards have on-board flash memory for the firmware, the cards comes pre-flashed and no firmware download is required.

For more details see:

http://wireless.kernel.org/en/users/Drivers/wil6210

---
 MAINTAINERS                                    |    8 +
 drivers/net/wireless/ath/Kconfig               |    1 +
 drivers/net/wireless/ath/Makefile              |    1 +
 drivers/net/wireless/ath/wil6210/Kconfig       |   30 +
 drivers/net/wireless/ath/wil6210/Makefile      |   14 +
 drivers/net/wireless/ath/wil6210/cfg80211.c    |  573 ++++++++++++
 drivers/net/wireless/ath/wil6210/dbg_hexdump.h |   30 +
 drivers/net/wireless/ath/wil6210/debugfs.c     |  603 +++++++++++++
 drivers/net/wireless/ath/wil6210/interrupt.c   |  471 ++++++++++
 drivers/net/wireless/ath/wil6210/main.c        |  407 +++++++++
 drivers/net/wireless/ath/wil6210/netdev.c      |  157 ++++
 drivers/net/wireless/ath/wil6210/pcie_bus.c    |  223 +++++
 drivers/net/wireless/ath/wil6210/txrx.c        |  871 ++++++++++++++++++
 drivers/net/wireless/ath/wil6210/txrx.h        |  362 ++++++++
 drivers/net/wireless/ath/wil6210/wil6210.h     |  363 ++++++++
 drivers/net/wireless/ath/wil6210/wmi.c         |  975 +++++++++++++++++++++
 drivers/net/wireless/ath/wil6210/wmi.h         | 1116 ++++++++++++++++++++++++
 17 files changed, 6205 insertions(+)
 create mode 100644 drivers/net/wireless/ath/wil6210/Kconfig
 create mode 100644 drivers/net/wireless/ath/wil6210/Makefile
 create mode 100644 drivers/net/wireless/ath/wil6210/cfg80211.c
 create mode 100644 drivers/net/wireless/ath/wil6210/dbg_hexdump.h
 create mode 100644 drivers/net/wireless/ath/wil6210/debugfs.c
 create mode 100644 drivers/net/wireless/ath/wil6210/interrupt.c
 create mode 100644 drivers/net/wireless/ath/wil6210/main.c
 create mode 100644 drivers/net/wireless/ath/wil6210/netdev.c
 create mode 100644 drivers/net/wireless/ath/wil6210/pcie_bus.c
 create mode 100644 drivers/net/wireless/ath/wil6210/txrx.c
 create mode 100644 drivers/net/wireless/ath/wil6210/txrx.h
 create mode 100644 drivers/net/wireless/ath/wil6210/wil6210.h
 create mode 100644 drivers/net/wireless/ath/wil6210/wmi.c
 create mode 100644 drivers/net/wireless/ath/wil6210/wmi.h
MAINTAINERS +8 -0
index 4e2a1f6..16c3506 100644
@@ -1353,6 +1353,14 @@ W:	http://wireless.kernel.org/en/users/Drivers/ath9k
 S:	Supported
 F:	drivers/net/wireless/ath/ath9k/
 
+WILOCITY WIL6210 WIRELESS DRIVER
+M:	Vladimir Kondratiev <[email protected]>
+L:	[email protected]
+L:	[email protected]
+S:	Supported
+W:	http://wireless.kernel.org/en/users/Drivers/wil6210
+F:	drivers/net/wireless/ath/wil6210/
+
 CARL9170 LINUX COMMUNITY WIRELESS DRIVER
 M:	Christian Lamparter <[email protected]>
 L:	[email protected]
drivers/net/wireless/ath/Kconfig +1 -0
index 1a67a4f..2c02b4e 100644
@@ -30,5 +30,6 @@ source "drivers/net/wireless/ath/ath9k/Kconfig"
 source "drivers/net/wireless/ath/carl9170/Kconfig"
 source "drivers/net/wireless/ath/ath6kl/Kconfig"
 source "drivers/net/wireless/ath/ar5523/Kconfig"
+source "drivers/net/wireless/ath/wil6210/Kconfig"
 
 endif
drivers/net/wireless/ath/Makefile +1 -0
index 1e18621..97b964d 100644
@@ -3,6 +3,7 @@ obj-$(CONFIG_ATH9K_HW)		+= ath9k/
 obj-$(CONFIG_CARL9170)		+= carl9170/
 obj-$(CONFIG_ATH6KL)		+= ath6kl/
 obj-$(CONFIG_AR5523)		+= ar5523/
+obj-$(CONFIG_WIL6210)		+= wil6210/
 
 obj-$(CONFIG_ATH_COMMON)	+= ath.o
 
drivers/net/wireless/ath/wil6210/Kconfig new file +30 -0
new file mode 100644
index 0000000..ef6166ae
@@ -0,0 +1,30 @@
+config WIL6210
+	tristate "Wilocity 60g WiFi card wil6210 support"
+	depends on CFG80211
+	depends on PCI
+	default n
+	---help---
+	  This module adds support for wireless adapter based on
+	  wil6210 chip by Wilocity. It supports operation on the
+	  60 GHz band, covered by the IEEE802.11ad standard.
+
+	  http://wireless.kernel.org/en/users/Drivers/wil6210
+
+	  If you choose to build it as a module, it will be called
+	  wil6210
+
+config WIL6210_ISR_COR
+	bool "Use Clear-On-Read mode for ISR registers for wil6210"
+	depends on WIL6210
+	default y
+	---help---
+	  ISR registers on wil6210 chip may operate in either
+	  COR (Clear-On-Read) or W1C (Write-1-to-Clear) mode.
+	  For production code, use COR (say y); is default since
+	  it saves extra target transaction;
+	  For ISR debug, use W1C (say n); is allows to monitor ISR
+	  registers with debugfs. If COR were used, ISR would
+	  self-clear when accessed for debug purposes, it makes
+	  such monitoring impossible.
+	  Say y unless you debug interrupts
+
drivers/net/wireless/ath/wil6210/Makefile new file +14 -0
new file mode 100644
index 0000000..7713e4a
@@ -0,0 +1,14 @@
+obj-$(CONFIG_WIL6210) += wil6210.o
+
+wil6210-objs := main.o
+wil6210-objs += netdev.o
+wil6210-objs += cfg80211.o
+wil6210-objs += pcie_bus.o
+wil6210-objs += debugfs.o
+wil6210-objs += wmi.o
+wil6210-objs += interrupt.o
+wil6210-objs += txrx.o
+
+subdir-ccflags-y += -Werror
+subdir-ccflags-y += -D__CHECK_ENDIAN__
+
drivers/net/wireless/ath/wil6210/cfg80211.c new file +573 -0

573 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/dbg_hexdump.h new file +30 -0
new file mode 100644
index 0000000..6a315ba
@@ -0,0 +1,30 @@
+#ifndef WIL_DBG_HEXDUMP_H_
+#define WIL_DBG_HEXDUMP_H_
+
+#if defined(CONFIG_DYNAMIC_DEBUG)
+#define wil_dynamic_hex_dump(prefix_str, prefix_type, rowsize,	\
+			     groupsize, buf, len, ascii)	\
+do {								\
+	DEFINE_DYNAMIC_DEBUG_METADATA(descriptor,		\
+		__builtin_constant_p(prefix_str) ? prefix_str : "hexdump");\
+	if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT))	\
+		print_hex_dump(KERN_DEBUG, prefix_str,		\
+			       prefix_type, rowsize, groupsize,	\
+			       buf, len, ascii);		\
+} while (0)
+
+#define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize,	\
+				 groupsize, buf, len, ascii)		\
+	wil_dynamic_hex_dump(prefix_str, prefix_type, rowsize,		\
+			     groupsize, buf, len, ascii)
+
+#define print_hex_dump_bytes(prefix_str, prefix_type, buf, len)	\
+	wil_dynamic_hex_dump(prefix_str, prefix_type, 16, 1, buf, len, true)
+#else /* defined(CONFIG_DYNAMIC_DEBUG) */
+#define wil_print_hex_dump_debug(prefix_str, prefix_type, rowsize,	\
+				 groupsize, buf, len, ascii)		\
+	print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize,	\
+		       groupsize, buf, len, ascii)
+#endif /* defined(CONFIG_DYNAMIC_DEBUG) */
+
+#endif /* WIL_DBG_HEXDUMP_H_ */
drivers/net/wireless/ath/wil6210/debugfs.c new file +603 -0

603 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/interrupt.c new file +471 -0

471 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/main.c new file +407 -0

407 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/netdev.c new file +157 -0

157 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/pcie_bus.c new file +223 -0

223 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/txrx.c new file +871 -0

465 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/txrx.h new file +362 -0

362 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/wil6210.h new file +363 -0

363 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/wmi.c new file +975 -0

975 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/wmi.h new file +1116 -0

1,116 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.10.4

Part of the diff is not shown here. View the raw message.

#2 lore raw

Re: [PATCH v12] wireless: add new wil6210 802.11ad 60GHz driver

Quoted 6 lines · Luis R. Rodriguez

From: Vladimir Kondratiev <[email protected]>

This adds support for the 60 GHz 802.11ad Wilocity card through a new driver, wil6210. Wilocity implemented the firmware, QCA maintains the device driver.

Hi John,

What is status of this patch?

Thanks, Vladimir

#3 lore raw

Re: [PATCH v12] wireless: add new wil6210 802.11ad 60GHz driver

Quoted 8 lines · Vladimir Kondratiev
Quoted 6 lines · Luis R. Rodriguez

From: Vladimir Kondratiev <[email protected]>

This adds support for the 60 GHz 802.11ad Wilocity card through a new driver, wil6210. Wilocity implemented the firmware, QCA maintains the device driver.

Quoted 5 lines

Hi John,

What is status of this patch?

Thanks, Vladimir

I've been on vacation since before Christmas. I'll try to get to this soon.

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#4 lore raw

Re: [PATCH v12] wireless: add new wil6210 802.11ad 60GHz driver

Quoted 11 lines · John W. Linville
Quoted 10 lines · Vladimir Kondratiev
Quoted 6 lines · Luis R. Rodriguez

From: Vladimir Kondratiev <[email protected]>

This adds support for the 60 GHz 802.11ad Wilocity card through a new driver, wil6210. Wilocity implemented the firmware, QCA maintains the device driver.

Hi John,

Quoted 8 lines
Quoted 3 lines

What is status of this patch?

Thanks, Vladimir

I've been on vacation since before Christmas. I'll try to get to this soon.

John

I'm applying this, intending to pass it to Dave early next week.

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.