[PATCH 09/20] rtl8xxxu: Simplify code setting TX buffer boundary

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen With all devices now offering fops->total_page_num, get rid of the if mess for setting the TX buffer boundary. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 8 +--- 1 file

[PATCH 06/20] rtl8xxxu: Switch 8723a to use new rtl8xxxu_init_queue_reserved_page() routine

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This changes the pub-queue value written to REQ_RQPN, however the old code used a hard coded minimum value assuming there would always be an active lo-queue, even when no USB EP was found for it. Signed-off-by: Jes Sorensen

[PATCH 07/20] rtl8xxxu: Switch 8192cu/8188cu devices to use rtl8xxxu_init_queue_reserved_page()

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This was the last user of the old rtl8xxxu_old_init_queue_reserved_page() which can now be removed. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c | 4 1 file changed, 4

[PATCH 11/20] rtl8xxxu: Add interrupt bit definitions for gen2 parts

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen These are primarily needed for SDIO/PCI parts, but the vendor driver still sets them for some USB devices. Signed-off-by: Jes Sorensen --- .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h | 56 ++ 1

[PATCH 05/20] rtl8xxxu: Add TX page defines for 8723b

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This switches the 8723b driver to use the new rtl8xxxu_init_queue_reserved_page() function. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 ++

[PATCH 10/20] rtl8xxxu: Add bit definitions for REG_FPGA0_TX_INFO

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This adds TX antenna selection bit defines for OFDM mode. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 18/20] rtl8xxxu: Split filling of TX descriptors into separate functions

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Split the filling of TX descriptors into a generic portion used on all devices, and format specific helper functions provided in the fops structure. This also cleaned up some mess, even if non harmful, in the handling of txdesc40 descriptors, where

[PATCH 12/20] rtl8xxxu: Use flag to indicate whether device has TX report timer support

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Use a fileops flag to indicate whether the device has TX report timer support. This will make it easier to include future devices such as 8188eu to use the TX report timer. Signed-off-by: Jes Sorensen ---

[PATCH 08/20] rtl8xxxu: Remove now obsolete rtl8xxxu_old_init_queue_reserved_page()

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Switching over the old devices to use the new function allows us to get rid of this legacy. Signed-off-by: Jes Sorensen --- .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 30 ++ 1 file changed, 2

[PATCH 14/20] rtl8xxxu: Introduce fops bitflag indicating type of thermal meter

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Do not rely on TX descriptor size to determine the thermal meter type. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 + drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 1

[PATCH 00/20] rtl8xxxu patches for wireless-drivers-next

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Hi This is a set of patches for the rtl8xxxu driver relative to wireless-drivers-next as of 2016-08-19. It includes a couple of cases where the 8192cu driver is marked as tested. Note while these do move the USB location around, they still stay

[PATCH 17/20] rtl8xxxu: Determine need for shore preamble before updating TX descriptors

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Another patch to move this detection out of the code handling the TX descriptor update. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 12 +++- 1 file changed, 7

[PATCH 19/20] rtl8xxxu: gen1: Fix non static symbol warning

2016-08-19 Thread Jes . Sorensen
From: Wei Yongjun Fixes the following sparse warning: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:898:1: warning: symbol 'rtl8xxxu_gen1_h2c_cmd' was not declared. Should it be static? Signed-off-by: Wei Yongjun

[PATCH 16/20] rtl8xxxu: Determine the need for SGI before handling specific TX desc formats

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen In order to be able to split out the TX descriptor handling code, determine in advance the need to mark SGI. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 14 -- 1 file

[PATCH 15/20] rtl8xxxu: Simplify calculating of hw value used for setting TX rate

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Calculating the value in one place rather than using one calculation in one place and a different one for management frames in another location makes little sense. Signed-off-by: Jes Sorensen ---

[PATCH 20/20] net: wireless: rtl8xxxu: Make rtl8xxxu_ampdu_action less chatty

2016-08-19 Thread Jes . Sorensen
From: Hans de Goede On my home network rtl8xxxu is spamming the log with IEEE80211_AMPDU_RX_START / IEEE80211_AMPDU_RX_STOP every few seconds turn these messages into debug messages. Signed-off-by: Hans de Goede Signed-off-by: Jes Sorensen

[PATCH 13/20] rtl8xxxu: Convert flags in rtl8xxxu_fileops to bitflags

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This leaves space for a few more flags within the same space. Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 03/20] rtl8xxxu: Fix error handling if rtl8xxxu_init_device() fails

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen For some reason we lost the code bailing if rtl8xxxu_init_device() returned an error. This catches the error and also cleans up the error handling. Signed-off-by: Jes Sorensen ---

[PATCH 04/20] rtl8xxxu: Add TP-Link TL-WN823N v2 to list of supported devices

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen This is an rtl8192eu based dongle (the v1 is an rtl8192cu). Reported and tested by Myckel Habets. Reported-by: Myckel Habets Signed-off-by: Jes Sorensen ---

[PATCH 02/20] rtl8xxxu: Mark 0x2001:0x3308 as tested

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen D-Link DWA-121 is reported as working. Reported-by: Stefano Bravi Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 9 +++-- 1 file changed, 7

[PATCH 01/20] rtl8xxxu: Mark 0x20f4:0x648b as tested

2016-08-19 Thread Jes . Sorensen
From: Jes Sorensen Successfully tested by Jocelyn Mayer Reported-by: J. Mayer Signed-off-by: Jes Sorensen --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 9 +++-- 1 file changed, 7 insertions(+), 2

[PATCH] cfg80211: Add stub for cfg80211_get_station()

2016-08-19 Thread Linus Lüssing
This allows modules using this function (currently: batman-adv) to compile even if cfg80211 is not built at all, thus relaxing dependencies. Signed-off-by: Linus Lüssing --- include/net/cfg80211.h | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [PATCHv7 4/4] mt7601u: use linux/bitfield.h

2016-08-19 Thread Arend Van Spriel
On 19-8-2016 18:44, Jakub Kicinski wrote: > Use the newly added linux/bitfield.h. > > Reviewed-by: Dinan Gunawardena > Signed-off-by: Jakub Kicinski > --- > drivers/net/wireless/mediatek/mt7601u/dma.c | 2 +- >

[PATCHv7 1/4] add basic register-field manipulation macros

2016-08-19 Thread Jakub Kicinski
Common approach to accessing register fields is to define structures or sets of macros containing mask and shift pair. Operations on the register are then performed as follows: field = (reg >> shift) & mask; reg &= ~(mask << shift); reg |= (field & mask) << shift; Defining shift and mask

[PATCHv7 3/4] mt7601u: remove unnecessary include

2016-08-19 Thread Jakub Kicinski
There is no need to include linux/version.h in a in-tree driver. Reviewed-by: Dinan Gunawardena Signed-off-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/main.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCHv7 2/4] mt7601u: remove redefinition of GENMASK

2016-08-19 Thread Jakub Kicinski
Remove redefinition of GENMASK which should not be there in the upstream version of the code. Reviewed-by: Dinan Gunawardena Signed-off-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/regs.h | 4 1 file changed, 4

[PATCHv7 4/4] mt7601u: use linux/bitfield.h

2016-08-19 Thread Jakub Kicinski
Use the newly added linux/bitfield.h. Reviewed-by: Dinan Gunawardena Signed-off-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/dma.c | 2 +- drivers/net/wireless/mediatek/mt7601u/dma.h | 10 ++--

[PATCHv7 0/4] register-field manipulation macros

2016-08-19 Thread Jakub Kicinski
Hi! Looks like we're good to go :) I've thrown in two mt7601u cleanups, macros are as approved by Linus in the RFC. I'm posting this already to give build bot a head start while we wait for any additional feedback on LKML. -- v6 blurb: This set moves to a global header file macros which I

Re: [PATCH v2] brcmfmac: shut down AP and set IBSS mode only on primary interface

2016-08-19 Thread Rafał Miłecki
On 11 August 2016 at 07:44, Wright Feng wrote: > When stopping hostap on virtual interface, driver will set INFRA and AP > mode that may affect the functionality on primary interface. For example, > if we create and stop hostapd on virtual interface then association >

[PATCH] rtlwifi: Fix missing country code for Great Britain

2016-08-19 Thread Larry Finger
Some RTL8821AE devices sold in Great Britain have the country code of 0x25 encoded in their EEPROM. This value is not tested in the routine that establishes the regulatory info for the chip. The fix is to set this code to have the same capabilities as the EU countries. Signed-off-by: Larry Finger

Re: [PATCH 1/3] ath10k: Ensure there are no stale ar->txqs entries.

2016-08-19 Thread Ben Greear
On 08/18/2016 11:59 PM, Michal Kazior wrote: On 19 August 2016 at 03:26, wrote: From: Ben Greear I was seeing kernel crashes due to accessing freed memory while debugging a 9984 firmware that was crashing often. This patch fixes the

Re: ath9k: Fix beacon configuration assertion failure

2016-08-19 Thread Ioan-Adrian Ratiu
Hi On Fri, 19 Aug 2016, Kalle Valo wrote: > Kalle Valo writes: > >> Adi Ratiu wrote: >>> commit cfda2d8e2314 ("ath9k: Fix beacon configuration for >>> addition/removal of interfaces") reworked beacon configs to happen at >>> IF

Re: [1/8] wil6210: align to latest auto generated wmi.h

2016-08-19 Thread Kalle Valo
Maya Erez wrote: > Align to latest version of the auto generated wmi file > describing the interface with FW. > > Signed-off-by: Maya Erez Thanks, 8 patches applied to ath-next branch of ath.git: 0163b0319900 wil6210: align to latest

Re: [4.8] ath9k: fix using sta->drv_priv before initializing it

2016-08-19 Thread Kalle Valo
Felix Fietkau wrote: > A station pointer can be passed to the driver on tx, before it has been > marked as associated. Since ath9k_sta_state was initializing the entry > too late, it resulted in some spurious crashes. > > Fixes: df3c6eb34da5 ("ath9k: Use sta_state() callback") >

Re: [1/1,V3] ath9k: consider return code on

2016-08-19 Thread Kalle Valo
Eduardo Abinader wrote: > just to comply with current ath9k_hw_nvram_read to return value, hence > behaving reacting accordingly. > > Signed-off-by: Eduardo Abinader Thanks, 1 patch applied to ath-next branch of ath.git:

Re: ath9k: fix misleading indent

2016-08-19 Thread Kalle Valo
Bob Copeland wrote: > Fixes smatch warning: > > ath9k_vif_iter_set_beacon() warn if statement not indented > > Signed-off-by: Bob Copeland > Reviewed-by: Julian Calaby Thanks, 1 patch applied to ath-next branch of ath.git:

Re: ath9k: Fix beacon configuration assertion failure

2016-08-19 Thread Kalle Valo
Kalle Valo writes: > Adi Ratiu wrote: >> commit cfda2d8e2314 ("ath9k: Fix beacon configuration for >> addition/removal of interfaces") reworked beacon configs to happen at >> IF changes and missed cases when NL80211_IFTYPE_STATION has no beacons >> with

Re: [PATCH] wlcore: mesh: add zone time sync support

2016-08-19 Thread Kalle Valo
"Pedersen, Thomas" writes: > On Mon, 2016-08-08 at 11:57 +0300, Guy Mishol wrote: >> Add zone time sync support for mesh role. >> This allows to configure the mesh peer >> master of each zone for time synchronization. > > What is this? mac80211 already tries to maintain

Re: ath9k: Fix beacon configuration assertion failure

2016-08-19 Thread Kalle Valo
Adi Ratiu wrote: > commit cfda2d8e2314 ("ath9k: Fix beacon configuration for > addition/removal of interfaces") reworked beacon configs to happen at > IF changes and missed cases when NL80211_IFTYPE_STATION has no beacons > with the corresponding values

Re: [PATCH 1/3] ath10k: Ensure there are no stale ar->txqs entries.

2016-08-19 Thread Michal Kazior
On 19 August 2016 at 03:26, wrote: > From: Ben Greear > > I was seeing kernel crashes due to accessing freed memory > while debugging a 9984 firmware that was crashing often. > > This patch fixes the crashes. I am not certain if there > is a

Re: [PATCH net-next] net: bgmac: support Ethernet core on BCM53573 SoCs

2016-08-19 Thread David Miller
From: Rafał Miłecki Date: Wed, 17 Aug 2016 23:00:30 +0200 > From: Rafał Miłecki > > BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and can > be found in two packages (versions): BCM53573 and BCM47189. It shares > some code with the Northstar

Re: [PATCH 3/3] ath10k: Improve logging message.

2016-08-19 Thread Mohammed Shafi Shajakhan
Hi Ben, On Thu, Aug 18, 2016 at 06:26:35PM -0700, gree...@candelatech.com wrote: > From: Ben Greear > > Helps to know the sta pointer. > > Signed-off-by: Ben Greear > --- > drivers/net/wireless/ath/ath10k/mac.c | 4 ++-- > 1 file changed, 2