[RFC v3 08/19] mt76x2: add buffer len to mt76x2_mac_write_txwi signature

2018-06-10 Thread Lorenzo Bianconi
Add frame length to mt76x2_mac_write_txwi routine signature and do not fetch it from skb since txwi data structure is added at the beginning of the skb for usb based devices and mt76x2_mac_write_txwi will be shared between pci and usb related code Signed-off-by: Lorenzo Bianconi ---

[RFC v3 02/19] mt76x2: move mt76x2_fw_header and mt76x2_patch_header definitions in mcu.h

2018-06-10 Thread Lorenzo Bianconi
move mt76x2_fw_header and mt76x2_patch_header definitions in mcu.h in order to reuse them in mt76x2u mcu related code Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2_mcu.c | 17 - drivers/net/wireless/mediatek/mt76/mt76x2_mcu.h | 17

[RFC v3 14/19] mt76: add mt76x2_init_common to mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
Move init related code shared between mt76x2 and mt76x2u in mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 3 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 6 + .../net/wireless/mediatek/mt76/mt76x2_init.c | 232

[RFC v3 17/19] mt76: move mt76x2_debugfs in mt76-common module

2018-06-10 Thread Lorenzo Bianconi
Move mt76x2_debugfs code in mt76-common module since it is shared between mt76x2 and mt76x2u Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 5 +++-- drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c | 1 + 2 files changed, 4 insertions(+), 2

[RFC v3 11/19] mt76: introduce mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
In order to remove usb dependency from pcie code, add mt76x2-common as a container of shared code between mt76x2 and mt76x2u. Add eeprom code to mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Kconfig | 5 +

[RFC v3 18/19] mt76: add usb support to mt76 layer

2018-06-10 Thread Lorenzo Bianconi
This will be used by drivers for MT76x2u based devices Tested-by: Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Kconfig| 4 + drivers/net/wireless/mediatek/mt76/Makefile | 7 +- drivers/net/wireless/mediatek/mt76/dma.h | 5 +

[RFC v3 19/19] mt76: add driver code for MT76x2u based devices

2018-06-10 Thread Lorenzo Bianconi
MT76x2u is a 2x2 USB 802.11ac chipset by MediaTek. This driver currently support station mode Tested-by: Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Kconfig| 10 + drivers/net/wireless/mediatek/mt76/Makefile | 5 + drivers/net/wireless/mediatek/mt76/mt76x2.h

[RFC v3 07/19] mt76x2: add napi struct to mt76_rx_poll_complete/mt76_rx_complete signatures

2018-06-10 Thread Lorenzo Bianconi
in order to reuse mt76_rx_complete routine supporting mt76x2u based devices add napi struct to mt76_rx_poll_complete and mt76_rx_complete routine signatures and do not fetch it according to the rx queue index Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/agg-rx.c | 2

[RFC v3 06/19] mt76x2: introduce mt76x2_mac_load_tx_status routine

2018-06-10 Thread Lorenzo Bianconi
Add mt76x2_mac_load_tx_status routine since tx stats register map is shared between usb and pci based devices but usb devices do not have a tx stat irq line as pcie ones and it is necessary to load tx statistics using a workqueue Signed-off-by: Lorenzo Bianconi ---

[RFC v3 03/19] mt76x2: move utility routines in mt76x2.h

2018-06-10 Thread Lorenzo Bianconi
In order to reuse them supporting mt76x2u based devices, move mt76x2_wait_for_mac, wait_for_wpdma and mt76x2_channel_silent in mt76x2.h Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2.h | 40 +++ .../net/wireless/mediatek/mt76/mt76x2_init.c | 28

[RFC v3 15/19] mt76: add mt76x2_common to mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
Move core related code shared between mt76x2 and mt76x2u in mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 21 ++ .../wireless/mediatek/mt76/mt76x2_common.c| 348

[RFC v3 13/19] mt76: add mt76x2_mac_common to mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
Move mac related code shared between mt76x2 and mt76x2u in mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 7 +- .../net/wireless/mediatek/mt76/mt76x2_init.c | 35 -

[RFC v3 05/19] mt76x2: move interface_modes definition in mt76x2_init

2018-06-10 Thread Lorenzo Bianconi
Move wiphy interface_modes definition in mt76x2_init in order to reuse mt76_register_device routine supporting mt76x2u based chipsets since mt76x2u currently supports just sta mode Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mac80211.c| 8

[RFC v3 16/19] mt76: add mt76x2_phy_common to mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
Move phy related code shared between mt76x2 and mt76x2u in mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 8 + .../net/wireless/mediatek/mt76/mt76x2_phy.c | 281

[RFC v3 12/19] mt76: add mt76x2_tx_common to mt76x2-common module

2018-06-10 Thread Lorenzo Bianconi
Move tx related code shared between mt76x2 and mt76x2u in mt76x2-common module Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2.h | 2 + .../net/wireless/mediatek/mt76/mt76x2_tx.c| 123 ---

[RFC v3 00/19] add mt76x2u support to mt76 driver

2018-06-10 Thread Lorenzo Bianconi
Add usb layer to mt76 driver in order to support mt76x2u based devices. Move common code between pci and usb in mt76x2-common module in order to remove pci dependency from usb driver Changes since RFCv2: - move usb layer in a separate module - add usb scatter/gather to properly support A-MSDU -

[RFC v3 10/19] mt76: introduce tx_queue_skb function pointer in mt76_bus_ops

2018-06-10 Thread Lorenzo Bianconi
Add tx_queue_skb function pointer in mt76_bus_ops since mt76x2u based devices do not map mt76x2_txwi on dma buffers and it is not possible to reuse mt76_dma_tx_queue_skb() routine to enqueue tx frames to hw buffers Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/dma.c |

Re: Atheros AR9462 - 5Ghz not working

2018-06-10 Thread mgreger
mgre...@cinci.rr.com wrote: > > Sedat Dilek wrote: > > On Tue, May 22, 2018 at 7:21 PM, wrote: > > > I've run out of ideas and am hoping someone here can help. > > > > > > All I want to do is connect a client to my 5Ghz network. > > > > > > My client: > > > OS is Debian stable

[PATCH v2 3/7] wil6210: initialize TX and RX enhanced DMA rings

2018-06-10 Thread Maya Erez
From: Gidon Studinski Enhanced DMA design includes the following rings: - Single RX descriptor ring is used for all VIFs - Multiple RX status rings are supported, to allow RSS - TX descriptor ring is allocated per connection - A single TX status ring is used for all TX descriptor rings This

[PATCH v2 1/7] wil6210: add support for Talyn-MB (Talyn ver 2.0) device

2018-06-10 Thread Maya Erez
Add changes to support initialization of Talyn-MB wil6210 device: - Add definition for Talyn-MB new JTAG id - Define talyn_mb_fw_mapping array - Add Talyn-MB reset sequence Signed-off-by: Maya Erez --- drivers/net/wireless/ath/wil6210/main.c | 48 +++--

[PATCH v2 6/7] wil6210: add support for enhanced DMA debugfs

2018-06-10 Thread Maya Erez
Add debugfs support for enhanced DMA TX and RX descriptor rings, TX and RX status rings and RX buffer management. Run the following command to print the TX and RX status rings: cat srings Run the following command in order to select the status ring: echo STATUS_RING_IDX > dbg_sring_index Run

[PATCH v2 0/7] wil6210 patches

2018-06-10 Thread Maya Erez
Changes from v1: - Removal of module parameters - Addition of debugfs entries for configuring enhanced DMA - Fixing kbuild bot error - Enabling AMSDU by default (based on FW support) - Fixing L2 translation mode The following set of patches add support for new wil6210 device (Talyn ver 2.0): -

[PATCH v2 4/7] wil6210: add support for enhanced DMA TX data flows

2018-06-10 Thread Maya Erez
The enhanced DMA TX data path is handled using a descriptor ring per connection and a single status ring. The driver gets TX completions via the TX status ring. Each status message points to the completed descriptor ring and includes the number of completed descriptors in this ring. Non TSO

[PATCH v2 7/7] wil6210: add support for Talyn-MB boot flow

2018-06-10 Thread Maya Erez
Talyn-MB introduces various of FW download options: FW download via PCIe, SPI or PBL for secured access. The boot and FW download path is determined based on the OTP HW register. Driver reads this register as part of the SW reset flow and performs the appropriate initialization sequence.

[PATCH v2 2/7] wil6210: add support for enhanced DMA structures

2018-06-10 Thread Maya Erez
From: Gidon Studinski In enhanced DMA the vrings are handled internally by the FW and are not exposed to the driver. Instead, the driver handles descriptor rings, which are mapped by the FW to vrings. The completions of the TX and RX descriptors are notified to the driver using status rings.

[PATCH v2 5/7] wil6210: add support for enhanced DMA RX data flows

2018-06-10 Thread Maya Erez
From: Gidon Studinski Enhanced DMA RX data path is handled using a single RX descriptor ring for all VIFs. Multiple RX status rings are supported, to allow RSS and multi MSI support. The driver gets the RX completions via the RX status rings. The RX status message includes the completed RX