[PATCH 04/19] NFC: nci: Remove dead code

2015-11-27 Thread Peter Hurley
The N_NCI ldisc does not define a flush_buffer() ldisc method, so the check when opening the ldisc is always false. Cc: Lauro Ramos Venancio Cc: Aloisio Almeida Jr Cc: Samuel Ortiz Cc: "David S. Miller" Cc: Signed-off-by: Peter Hurley --- net/nfc/nci/uart.c | 9 + 1 file changed, 1

[PATCH] mac80211: fix off-channel mgmt-tx unintialized variable usage

2015-11-27 Thread Johannes Berg
From: Johannes Berg In the previous commit, I neglected to update the cookie in one code path: when a mgmt-tx has no real cookie sent to userspace as it doesn't wait for a response, but is off-channel. The original code used the SKB pointer as the cookie and always assigned the cookie to the TX S

Re: [PATCH 0/2] brcm: firmware for new device and update

2015-11-27 Thread Ben Hutchings
On Fri, 2015-11-27 at 11:13 +0100, Arend van Spriel wrote: > This series add firmware for new BCM4371 device and an update > for the BCM43602 which solves hibernate issue. > > The series applies to the master branch of the linux-firmware > repository. Applied, thanks. Ben. > Arend van Spriel (2

Re: [PATCH] ath10k: Fix check for !THERMAL case

2015-11-27 Thread kbuild test robot
Hi Mark, [auto build test ERROR on net-next/master] [also build test ERROR on v4.4-rc2] [cannot apply to next-20151127] url: https://github.com/0day-ci/linux/commits/Mark-Brown/ath10k-Fix-check-for-THERMAL-case/20151126-201844 config: m68k-allmodconfig (attached as .config) reproduce

[PATCH v2 1/1] wireless: airo: re-use mac_pton()

2015-11-27 Thread Andy Shevchenko
mac_pton() converts 6-byte MAC / BSSID to binary format. Change an open coded variant by the generic one. Signed-off-by: Andy Shevchenko --- drivers/net/wireless/cisco/airo.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/net/wireless/cisco/airo.c

[PATCH] iwlwifi: fix compare_const_fl.cocci warnings

2015-11-27 Thread Julia Lawall
Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- This looks a bit nicer around the other way, in my opinion. calib.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH] mac80211_hwsim: stop using pointers as cookies

2015-11-27 Thread Johannes Berg
On Sun, 2015-11-08 at 18:49 -0500, Bob Copeland wrote: > On Fri, Nov 06, 2015 at 11:57:23AM +0100, Johannes Berg wrote: > > Instead of using pointers, use sequentially assigned cookies. > > This is easier to understand while debugging and also avoids > > problems when the pointer is reused for the

[patch] brcm80211: fix error code in brcmf_pcie_exit_download_state()

2015-11-27 Thread Dan Carpenter
The original code returns 1 on failure and 0 on success but the caller was expecting an error code on failure. Signed-off-by: Dan Carpenter diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index 83d8042..e149541 10064

Re: [PATCH] mac80211_hwsim: Advertise support for VHT IBSS

2015-11-27 Thread Johannes Berg
On Thu, 2015-11-26 at 20:51 +0200, Jouni Malinen wrote: > VHT can be used with IBSS without needing any additional changes in > mac80211_hwsim, so start claiming support for this to increase test > coverage. > Applied all the three, thanks. johannes -- To unsubscribe from this list: send the lin

[PATCH 0/2] brcm: firmware for new device and update

2015-11-27 Thread Arend van Spriel
This series add firmware for new BCM4371 device and an update for the BCM43602 which solves hibernate issue. The series applies to the master branch of the linux-firmware repository. Arend van Spriel (2): brcm: update firmware for bcm43602 device brcm: add initial firmware for bcm4371 11ac wi

[PATCH] mwifiex: parse hscfg_gpio info from device tree

2015-11-27 Thread Amitkumar Karwar
From: Xinming Hu This patch reads hscfg_gpio from device tree and update internal variable Signed-off-by: Xinming Hu Signed-off-by: Amitkumar Karwar --- drivers/net/wireless/marvell/mwifiex/sta_cmd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/marvell

Re: [PATCH 1/1] wireless: airo: re-use mac_pton()

2015-11-27 Thread Andy Shevchenko
On Thu, 2015-11-26 at 15:32 +0200, Kalle Valo wrote: > Andy Shevchenko writes: > > > mac_pton() converts 6-byte MAC / BSSID to binary format. Change an > > open coded > > variant by the generic one. > > > > Signed-off-by: Andy Shevchenko > > This breaks compilation: > >   CC [M]  drivers/net/

Re: [PATCH v2 6/8] cfg80211: reg: Add NL80211_RRF_USER_REGD_NEEDED flag

2015-11-27 Thread Johannes Berg
On Fri, 2015-11-27 at 10:43 +0100, Michal Sojka wrote: > What do you mean by "show"? nl80211_put_regdom() already sends regdom > flags to userspace. Or do you mean introducing a new channel > attribute and send it in nl80211_msg_put_channel()? > No, I meant keeping the flag - so that people can

Re: [PATCH v2 6/8] cfg80211: reg: Add NL80211_RRF_USER_REGD_NEEDED flag

2015-11-27 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: >>  >> The NL80211_RRF_USER_REGD_NEEDED flag introduced in this commit >> allows >> drivers to specify that certain band is enabled only if it is >> additionally enabled in user-supplied regulatory da

[PATCH] iw:Fix memory leak if nla_put fails

2015-11-27 Thread Rahul Jain
From: Amit Khatri Avoid memory leak because of nla_put_failure Signed-off-by: Rahul Jain Signed-off-by: Amit Khatri --- coalesce.c | 7 ++- wowlan.c | 33 +++-- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/coalesce.c b/coalesce.c index 36d

Re: [PATCH v2 5/8] cfg80211: Add support for OCB-only channels

2015-11-27 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: > >>  #define NL80211_RRF_PASSIVE_SCANNL80211_RRF_NO_IR >> diff --git a/net/wireless/chan.c b/net/wireless/chan.c >> index 59cabc9..b1ab77a 100644 >> --- a/net/wireless/chan.c >> +++ b/net/wireles

Re: [1/9] brcmfmac: Add support for the BCM4359 11ac RSDB PCIE device.

2015-11-27 Thread Arend van Spriel
On 11/26/2015 12:57 PM, Kalle Valo wrote: From: Hante Meuleman Reviewed-by: Arend Van Spriel Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Hante Meuleman Signed-off-by: Arend van Spriel Thanks, 9 patches applied to wireless-drivers-next.git: 2aff030355b5 brcmfmac: Add support for t

Re: [PATCH v2 7/8] cfg80211: Add Kconfig option for ITS-G5 band (5.9 GHz)

2015-11-27 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Thu, 2015-11-26 at 22:10 +0100, Michal Sojka wrote: >>  >> Because in [1] Jouni said that >> >>    "kernel config option + custom regdb would certainly be much >> closer to what I'd like to see from the regulatory enforcement view >> point" >> >> I a

[PATCH v2 07/13] ath9k: MCC enable Opportunistic Power Save

2015-11-27 Thread Janusz Dziedzic
When adding NOA attr enable Opportunistic Power Save. Before we calculate ctwindow but didn't enable oppps. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wi

[PATCH v2 05/13] ath9k: use u32 when calculate tsf

2015-11-27 Thread Janusz Dziedzic
Use u32 while ath9k_hw_gettsf32() and ath9k_hw_gen_timer_start() require u32. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/a

[PATCH v2 10/13] ath9k: MCC, add NOA also in case of an AP

2015-11-27 Thread Janusz Dziedzic
In case of MCC and AP interface, add also NOA attr that will inform stations about absence of an AP. There is a chance that some stations will handle this NOA attr correctly and will know exactly when AP is present/absent. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/beacon.

[PATCH v2 09/13] ath9k: request NOA update when chanctx active

2015-11-27 Thread Janusz Dziedzic
Request NOA update when chanctx active, also in case of STA. Signed-off-by: Janusz Dziedzic --- This depends on: mac80211: add new IEEE80211_VIF_GET_NOA_UPDATE flag drivers/net/wireless/ath/ath9k/channel.c | 2 +- drivers/net/wireless/ath/ath9k/main.c| 5 - 2 files changed, 5 insertions

[PATCH v2 11/13] ath9k: MCC add sta_ap_ratio module param

2015-11-27 Thread Janusz Dziedzic
In case of MCC we can setup STA/AP(GO) ratio. Eg. setting sta_ap_ratio=80 STA will get 80% of time, while AP(GO) 20%. Setup correct ctwindow. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/ath9k.h | 2 + drivers/net/wireless/ath/ath9k/channel.c | 69 +---

[PATCH v2 08/13] ath9k: P2P_CLIENT, get/set NOA correctly

2015-11-27 Thread Janusz Dziedzic
In case we get BSS_CHANGED_P2P_PS early, from mac80211, we didn't set NOA timer correctly, while p2p_ps_vif was NULL. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/at

[PATCH v2 13/13] ath9k: remove ath9k_mod_tsf64_tu

2015-11-27 Thread Janusz Dziedzic
Remove ath9k_mod_tsf64_tu() function while we could use div_u64_rem() function. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/common-beacon.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/common-beac

[PATCH v2 12/13] ath9k: MCC, print time elapsed between events

2015-11-27 Thread Janusz Dziedzic
This is useful for MCC debugging and bug fixing. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/channel.c | 19 +-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/a

[PATCH v2 01/13] ath9k: add debug messages to aggr/chanctx funcs

2015-11-27 Thread Janusz Dziedzic
Add/extend debug messages when chanctx used. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 11 --- drivers/net/wireless/ath/ath9k/hw.c | 8 drivers/net/wireless/ath/ath9k/xmit.c| 15 +++ 3 files changed, 27 insertions(+), 7 d

[PATCH v2 06/13] ath9k: setup correct skb priority for nullfunc

2015-11-27 Thread Janusz Dziedzic
After queue nullfunc for MCC case, we hit WARN_ON in xmit.c:2398 while skb priority wasn't set. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath

[PATCH v2 02/13] ath9k: print real timer value

2015-11-27 Thread Janusz Dziedzic
In case of low HZ before this patch we saw wrong values in debug message. Print real timeout value. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/

[PATCH v2 04/13] ath9k: P2P_CLIENT, send frames after 1ms AP/GO will aprear

2015-11-27 Thread Janusz Dziedzic
AP/GO will aprear after NOA, wait 1ms to be sure AP could receive/answer this frames. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/cha

[PATCH v2 03/13] ath9k: queue null frames in case of MCC

2015-11-27 Thread Janusz Dziedzic
While mac80211 using null frames when connection polling, we should queue this frames while NOA could be there, and AP, P2P_GO could be not present. Without this patch, with no traffic we often saw disconnections while we try to send nullfunc when AP/GO wasn't present. Signed-off-by: Janusz Dzied

Re: [PATCH v2 6/8] cfg80211: reg: Add NL80211_RRF_USER_REGD_NEEDED flag

2015-11-27 Thread Johannes Berg
On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: >  > The NL80211_RRF_USER_REGD_NEEDED flag introduced in this commit > allows > drivers to specify that certain band is enabled only if it is > additionally enabled in user-supplied regulatory database. If the > band > is not present there, the

Re: [PATCH v2 5/8] cfg80211: Add support for OCB-only channels

2015-11-27 Thread Johannes Berg
On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: >  #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR > diff --git a/net/wireless/chan.c b/net/wireless/chan.c > index 59cabc9..b1ab77a 100644 > --- a/net/wireless/chan.c > +++ b/net/wireless/chan.c > @@ -804,7 +804,8 @@ static bool _cfg80

Re: [PATCH v7] Add new mac80211 driver mwlwifi.

2015-11-27 Thread Johannes Berg
On Fri, 2015-11-27 at 02:00 +, David Lin wrote: > > Ditto - you're allowed to modify mac80211. We actually have a patch > > like this > > already: > > https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211- > > next.git/commit/?id=99e7ca44bb910f0cbfda5d9008e8517df0ebc939 > > > > Once if

Re: [PATCH v2 7/8] cfg80211: Add Kconfig option for ITS-G5 band (5.9 GHz)

2015-11-27 Thread Johannes Berg
On Thu, 2015-11-26 at 22:10 +0100, Michal Sojka wrote: >  > Because in [1] Jouni said that > >    "kernel config option + custom regdb would certainly be much > closer to what I'd like to see from the regulatory enforcement view > point" > > I also like the fact that the help text mentions the re