[PATCH v2 2/7] ath10k: add sanity checks for service bmap parsing

2014-11-27 Thread Michal Kazior
This shouldn't really happen but take into account the original service bitmap length when mapping service ids. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes: v2: * remove space between brackets as per checkpatch warning drivers/net/wireless/ath/ath10k/wmi.c | 6 +-

[PATCH v2 5/7] ath10k: introduce wmi ops

2014-11-27 Thread Michal Kazior
Since the 10.x fw branch support was introduced it became apparent ath10k will need to be able to deal with different fw ABIs eventually. The patch creates an abstraction for dealing with command and event structures across different ABIs and mostly gets rid of the ATH10K_FW_FEATURE_WMI_10X flag

[PATCH v2 7/7] ath10k: implement wmi-tlv backend

2014-11-27 Thread Michal Kazior
Latest main firmware branch introduced a new WMI ABI called wmi-tlv. It is not a tlv strictly speaking but something that resembles it because it is ordered and may have duplicate id entries. This prepares ath10k to support new hw. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- Notes:

[PATCH v2 3/7] ath10k: make wmi service bitmap non-debug

2014-11-27 Thread Michal Kazior
The service bitmap can be used to determine firmware capabilities. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net/wireless/ath/ath10k/debug.c | 11 +++ drivers/net/wireless/ath/ath10k/debug.h | 9 -

[PATCH v2 6/7] ath10k: make some wmi functions public

2014-11-27 Thread Michal Kazior
Some functions can be shared across different WMI ABIs. Make them public so different WMI backends can use them from different source files in the future. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/wmi.c | 136 ++

[PATCH v8 1/2] nl80211: Stop scheduled scan if netlink client disappears

2014-11-27 Thread Jukka Rissanen
An attribute NL80211_ATTR_SOCKET_OWNER can be set by the scan initiator. If present, the attribute will cause the scan to be stopped if the client dies. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + include/uapi/linux/nl80211.h | 3 +++

[PATCH v8 0/2] Stop scheduled scan if netlink client disappears

2014-11-27 Thread Jukka Rissanen
Hi, v8: - reworked the RCU code and placed it in patch 2 v7: - convert the cfg80211_sched_scan_request to __rcu pointer in order to avoid races when accessing it - reverting the patch v6, the port id is back in request struct v6: - moved owner netlink port id from cfg80211_sched_scan_request

[PATCH 1/3] ath10k: remove unused callback argument

2014-11-27 Thread Michal Kazior
This wasn't used since forever and there are no plans on using it. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/hif.h | 3 +-- drivers/net/wireless/ath/ath10k/htc.c | 3 +-- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 3 files changed, 3

[PATCH v8 2/2] nl80211: Convert sched_scan_req pointer to RCU pointer

2014-11-27 Thread Jukka Rissanen
Because of possible races when accessing sched_scan_req pointer in rdev, the sched_scan_req is converted to RCU pointer. Signed-off-by: Jukka Rissanen jukka.rissa...@linux.intel.com --- include/net/cfg80211.h | 1 + net/wireless/core.c| 10 +++--- net/wireless/core.h| 2 +-

[PATCH 3/3] ath10k: prevent pci tx/rx starvation

2014-11-27 Thread Michal Kazior
In theory it was possible to starve the system if a tx/rx handler could implicitly trigger more tx/rx pci events. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/pci.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff

[PATCH 2/3] ath10k: remove callback argument

2014-11-27 Thread Michal Kazior
Pass the eid argument via skbuff control buffer. This will make it possible to work with queues of HTC event buffers. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/core.h | 1 + drivers/net/wireless/ath/ath10k/hif.h | 3 +--

pull request: bluetooth-next 2014-11-27

2014-11-27 Thread Johan Hedberg
Hi John, Here's one more bluetooth-next pull request for 3.19: - Minor cleanups for ieee802154 mac802154 - Fix for the kernel warning with !TASK_RUNNING reported by Kirill A. Shutemov - Support for another ath3k device - Fix for tracking link key based security level - Device tree

Re: [PATCH v3] nl80211: Broadcast CMD_NEW_INTERFACE and CMD_DEL_INTERFACE

2014-11-27 Thread Jouni Malinen
On Wed, Nov 12, 2014 at 04:26:45PM +0200, Tomasz Bursztyka wrote: Let the other listeners being notified when a new or del interface command has been issued, thus reducing later necessary request to be in sync with current context. This seems to trigger a NULL pointer dereference in

[PATCH v3 0/2] ath10k: device tree support

2014-11-27 Thread Kalle Valo
Hi, here's ath10k device tree support which Toshi and me have been working on. Please review. Device tree maintainers: please review the bindings document carefully, this is the first time I have written one. v3: * add a debug message to ath10k * write bindings file * use ar-dev.of_node

[PATCH v3 1/2] dt: bindings: add ath10k wireless device

2014-11-27 Thread Kalle Valo
Document how calibration data can be provided to ath10k via Device Tree. Signed-off-by: Kalle Valo kv...@qca.qualcomm.com --- .../bindings/net/wireless/qcom,ath10k.txt | 30 1 file changed, 30 insertions(+) create mode 100644

[PATCH v3 2/2] ath10k: read calibration data from Device Tree

2014-11-27 Thread Kalle Valo
From: Toshi Kikuchi tos...@chromium.org This patch adds support for reading calibration data from Device Tree. It looks for the calibration data in Device Tree if it can't find it in a file. If there's no node in Device Tree, ath10k will try to find the calibration data from OTP. The node for

Re: [PATCH v3 0/2] ath10k: device tree support

2014-11-27 Thread Kalle Valo
Kalle Valo kv...@qca.qualcomm.com writes: here's ath10k device tree support which Toshi and me have been working on. Please review. Device tree maintainers: please review the bindings document carefully, this is the first time I have written one. Argh, I again used the old devicetree

[PATCH v4 1/2] dt: bindings: add ath10k wireless device

2014-11-27 Thread Kalle Valo
Document how calibration data can be provided to ath10k via Device Tree. Signed-off-by: Kalle Valo kv...@qca.qualcomm.com --- .../bindings/net/wireless/qcom,ath10k.txt | 30 1 file changed, 30 insertions(+) create mode 100644

[PATCH v4 0/2] ath10k: device tree support

2014-11-27 Thread Kalle Valo
Hi, here's providing ath10k calibration data via device tree support which Toshi and me have been working on. Please review. Device tree maintainers: please review the bindings document carefully, this is the first time I have written one. v4: * use correct devicetree mailing list address v3:

Re: [PATCH v4 1/2] dt: bindings: add ath10k wireless device

2014-11-27 Thread Arnd Bergmann
On Thursday 27 November 2014 14:08:56 Kalle Valo wrote: diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt new file mode 100644 index ..edefc26c6204 --- /dev/null +++

[RFC] mac80211: take reserved vif into account when calculating the min_def

2014-11-27 Thread Emmanuel Grumbach
When we want to calculate the minimal bandwidth needed for a channel context, we need to take into account vifs that have reserved the channel context. I hit an issue with iwlwifi and channel switch as a client. We would allocate a virgin channel context and reserve it. At that stage, the min_def

Re: [PATCH 1/3] ath10k: remove unused callback argument

2014-11-27 Thread Kalle Valo
Michal Kazior michal.kaz...@tieto.com writes: This wasn't used since forever and there are no plans on using it. Signed-off-by: Michal Kazior michal.kaz...@tieto.com I modified the title to get it more unique: ath10k: remove unused callback argument from struct ath10k_hif_cb::rx_completion

Re: [PATCH v2 0/7] ath10k: add support for new wmi-tlv backend

2014-11-27 Thread Kalle Valo
Michal Kazior michal.kaz...@tieto.com writes: First 2 patches are simple fixes. Patch 3 isn't strictly related to wmi-tlv but I decided to include it anyway. Other patches gradually implement wmi-tlv. There's a bunch of false-positive checkpatch warnings regarding `CHECK: No space is

[RFC] mac80211: update the channel context after channel switch

2014-11-27 Thread Emmanuel Grumbach
When the channel switch has been made, a vif is now using the channel context which was reserved. When that happens, we need to update the channel context since its parameters may change. I hit a case in which I switched to a 40Mhz channel but the reserved channel context was still on 20Mhz. The

wl1251: NVS firmware data

2014-11-27 Thread Pali Rohár
Hello, wifi driver wl1251 needs NVS calibration data for working. These data are loaded by driver via request_firmware from userspace file: ti-connectivity/wl1251-nvs.bin. In linux-fimrware git tree there is generic wl1251-nvs.bin file which is used by default. Driver wl1251 is used on Nokia

Re: wl1251: NVS firmware data

2014-11-27 Thread Pali Rohár
On Thursday 27 November 2014 15:21:44 Ming Lei wrote: On Thu, Nov 27, 2014 at 10:06 PM, Pali Rohár pali.ro...@gmail.com wrote: Hello, wifi driver wl1251 needs NVS calibration data for working. These data are loaded by driver via request_firmware from userspace file:

Re: [PATCH] mac80211: enable TPC through mac80211 stack

2014-11-27 Thread Johannes Berg
On Thu, 2014-11-27 at 14:39 +0100, Lorenzo Bianconi wrote: Configure per packet Transmit Power Control (TPC) in lower drivers checking if user_power_level has been set to IEEE80211_UNSET_POWER_LEVEL Err, what? Why? how? what does this do? johannes -- To unsubscribe from this list: send the

Re: [PATCH] mac80211: enable TPC through mac80211 stack

2014-11-27 Thread Lorenzo Bianconi
On Thu, 2014-11-27 at 14:39 +0100, Lorenzo Bianconi wrote: Configure per packet Transmit Power Control (TPC) in lower drivers checking if user_power_level has been set to IEEE80211_UNSET_POWER_LEVEL Err, what? Why? how? what does this do? johannes I would like to enable TPC in ath9k using

Re: wl1251: NVS firmware data

2014-11-27 Thread Ming Lei
On Thu, Nov 27, 2014 at 10:43 PM, Pali Rohár pali.ro...@gmail.com wrote: On Thursday 27 November 2014 15:21:44 Ming Lei wrote: On Thu, Nov 27, 2014 at 10:06 PM, Pali Rohár pali.ro...@gmail.com wrote: Hello, wifi driver wl1251 needs NVS calibration data for working. These data are loaded

Re: wl1251: NVS firmware data

2014-11-27 Thread Greg Kroah-Hartman
On Thu, Nov 27, 2014 at 03:43:23PM +0100, Pali Rohár wrote: Which userspace helper programs for (automatic) firmware loading are used? Can be udev configured to use own program for loading firmware instead that udev integrated which looking for firmware only in /lib/firmware files? The

Re: wl1251: NVS firmware data

2014-11-27 Thread Greg Kroah-Hartman
On Thu, Nov 27, 2014 at 03:43:23PM +0100, Pali Rohár wrote: On Thursday 27 November 2014 15:21:44 Ming Lei wrote: On Thu, Nov 27, 2014 at 10:06 PM, Pali Rohár pali.ro...@gmail.com wrote: Hello, wifi driver wl1251 needs NVS calibration data for working. These data are loaded by

Re: wl1251: NVS firmware data

2014-11-27 Thread Pali Rohár
On Thursday 27 November 2014 16:16:55 Greg Kroah-Hartman wrote: On Thu, Nov 27, 2014 at 03:43:23PM +0100, Pali Rohár wrote: On Thursday 27 November 2014 15:21:44 Ming Lei wrote: On Thu, Nov 27, 2014 at 10:06 PM, Pali Rohár pali.ro...@gmail.com wrote: Hello, wifi driver

Re: wl1251: NVS firmware data

2014-11-27 Thread Pali Rohár
On Thursday 27 November 2014 16:14:48 Greg Kroah-Hartman wrote: On Thu, Nov 27, 2014 at 03:43:23PM +0100, Pali Rohár wrote: Which userspace helper programs for (automatic) firmware loading are used? Can be udev configured to use own program for loading firmware instead that udev integrated

Re: wl1251: NVS firmware data

2014-11-27 Thread Greg Kroah-Hartman
On Thu, Nov 27, 2014 at 04:22:58PM +0100, Pali Rohár wrote: On Thursday 27 November 2014 16:16:55 Greg Kroah-Hartman wrote: On Thu, Nov 27, 2014 at 03:43:23PM +0100, Pali Rohár wrote: On Thursday 27 November 2014 15:21:44 Ming Lei wrote: On Thu, Nov 27, 2014 at 10:06 PM, Pali Rohár

[PATCH] nl80211: don't crash sending invalid chandef

2014-11-27 Thread Johannes Berg
From: Johannes Berg johannes.b...@intel.com One of the cases for an invalid channel definition is that the channel pointer is NULL, in which case the warning is a bit late since we'll dereference the pointer. Bail out of the function upon warning about this. Signed-off-by: Johannes Berg

Re: [PATCH 3.18] mac80211: copy chandef from AP vif to VLANs

2014-11-27 Thread Johannes Berg
On Mon, 2014-11-24 at 18:12 +0100, Felix Fietkau wrote: Fixes a crash in nl80211_send_chandef, introduced in commit c12bc4885f4b3bab0ed779c69d5d7e3223fa5003 mac80211: return the vif's chandef in ieee80211_cfg_get_channel() I've fixed up the commit log myself and applied it, but I doubt we'll

[PATCH iw 1/2] update nl80211.h

2014-11-27 Thread Luca Coelho
From: Luciano Coelho luciano.coe...@intel.com Signed-off-by: Luciano Coelho luciano.coe...@intel.com --- nl80211.h | 119 +++--- 1 file changed, 115 insertions(+), 4 deletions(-) diff --git a/nl80211.h b/nl80211.h index f7daae5..d775245

[PATCH iw 2/2] add WoWLAN net-detect trigger

2014-11-27 Thread Luca Coelho
From: Luciano Coelho luciano.coe...@intel.com Adds a netdetect option to the wowlan triggers that allows the user to request network detection to be started when the device goes to suspend mode. Signed-off-by: Luciano Coelho luciano.coe...@intel.com --- event.c | 30 ++- info.c |

Re: [PATCH iw 2/2] add WoWLAN net-detect trigger

2014-11-27 Thread Arend van Spriel
On 11/27/14 22:06, Luca Coelho wrote: From: Luciano Coelholuciano.coe...@intel.com Adds a netdetect option to the wowlan triggers that allows the user to request network detection to be started when the device goes to suspend mode. So it can start heating up my backpack when I get home. Nice

firmware loading fails (iwl 7260)

2014-11-27 Thread Hanno Böck
Hi, I have an X1 Carbon laptop with an intel 7260 chip. The automatic firmware loading doesn't work (kernel 3.17.2). I get this in dmesg: [1.615155] iwlwifi :03:00.0: Direct firmware load for iwlwifi-7260-10.ucode failed with error -2 The firmware then gets loaded by the userspace

Re: firmware loading fails (iwl 7260)

2014-11-27 Thread Vladimir Zapolskiy
On 28.11.2014 01:40, Hanno Böck wrote: Hi, I have an X1 Carbon laptop with an intel 7260 chip. The automatic firmware loading doesn't work (kernel 3.17.2). I get this in dmesg: [1.615155] iwlwifi :03:00.0: Direct firmware load for iwlwifi-7260-10.ucode failed with error -2 The

[PATCH] cfg80211: do not check for carrier during start_radar_detect

2014-11-27 Thread Avinash Patil
Radar detection happens before starting AP; so netdev carrier may be dormant at this time. Remove this check from cfg80211_start_radar_detection. Signed-off-by: Avinash Patil pat...@marvell.com --- net/wireless/nl80211.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH iw 2/2] add WoWLAN net-detect trigger

2014-11-27 Thread Luca Coelho
On Thu, 2014-11-27 at 22:29 +0100, Arend van Spriel wrote: On 11/27/14 22:06, Luca Coelho wrote: From: Luciano Coelholuciano.coe...@intel.com Adds a netdetect option to the wowlan triggers that allows the user to request network detection to be started when the device goes to suspend

Re: [RFC] mac80211: take reserved vif into account when calculating the min_def

2014-11-27 Thread Michal Kazior
On 27 November 2014 at 13:30, Emmanuel Grumbach emmanuel.grumb...@intel.com wrote: When we want to calculate the minimal bandwidth needed for a channel context, we need to take into account vifs that have reserved the channel context. I hit an issue with iwlwifi and channel switch as a client.

Re: [PATCH 1/3] ath10k: embed supported chip ids in hw_params

2014-11-27 Thread Kalle Valo
Michal Kazior michal.kaz...@tieto.com writes: Hmm.. I have a couple of ideas: [...] 2. Have a dedicatd pci-specific structure: struct ath10k_pci_supported_chip { u16 dev_id; u32 chip_id; }; struct ath10k_pci_supported_chip ath10k_pci_supported_chips[] = { {

Re: [PATCH v4 3/4] cfg80211: allow usermode to query wiphy specific regdom

2014-11-27 Thread Arik Nemtsov
On Thu, Nov 27, 2014 at 5:35 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Thu, Nov 27, 2014 at 09:12:11AM +0200, Arik Nemtsov wrote: On Wed, Nov 26, 2014 at 11:43 PM, Luis R. Rodriguez mcg...@suse.com wrote: On Wed, Nov 26, 2014 at 4:35 PM, Luis R. Rodriguez mcg...@suse.com wrote: We're