[PATCH v5 1/7] ath10k: allow empty ssid vdev config

2015-03-24 Thread Michal Kazior
It doesn't make much sense to reject a valid firmware configuration combination. Since SSID isn't known early on it might make sense to allow driver to start vdev without SSID and restart it later. Signed-off-by: Michal Kazior michal.kaz...@tieto.com ---

[PATCH] ath10k: don't call quiet mode if it's not implemented

2015-03-24 Thread Michal Kazior
qca6174 and wmi-tlv doesn't have quiet mode implemented. Don't even attempt to call it. This fixes a warning when bringing first interface up: failed to set quiet mode period 100 duarion 0 enabled 0 ret -95 Fixes: 8515b5c79a54 (ath10k: configure thermal throttle while powering up)

[PATCH] ath10k: fix survey reporting

2015-03-24 Thread Michal Kazior
Number of channels is stored in a separate macro in a header file and channel list is constructed independently. The macro is used to define survey array. This fixes a recent regression introduced after adding support for 144 channel. The regression would lead to a warning and incomplete survey

[PATCH v5 7/7] ath10k: allocate fw resources for iface combinations

2015-03-24 Thread Michal Kazior
The number of 3 vdevs wasn't enough to handle the worst case for interface combinations in practice. wpa_supplicant may need up to 4 vifs to have 2 vifs actually connected, i.e. p2pdev + client + 2x p2p (either p2p client or p2p go). This fixes worst case warning: Free vdev map is empty, no

[PATCH v5 4/7] ath10k: rework tx queue locking

2015-03-24 Thread Michal Kazior
Tx queue locking was very simple until now. Multi-channel support will require a more flexible and fine grained control. This introduces a per-hw and per-vif (each with a bitmask of reasons) tx queue locking. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes: v4: * use

[PATCH v5 2/7] ath10k: implement chanctx API

2015-03-24 Thread Michal Kazior
The chanctx API will allow ath10k to support multi-channel operation. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes: v2: * prevent null deref in ath10k_peer_assoc_h_vht() after rebasing to latest master branch v3: * remove chanctx internal ath10k

[PATCH v5 5/7] ath10k: implement tx pause wmi event

2015-03-24 Thread Michal Kazior
qca6174 wmi-tlv firmware defines a new wmi event for host tx pausing (i.e. stop/wake tx queues). Map these events to ath10k/mac80211 tx queue control. This is important for multi-channel throughput performance. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes: v2: *

[PATCH v5 3/7] ath10k: implement adaptive qcs command

2015-03-24 Thread Michal Kazior
This command will be used to configure multi-channel scheduler in firmware. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 16 drivers/net/wireless/ath/ath10k/wmi-tlv.c | 30 ++

[PATCH v5 6/7] ath10k: enable multi-channel on supported devices

2015-03-24 Thread Michal Kazior
This effectively enables multi-channel operation on qca6174 WLAN.RM.2.0-00073 (and possibly any newer firmware release for qca6174). This adds appopriate interface combinations and initializes firmware channel scheduler. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes: v5:

[PATCH 2/2] ath10k: implement more versatile set_bitrate_mask

2015-03-24 Thread Michal Kazior
Until now only a single fixed tx rate or nss was allowed to be set. The patch attempts to improve this by allowing most bitrate masks. The limitation is VHT MCS rates cannot be expressed separately and only the following VHT MCS ranges are supported: none, 0-7, 0-8, and 0-9. This keeps the old

[PATCH 0/2] ath10k: improve set_bitrate_mask

2015-03-24 Thread Michal Kazior
This makes set_bitrate_mask more flexible by allowing more than applying simple single rate or max nss limits. This still isn't ideal and VHT MCSs can't be set separately (only a few range-options are allowed). This depends on: * ath10k: add multi-channel support * ath10k: cleanups 2015-03-20

[PATCH 1/2] ath10k: clean up set_bitrate_mask handling

2015-03-24 Thread Michal Kazior
The code was a bit convoluted. Clean it up and prepare for future changes. While at it this fixes incorrect verification of 'single nss' case when ss2 rates were missing while ss1 and ss3 were requested resulting in nss=3 being set: iw wlan1 set bitrates legacy-5 ht-mcs-5 0 1 2 3 4 5 6 7 16 17

Re: [PATCH v7 0/6] wlcore: add device-tree support

2015-03-24 Thread Nikita Kiryanov
Hi Eliad, On 03/18/2015 06:38 PM, Eliad Peller wrote: Add device-tree support to the wlcore (wl12xx/wl18xx) driver. Update the current users to use the bindings instead of pdata-quirks. Finally, remove the deprecated wl12xx_platform_data struct (along with the da850 board file code that still

Re: [patch] mac80111: aes_ccm: cleanup ieee80211_aes_key_setup_encrypt()

2015-03-24 Thread Ard Biesheuvel
On 23 March 2015 at 15:08, Dan Carpenter dan.carpen...@oracle.com wrote: This code is written using an anti-pattern called success handling which makes it hard to read, especially if you are used to normal kernel style. It should instead be written as a list of directives in a row with

Re: [PATCH] iwlwifi: Fix memory leak in iwl_req_fw_callback()

2015-03-24 Thread Grumbach, Emmanuel
On Mon, 2015-03-23 at 14:07 -0500, Larry Finger wrote: In this routine, kzalloc allocates a memory block. This allocation is freed in the error paths, but not in the normal exit, thus the allocation is leaked. The kmemleak facility was used to find the leak. Picked up - thanks.

Fwd: [Battlemesh] Announcing Battlemesh V8 Maribor, Slovenia

2015-03-24 Thread Simon Wunderlich
I'm sure there are some on this list who will be interested in joining! Please spread the word. :) -- Forwarded Message -- Subject: [Battlemesh] Announcing Battlemesh V8 Maribor, Slovenia Date: Monday 23 March 2015, 17:13:18 From: Musti mu...@wlan-si.net To: Battle of the Mesh

Re: [PATCH] staging: rtl8723au: Update RT_TRACE macro and uses

2015-03-24 Thread Jes Sorensen
Joe Perches j...@perches.com writes: Create an rt_trace function using %pV to reduce overall code size. Update the macro uses to remove unnecessary and now harmful parentheses. Miscellanea around these changes: o Coalesce formats o Realign arguments o Remove commented-out RT_TRACE uses o

Re: [PATCH v4 0/10] Improve Minstrels Minstrel-HTs common code base statistics

2015-03-24 Thread Felix Fietkau
On 2015-03-24 21:09, Thomas Huehn wrote: This patch series adds several improvements to the readability, the output format of rc_stats and the calculated statistics of Minstrel and Minstrel-HT. Variable names got more consistent and functions got unified between both rate control algorithms.

Re: informations about Linux wifi driver's architecture today

2015-03-24 Thread Stefano Cappa
Thank you very much Arend, in particular for the documentation. If i understand correctly, the levels are: userspace nl802111 cfg80211 firmware No mac80211 because is a fullmac. Correct? Thank u, Stefano. Da: Arend van Spriel ar...@broadcom.com Inviato:

Re: [PATCH] staging: rtl8723au: Remove uses of MAC_FMT and MAC_ARG

2015-03-24 Thread Jes Sorensen
Joe Perches j...@perches.com writes: Use the standard vsprintf kernel extension to format mac addresses. This reduces object code size a bit. Miscellanea: o Coalesce formats o Realign arguments o Remove the now unused MAC_FMT and MAC_ARG #defines Signed-off-by: Joe Perches

Re: pull-request: wireless-drivers 2015-03-24

2015-03-24 Thread David Miller
From: Kalle Valo kv...@qca.qualcomm.com Date: Tue, 24 Mar 2015 08:29:54 +0200 here are few more fixes I would like to still get to 4.0 if possible, detailed info in the tag below. Please let me know if there are any problems. Pulled, thanks Kalle. -- To unsubscribe from this list: send the

Re: [PATCH v7 0/6] wlcore: add device-tree support

2015-03-24 Thread Eliad Peller
hi Nikita, On Tue, Mar 24, 2015 at 1:37 PM, Nikita Kiryanov nik...@compulab.co.il wrote: Hi Eliad, On 03/18/2015 06:38 PM, Eliad Peller wrote: Add device-tree support to the wlcore (wl12xx/wl18xx) driver. Update the current users to use the bindings instead of pdata-quirks. Finally,

pull-request: wireless-drivers 2015-03-24

2015-03-24 Thread Kalle Valo
Hi Dave, here are few more fixes I would like to still get to 4.0 if possible, detailed info in the tag below. Please let me know if there are any problems. Kalle The following changes since commit 3f1615340acea54e21f4b9d4d65921540dca84b2: brcmfmac: Perform bound checking on vendor command

Re: ath10k: What will happens when radar is detected ?

2015-03-24 Thread Michal Kazior
On 23 March 2015 at 16:16, Cedric VONCKEN cedric.vonc...@acksys.fr wrote: In 802.11ac standard, it is possible to dynamically reduce the channel width used. My question is: If I use a channel with 80 or 40 MHz width, what will happen if I detect radar? The ath10k

Re: [PATCH 1/2] ath10k: share board file loading code across FW APIs

2015-03-24 Thread Michal Kazior
On 23 March 2015 at 17:01, Kalle Valo kv...@qca.qualcomm.com wrote: Michal Kazior michal.kaz...@tieto.com writes: There's no need to implement the same thing twice. Reduce code duplication. Signed-off-by: Michal Kazior michal.kaz...@tieto.com [...] @@ -730,6 +716,12 @@ static int

RE: ath10k: What will happens when radar is detected ?

2015-03-24 Thread voncken
-Message d'origine- De : Michal Kazior [mailto:michal.kaz...@tieto.com] Envoyé : mardi 24 mars 2015 07:56 À : Cedric VONCKEN Cc : linux-wireless Objet : Re: ath10k: What will happens when radar is detected ? On 23 March 2015 at 16:16, Cedric VONCKEN cedric.vonc...@acksys.fr

Re: [PATCH v4 5/6] ath10k: add wmi support for tdls

2015-03-24 Thread Kalle Valo
Marek Puzyniak marek.puzyn...@tieto.com writes: On 23 March 2015 at 11:53, Kalle Valo kv...@qca.qualcomm.com wrote: Marek Puzyniak marek.puzyn...@tieto.com writes: As a part of tdls implementation introduce tdls related wmi data structures, constant values and functions. Signed-off-by:

[PATCH v4 0/10] Improve Minstrels Minstrel-HTs common code base statistics

2015-03-24 Thread Thomas Huehn
This patch series adds several improvements to the readability, the output format of rc_stats and the calculated statistics of Minstrel and Minstrel-HT. Variable names got more consistent and functions got unified between both rate control algorithms. Greetings Thomas --- Changes in v2: - fix

[PATCH v4 01/10] mac80211: enhance readability of Minstrels rc_stats output

2015-03-24 Thread Thomas Huehn
This patch restructures the rc_stats debugfs table of Minstrel in order to achieve better human readability. A new layout of the statistics and a new header is added. In addition to the old layout there are two new columns of information added: idx - representing the rate index of each rate in

[PATCH v4 08/10] mac80211: add max lossless throughput per rate

2015-03-24 Thread Thomas Huehn
This patch adds the new statistic maximum possible lossless throughput to Minstrels and Minstrel-HTs rc_stats (in debugfs). This enables comprehensive comparison between current per-rate throughput and max. achievable per-rate throughput. Signed-off-by: Thomas Huehn tho...@net.t-labs.tu-berlin.de

[PATCH v4 03/10] mac80211: add new Minstrel statistic output via csv

2015-03-24 Thread Thomas Huehn
This patch adds a new debugfs file rc_stats_csv to output Minstrels statistics in a common csv format that is easy to parse. Signed-off-by: Thomas Huehn tho...@net.t-labs.tu-berlin.de Signed-off-by: Stefan Venz ikstrea...@gmail.com --- net/mac80211/rc80211_minstrel.h | 6 +--

[PATCH v4 02/10] mac80211: enhance readability of Minstrel-HTs rc_stats output

2015-03-24 Thread Thomas Huehn
This patch restructures the rc_stats debugfs table of Minstrel-HT in order to achieve better human readability. A new layout of the statistics and a new header is added. In addition to the old layout there are two new columns of information added: idx - representing the rate index of each rate

[PATCH v4 05/10] mac80211: unify Minstrel Minstrel-HTs calculation of rate statistics

2015-03-24 Thread Thomas Huehn
This patch unifies the calculation of Minstrels and Minstrel-HTs per-rate statistic. The new common function minstrel_calc_rate_stats() is called when a statistic update is performed. Signed-off-by: Thomas Huehn tho...@net.t-labs.tu-berlin.de --- net/mac80211/rc80211_minstrel.c| 44

[PATCH v4 09/10] mac80211: reduce calculation costs of EWMA

2015-03-24 Thread Thomas Huehn
This patch reduces the calculation costs of the EWMA macro from 2x multiplication and 1 addition down to 1x multiplication and 2x additions. This slightly improves performance depending on the CPU architecture. Signed-off-by: Thomas Huehn tho...@net.t-labs.tu-berlin.de ---

[PATCH v4 10/10] mac80211: add standard deviation to Minstrel stats

2015-03-24 Thread Thomas Huehn
This patch adds the statistical descriptor standard deviation to better describe the current properties of Minstrel and Minstrel-HTs success probability distribution. The standard deviation (SD) is calculated as exponential weighted moving standard deviation (EWMSD) and its current value is added

[PATCH] staging: rtl8723au: Remove uses of MAC_FMT and MAC_ARG

2015-03-24 Thread Joe Perches
Use the standard vsprintf kernel extension to format mac addresses. This reduces object code size a bit. Miscellanea: o Coalesce formats o Realign arguments o Remove the now unused MAC_FMT and MAC_ARG #defines Signed-off-by: Joe Perches j...@perches.com ---

Re: [PATCH v4 5/6] ath10k: add wmi support for tdls

2015-03-24 Thread Marek Puzyniak
On 23 March 2015 at 11:53, Kalle Valo kv...@qca.qualcomm.com wrote: Marek Puzyniak marek.puzyn...@tieto.com writes: As a part of tdls implementation introduce tdls related wmi data structures, constant values and functions. Signed-off-by: Marek Puzyniak marek.puzyn...@tieto.com This patch