Re: [PATCH] dt: bindings: add bindings for ipq4019 wifi block

2015-12-30 Thread Raja Mani
On Wednesday 30 December 2015 10:05 PM, Rob Herring wrote: On Wed, Dec 23, 2015 at 11:05:15AM +0530, Raja Mani wrote: Add device tree binding documentation details for wifi block present in Qualcomm IPQ4019 SoC into qcom,ath10k.txt. Signed-off-by: Raja Mani ---

[PATCH v2] mwifiex: correctly handling kzalloc

2015-12-30 Thread Insu Yun
Since kzalloc can be failed in memory pressure, it needs to be handled, otherwise NULL dereference could be happened Signed-off-by: Insu Yun --- drivers/net/wireless/mwifiex/sdio.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH] dt: bindings: add bindings for ipq4019 wifi block

2015-12-30 Thread Rob Herring
On Wed, Dec 23, 2015 at 11:05:15AM +0530, Raja Mani wrote: > Add device tree binding documentation details for wifi block present > in Qualcomm IPQ4019 SoC into qcom,ath10k.txt. > > Signed-off-by: Raja Mani > --- > .../bindings/net/wireless/qcom,ath10k.txt | 87

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Bjorn Andersson
On Wed, Dec 30, 2015 at 8:47 AM, Souptick Joarder wrote: > > HI Bjorn, > > On Thu, Dec 24, 2015 at 2:03 PM, Bjorn Andersson wrote: > > Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save > > clients from having to cast away a const qualifier. >

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Souptick Joarder
On Wed, Dec 30, 2015 at 10:35 PM, Bjorn Andersson wrote: > On Wed, Dec 30, 2015 at 8:47 AM, Souptick Joarder > wrote: >> >> HI Bjorn, >> >> On Thu, Dec 24, 2015 at 2:03 PM, Bjorn Andersson wrote: >> > Make the addr parameter const in

Re: [PATCH 2/3] wlcore/wl12xx: spi: add device tree support

2015-12-30 Thread Rob Herring
On Wed, Dec 23, 2015 at 10:35:43AM +0200, Uri Mashiach wrote: > Add DT support for the wl1271 SPI WiFi. > > Add documentation file for the wl1271 SPI WiFi. > > Signed-off-by: Uri Mashiach > Acked-by: Igor Grinberg > --- >

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Souptick Joarder
HI Bjorn, On Thu, Dec 24, 2015 at 2:03 PM, Bjorn Andersson wrote: > Make the addr parameter const in SET_IEEE80211_PERM_ADDR() to save > clients from having to cast away a const qualifier. > > Signed-off-by: Bjorn Andersson > --- >

Re: [PATCH RESEND] iwlwifi:Fix error handling in the function iwl_pcie_enqueue_hcmd

2015-12-30 Thread Grumbach, Emmanuel
Hi, On 12/30/2015 07:15 PM, Nicholas Krause wrote: > This fixes error handling in the function iwl_pcie_enqueue_hcmd > by checking if all calls to the function wl_pcie_txq_build_tfd > have failed by returning a error code and if so jump to the goto > label out from the cleaning up of acquired

Re: [PATCH v2 1/2] staging: wilc1000: fix always return 0 error

2015-12-30 Thread Souptick Joarder
HI Glen, On Thu, Dec 24, 2015 at 11:32 AM, Glen Lee wrote: > This patch fixes a bug that return always 0 so it fails every time. > > Fixes: c1af9db78950 ("staging: wilc1000: call linux_sdio_init instead of > io_init") > Signed-off-by: Glen Lee > --- >

Re: [PATCH] mac80211: Make addr const in SET_IEEE80211_PERM_ADDR()

2015-12-30 Thread Bjorn Andersson
On Wed, Dec 30, 2015 at 10:30 AM, Souptick Joarder wrote: > On Wed, Dec 30, 2015 at 10:35 PM, Bjorn Andersson wrote: >> On Wed, Dec 30, 2015 at 8:47 AM, Souptick Joarder >> wrote: >>> >>> HI Bjorn, >>> >>> On Thu, Dec 24, 2015 at 2:03

Re: [PATCH] wlcore/wl12xx: spi: fix NULL pointer dereference (Oops)

2015-12-30 Thread Uri Mashiach
Hello Kalle Valo, On 12/30/2015 05:15 PM, Kalle Valo wrote: Uri Mashiach writes: Fix the below Oops when trying to modprobe wlcore_spi. The oops occurs because the wl1271_power_{off,on}() function doesn't check the power() function pointer. [ 23.401447] Unable

Re: [PATCH v2] ath10k: do not use coherent memory for allocated device memory chunks

2015-12-30 Thread Ben Greear
On 11/30/2015 10:32 AM, Felix Fietkau wrote: Coherent memory is more expensive to allocate (and constrained on some architectures where it has to be pre-allocated). It is also completely unnecessary, since the host has no reason to even access these allocated memory spaces Signed-off-by: Felix

Re: pull-request: wireless-drivers 2015-12-28

2015-12-30 Thread David Miller
From: Kalle Valo Date: Mon, 28 Dec 2015 13:47:43 +0200 > here's one more pull request, a bit late due to holidays but I hope this > still makes it to 4.4. Just two small fixes to iwlwifi, nothing else. Pulled, thanks Kalle. -- To unsubscribe from this list: send the line

net/nfc: user-controllable kmalloc size in nfc_llcp_send_ui_frame

2015-12-30 Thread Dmitry Vyukov
Hello, The following program triggers WARNING In kmalloc: [ cut here ] WARNING: CPU: 2 PID: 6754 at mm/page_alloc.c:2989 __alloc_pages_nodemask+0x771/0x15f0() Modules linked in: CPU: 2 PID: 6754 Comm: a.out Not tainted 4.4.0-rc7+ #181 Hardware name: QEMU Standard PC

[PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure

2015-12-30 Thread Julia Lawall
The il_sensitivity_ranges is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/net/wireless/intel/iwlegacy/4965-mac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] mac80211: pass block ack session timeout to to driver

2015-12-30 Thread Sara Sharon
Currently mac80211 does not inform the driver of the session block ack timeout when starting a rx aggregation session. Drivers that manage the reorder buffer need to know this parameter. Seeing that there are now too many arguments for the drv_ampdu_action() function, wrap them inside a structure.

Re: [PATCH 17/20] staging: wilc1000: fix return type of host_int_get_ipaddress

2015-12-30 Thread Souptick Joarder
Hi Lim, On Wed, Dec 30, 2015 at 5:45 PM, Chaehyun Lim wrote: > This patch changes return type of host_int_get_ipaddress from s32 to > int. The result variable gets return value from wilc_mq_send that has > data type of int. It should be changed return type of this

[PATCH 03/20] staging: wilc1000: rename bReg in wilc_frame_register

2015-12-30 Thread Chaehyun Lim
This patch renames bReg to reg to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 06/20] staging: wilc1000: fix return type of wilc_set_power_mgmt

2015-12-30 Thread Chaehyun Lim
This patch changes return type of wilc_set_power_mgmt from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 01/20] staging: wilc1000: fix return type of wilc_frame_register

2015-12-30 Thread Chaehyun Lim
This patch changes return type of wilc_frame_register from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 02/20] staging: wilc1000: rename u16FrameType in wilc_frame_register

2015-12-30 Thread Chaehyun Lim
This patch renames u16FrameType to frame_type to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 05/20] staging: wilc1000: rename u32SessionID in wilc_listen_state_expired

2015-12-30 Thread Chaehyun Lim
This patch renames u32SessionID to session_id to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 04/20] staging: wilc1000: fix return type of wilc_listen_state_expired

2015-12-30 Thread Chaehyun Lim
This patch changes return type of wilc_listen_state_expired from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 13/20] staging: wilc1000: rename pstrMulticastFilterParam in wilc_setup_multicast_filter

2015-12-30 Thread Chaehyun Lim
This patch renames pstrMulticastFilterParam to multicast_filter_param to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 07/20] staging: wilc1000: rename bIsEnabled in wilc_set_power_mgmt

2015-12-30 Thread Chaehyun Lim
This patch renames bIsEnabled to enabled to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 08/20] staging: wilc1000: rename u32Timeout in wilc_set_power_mgmt

2015-12-30 Thread Chaehyun Lim
This patch renames u32Timeout to timeout to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 12/20] staging: wilc1000: rename u32count in wilc_setup_multicast_filter

2015-12-30 Thread Chaehyun Lim
This patch renames u32count to count to remove u32 prefix. There is no need to use this prefix to show data type of this argument. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2

[PATCH 09/20] staging: wilc1000: rename pstrPowerMgmtParam in wilc_set_power_mgmt

2015-12-30 Thread Chaehyun Lim
This patch renames pstrPowerMgmtParam to pwr_mgmt_info to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c

[PATCH 18/20] staging: wilc1000: remove argument hif_drv in host_int_get_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch removes hif_drv argument of host_int_get_ipaddress. There is no need to pass hif_drv in this function because hif_drv is a member of vif. It is removed struct host_if_drv and use hif_drv of vif. Signed-off-by: Chaehyun Lim ---

[PATCH 15/20] staging: wilc1000: rename u16ipadd in wilc_setup_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch renames u16ipadd to ip_addr to remove u16 prefix. There is no need to use prefix to show data type of this argument. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files

[PATCH 20/20] staging: wilc1000: move static declaration of host_int_get_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch moves static function declaration to front part of host_interface.c file. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c

[PATCH 10/20] staging: wilc1000: fix return type of wilc_setup_multicast_filter

2015-12-30 Thread Chaehyun Lim
This patch changes return type of wilc_setup_multicast_filter from s32 to int. The result variable gets return value from wilc_mq_send that has return type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 11/20] staging: wilc1000: rename bIsEnabled in wilc_setup_multicast_filter

2015-12-30 Thread Chaehyun Lim
This patch renames bIsEnabled to enabled to avoid camelcase. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/host_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 14/20] staging: wilc1000: fix return type of wilc_setup_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch changes return type of wilc_setup_ipaddress from s32 to int. The result variable gets return value from wilc_mq_send that has data type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 19/20] staging: wilc1000: rename u16ipadd in host_int_get_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch renames u16ipadd to ip_addr to remove u16 prefix. There is no need to use this prefix to show data type of this argument. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 17/20] staging: wilc1000: fix return type of host_int_get_ipaddress

2015-12-30 Thread Chaehyun Lim
This patch changes return type of host_int_get_ipaddress from s32 to int. The result variable gets return value from wilc_mq_send that has data type of int. It should be changed return type of this function as well as data type of result variable. Signed-off-by: Chaehyun Lim

[PATCH 16/20] staging: wilc1000: remove return statement

2015-12-30 Thread Chaehyun Lim
This patch removes return statement that is always returned 0. wilc_setup_ipaddress can not run to the end due to return statement. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH v4 3/3] wlcore/wl12xx: spi: add wifi support to cm-t335

2015-12-30 Thread Uri Mashiach
Device tree modifications: - Pinmux for SPI0 and WiFi GPIOs. - SPI0 node with wlcore as a child node. Cc: Tony Lindgren Signed-off-by: Uri Mashiach --- v1 -> v2: Replace interrupts and interrupt-parent with interrupts-extended. v2 -> v3: Move the

[PATCH v4 1/3] wlcore/wl12xx: spi: add power operation function

2015-12-30 Thread Uri Mashiach
The power function uses a consumer regulator access to update the WiFi enable GPIO value. Signed-off-by: Uri Mashiach --- v1 -> v2: oops fix was removed to a separate fix. v2 -> v3: no changes v3 -> v4: update devm_regulator_get() error handling.

[PATCH v4 2/3] wlcore/wl12xx: spi: add device tree support

2015-12-30 Thread Uri Mashiach
Add DT support for the wl1271 SPI WiFi. Add documentation file for the wl1271 SPI WiFi. Signed-off-by: Uri Mashiach Acked-by: Rob Herring --- v1 -> v2: update interrupt documentation. replace interrupts and interrupt-parent with

[PATCH v4 0/3] wlcore/wl12xx: spi: add wifi support to cm-t335

2015-12-30 Thread Uri Mashiach
Add DT support for WLS1271 SPI driver. Add power operation function to the WLS1271 SPI driver. Uri Mashiach (3): wlcore/wl12xx: spi: add power operation function wlcore/wl12xx: spi: add device tree support wlcore/wl12xx: spi: add wifi support to cm-t335

Re: [PATCH] mwifiex: correctly handling kzalloc

2015-12-30 Thread Kalle Valo
Andy Shevchenko writes: > On Tue, Dec 29, 2015 at 10:17 PM, Insu Yun wrote: > > Empty commit message? Yeah, no empty commit log, please. And then you submit a new version remember to add v2, v3 and so on:

[PATCH 1/3] mwifiex: fix misleading firmware download messages

2015-12-30 Thread Amitkumar Karwar
From: chunfan chen mwifiex_check_fw_status() checks firmware status and also check if WLAN is the winner for firmware downloading. Once we detect that other interface is downloading the firmware, we call this routine again with max poll count to wait until firmware is ready.

[PATCH 2/3] mwifiex: fix IBSS data path issue.

2015-12-30 Thread Amitkumar Karwar
From: chunfan chen The port_open flag is not applicable for IBSS mode. IBSS data path was broken when port_open flag was introduced. This patch fixes the problem by correcting the checks. Fixes: 5c8946330abfa4c ("mwifiex: enable traffic only when port is open") Signed-off-by:

[PATCH 3/3] mwifiex: add debugfs file to read chip information

2015-12-30 Thread Amitkumar Karwar
From: Xinming Hu This patch add 'verext' debugfs item, which can be used to get detailed chip specific information from our firmware. Examples: echo "1" > /sys/kernel/debug/mwifiex/mlan0/verext cat /sys/kernel/debug/mwifiex/mlan0/verext Signed-off-by: Shengzhen Li

Re: [01/14] mwifiex: change ap and station interface limits

2015-12-30 Thread Kalle Valo
> From: Shengzhen Li > > ap/station interface limit has been changed to allow > creating maximum 3 interfaces. > > Signed-off-by: Shengzhen Li > Signed-off-by: Amitkumar Karwar Thanks, 14 patches applied to wireless-drivers-next.git:

Re: [PATCH 02/14] mwifiex: multiple bss support

2015-12-30 Thread Kalle Valo
Amitkumar Karwar writes: > From: Shengzhen Li > > This patch fixes issues observed while starting 3 different > bss simultaneously, eg, 2 AP + 1 STA or 3 AP > > Signed-off-by: Amitkumar Karwar I applied this already but I want to

Re: [1/8] rtlwifi: rtl8723be: Fix module parameter initialization

2015-12-30 Thread Kalle Valo
> This driver has a number of errors in the module initialization. These > include the following: > > Parameter msi_support is stored in two places - one is removed. > Paramters sw_crypto and disable_watchdog were never stored in the final > locations, nor were they initialized properly. > >

Re: [PATCH] wlcore/wl12xx: spi: fix NULL pointer dereference (Oops)

2015-12-30 Thread Kalle Valo
Uri Mashiach writes: > Fix the below Oops when trying to modprobe wlcore_spi. > The oops occurs because the wl1271_power_{off,on}() > function doesn't check the power() function pointer. > > [ 23.401447] Unable to handle kernel NULL pointer dereference at > virtual

Re: [1/4] mwifiex: fix potential integer truncation

2015-12-30 Thread Kalle Valo
> From: chunfan chen > > At some places, ie length is truncated from u16 to u8 while > storing it to driver's internal variable. This patch fixes > the problem. > > Signed-off-by: chunfan chen > Signed-off-by: Amitkumar Karwar

Re: rsi: consolidate kmalloc/memset 0 calls to kzalloc

2015-12-30 Thread Kalle Valo
> This is an API consolidation only. The use of kmalloc + memset to 0 > is equivalent to kzalloc. > > Signed-off-by: Nicholas Mc Guire Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the

Re: rsi: bool tests do not need comparison

2015-12-30 Thread Kalle Valo
> This is an API consolidation only. Bool initializations should > use true and false thus bool tests don't need an explicit comparison. > > Signed-off-by: Nicholas Mc Guire Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the

Re: rtlwifi: rtl_pci: Fix kernel panic

2015-12-30 Thread Kalle Valo
> In commit 38506ecefab9 (rtlwifi: rtl_pci: Start modification for new > drivers), a bug was introduced that causes a NULL pointer dereference. > As this bug only affects the infrequently used RTL8192EE and only under > low-memory conditions, it has taken a long time for the bug to show up. > >