Linux wireless drivers development
 help / color / mirror / Atom feed
* Re: [PATCH] iwlwifi: pcie: fix merge damage
From: Johannes Berg @ 2013-10-07 11:47 UTC (permalink / raw)
  To: sedat.dilek; +Cc: John W. Linville, wireless
In-Reply-To: <CA+icZUVf1A2+-LPEARpOnRShm2BXagtHtw7+SidTs2b_ifV97A@mail.gmail.com>

On Thu, 2013-10-03 at 12:07 +0200, Sedat Dilek wrote:

> > I believe the merge damage only occurred during merging wireless.git (or
> > one of its upstreams) into wireless-next.git.
> >
> 
> Hmm, this patch applies also for Linux v3.12-rc3+, so you are sure it
> is not for iwlwifi-3.12-fixes?

Ahrg, yes, so it happened in wireless-next *before* wireless-next went
into 3.12-rc1.

John, any idea what to do now? Cherry-pick the patch over to
wireless.git?

johannes


^ permalink raw reply

* pull-request: iwlwifi-next 2013-10-07
From: Johannes Berg @ 2013-10-07  9:56 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 5557 bytes --]

John,

Also the first pull request for iwlwifi-next, also quite late, sorry.

We have a collection of things all over, with two bigger things standing
out: a rather big Bluetooth coexistence update and VHT support in rate
scaling.

Let me know if there's any problem.

johannes


The following changes since commit 272b98c6455f00884f0350f775c5342358ebb73f:

  Linux 3.12-rc1 (2013-09-16 16:17:51 -0400)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git for-john

for you to fetch changes up to 07ad72f761482a0b59a946efe0c6290e0858057f:

  iwlwifi: mvm: add support for NICs which have only 16 Tx queues. (2013-10-02 18:00:49 +0200)

----------------------------------------------------------------
Alexander Bondar (2):
      iwlwifi: mvm: Adjust some power management constants
      iwlwifi: mvm: Add device wide power command

Andrei Otcheretianski (1):
      iwlwifi: mvm: Implement BT coex notifications

David Spinadel (3):
      iwlwifi: mvm: implement NoA testing using testmode cmd
      iwlwifi: mvm: add no_basic_ssid option
      iwlwifi: mvm: support sched scan if supported by the fw

Djalal Harouni (1):
      iwlwifi: mvm: make debugfs write() operations write up to count bytes

Emmanuel Grumbach (13):
      iwlwifi: mvm: use CTS to Self if firmware allows it
      iwlwifi: pcie: clean RFKILL interrupt in AMPG
      iwlwifi: mvm: don't sleep while allocating in atomic context
      iwlwifi: mvm: new BT Coex API
      iwlwifi: mvm: BT Coex - no need to send envelopes
      iwlwifi: mvm: BT Coex - use data from firmware
      iwlwifi: mvm: don't use reduced Tx power when not applicable
      iwlwifi: mvm: BT Coex - adapt debugfs to new API
      iwlwifi: mvm: BT Coex - Correctly enable and treat rssi events
      iwlwifi: pcie: dump_stack upon timeout of SYNC cmd
      iwlwifi: mvm: BT Coex - don't limit agg size in loose scheme
      iwlwifi: mvm: BT Coex - set the proper LUT for single ant devices
      iwlwifi: pcie: restart the driver when a command times out

Eyal Shapira (5):
      iwlwifi: mvm: remove rs FSM actions relevant only for 3 antennas
      iwlwifi: mvm: fix switch from shared antenna in case of BT load
      iwlwifi: mvm: update expected tpt tables for VHT
      iwlwifi: mvm: support VHT in rs
      iwlwifi: mvm: remove GF support in rs

Eytan Lifshitz (3):
      iwlwifi: mvm: change the name of init_ucode_run flag
      iwlwifi: mvm: prevent the NIC to be powered at driver load time.
      iwlwifi: mvm: add support for NICs which have only 16 Tx queues.

Jingoo Han (1):
      wireless: iwlwifi: remove unnecessary pci_set_drvdata()

Johannes Berg (5):
      iwlwifi: mvm: implement beacon filtering testmode command
      iwlwifi: mvm: query firmware for non-QoS seqno
      iwlwifi: mvm: give client MACs time to synchronise during restart
      iwlwifi: mvm: fix locking in iwl_mvm_bt_rssi_event()
      iwlwifi: mvm: implement new IPv6 offload API

Max Stepanov (1):
      iwlwifi: mvm: split ADD_STA and ADD_STA_KEY in firmware API

Oren Givon (1):
      iwlwifi: mvm: debugfs: add an option to set antennas for scan command

 drivers/net/wireless/iwlwifi/iwl-fw.h             |  18 +
 drivers/net/wireless/iwlwifi/iwl-prph.h           |   2 +
 drivers/net/wireless/iwlwifi/mvm/bt-coex.c        | 598 ++++++++++++-----
 drivers/net/wireless/iwlwifi/mvm/constants.h      |   4 +-
 drivers/net/wireless/iwlwifi/mvm/d3.c             | 138 +++-
 drivers/net/wireless/iwlwifi/mvm/debugfs.c        | 197 ++++--
 drivers/net/wireless/iwlwifi/mvm/fw-api-bt-coex.h | 145 +++--
 drivers/net/wireless/iwlwifi/mvm/fw-api-d3.h      |  44 +-
 drivers/net/wireless/iwlwifi/mvm/fw-api-power.h   |  29 +-
 drivers/net/wireless/iwlwifi/mvm/fw-api-rs.h      |  21 +-
 drivers/net/wireless/iwlwifi/mvm/fw-api-scan.h    |  34 +-
 drivers/net/wireless/iwlwifi/mvm/fw-api-sta.h     |  55 +-
 drivers/net/wireless/iwlwifi/mvm/fw-api.h         |  16 +-
 drivers/net/wireless/iwlwifi/mvm/fw.c             |  23 +-
 drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c       |  18 +-
 drivers/net/wireless/iwlwifi/mvm/mac80211.c       | 177 ++++-
 drivers/net/wireless/iwlwifi/mvm/mvm.h            |  67 +-
 drivers/net/wireless/iwlwifi/mvm/nvm.c            |  99 ++-
 drivers/net/wireless/iwlwifi/mvm/ops.c            |  60 +-
 drivers/net/wireless/iwlwifi/mvm/power.c          |  70 +-
 drivers/net/wireless/iwlwifi/mvm/quota.c          |  34 +
 drivers/net/wireless/iwlwifi/mvm/rs.c             | 758 ++++++++++++----------
 drivers/net/wireless/iwlwifi/mvm/rs.h             | 154 +++--
 drivers/net/wireless/iwlwifi/mvm/rx.c             |  21 +
 drivers/net/wireless/iwlwifi/mvm/scan.c           | 456 ++++++++++++-
 drivers/net/wireless/iwlwifi/mvm/sta.c            | 192 ++++--
 drivers/net/wireless/iwlwifi/mvm/sta.h            |   4 -
 drivers/net/wireless/iwlwifi/mvm/testmode.h       |  95 +++
 drivers/net/wireless/iwlwifi/mvm/time-event.c     |   5 +-
 drivers/net/wireless/iwlwifi/mvm/time-event.h     |   4 +-
 drivers/net/wireless/iwlwifi/mvm/tx.c             |  49 +-
 drivers/net/wireless/iwlwifi/mvm/utils.c          |   2 +-
 drivers/net/wireless/iwlwifi/pcie/drv.c           |   3 -
 drivers/net/wireless/iwlwifi/pcie/trans.c         |   3 +
 drivers/net/wireless/iwlwifi/pcie/tx.c            |   3 +
 35 files changed, 2716 insertions(+), 882 deletions(-)
 create mode 100644 drivers/net/wireless/iwlwifi/mvm/testmode.h


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply

* pull-request: mac80211-next 2013-10-07
From: Johannes Berg @ 2013-10-07  9:51 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 3818 bytes --]

John,

First pull request for new features - sorry it's so late.

We have an assortment of cleanups and new features, of which the biggest
one is probably the channel-switch support in IBSS. Nothing else really
stands out much.

Let me know if there's any problem.

johannes


The following changes since commit 272b98c6455f00884f0350f775c5342358ebb73f:

  Linux 3.12-rc1 (2013-09-16 16:17:51 -0400)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git for-john

for you to fetch changes up to 7578d57520f51093f590d68e16965e2714e69747:

  mac80211: implement STA CSA for drivers using channel contexts (2013-10-02 18:18:23 +0200)

----------------------------------------------------------------
Arik Nemtsov (1):
      mac80211: implement STA CSA for drivers using channel contexts

Eliad Peller (2):
      mac80211: fix some snprintf misuses
      ieee80211: fix vht cap definitions

Fred Zhou (2):
      mac80211: use exact-size allocation for authentication frame
      mac80211: improve default WMM parameter setting

Janusz Dziedzic (1):
      cfg80211: parse dfs region for internal regdb option

Johannes Berg (4):
      mac80211: add ieee80211_iterate_active_interfaces_rtnl()
      mac80211: use ERR_CAST()
      mac80211: add explicit IBSS driver operations
      regulatory: enable channels 52-64 and 100-144 for world roaming

Lorenzo Bianconi (2):
      mac80211: add fixed_rate management to minstrel rc
      mac80211: do not override fixed_rate_idx in minstrel_ht_update_stats

Michal Kazior (1):
      mac80211: support reporting A-MSDU subframes individually

Sergey Ryazanov (1):
      mac80211: Remove superfluous is_multicast_ether_addr() call

Simon Wunderlich (7):
      cfg80211: export cfg80211_chandef_dfs_required
      mac80211: split off channel switch parsing function
      mac80211: split off ibss disconnect
      mac80211: add support for CSA in IBSS mode
      mac80211: send a CSA action frame when changing channel
      nl80211: enable IBSS support for channel switch announcements
      nl80211: allow CAC only if no operation is going on

Stanislaw Gruszka (1):
      mac80211: change beacon/connection polling

cedric Voncken (1):
      cfg80211: vlan priority handling in WMM

 include/linux/ieee80211.h          |   4 +-
 include/net/cfg80211.h             |   9 +
 include/net/mac80211.h             |  42 +++
 net/mac80211/cfg.c                 |  92 ++++--
 net/mac80211/chan.c                |   5 -
 net/mac80211/debugfs.c             |  55 ++--
 net/mac80211/driver-ops.h          |  27 ++
 net/mac80211/ibss.c                | 608 +++++++++++++++++++++++++++++++------
 net/mac80211/ieee80211_i.h         |  30 +-
 net/mac80211/iface.c               |   4 +
 net/mac80211/key.c                 |   2 +-
 net/mac80211/mlme.c                | 334 +++++---------------
 net/mac80211/rc80211_minstrel.c    |  14 +
 net/mac80211/rc80211_minstrel_ht.c |  23 +-
 net/mac80211/rc80211_pid_debugfs.c |  26 +-
 net/mac80211/rx.c                  |  39 ++-
 net/mac80211/scan.c                |   3 +-
 net/mac80211/spectmgmt.c           | 162 ++++++++++
 net/mac80211/trace.h               |  35 +++
 net/mac80211/tx.c                  |  39 ++-
 net/mac80211/util.c                | 162 ++++++----
 net/mac80211/vht.c                 |   4 +-
 net/wireless/chan.c                |   1 +
 net/wireless/core.h                |   9 -
 net/wireless/debugfs.c             |  24 +-
 net/wireless/genregdb.awk          |   6 +
 net/wireless/nl80211.c             |  52 +++-
 net/wireless/reg.c                 |  14 +-
 net/wireless/util.c                |   9 +
 29 files changed, 1290 insertions(+), 544 deletions(-)


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply

* WIFI USB-Stick for P2P
From: Alexander Müller @ 2013-10-07  9:08 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org

Hello linux-wireless,

I'm wondering if there is a list of usb wifi devices having a good and stable p2p support for wifi direct. We are currently using an AVM Fritz wifi stick that is supported by the carl9170 driver, but it is experiencing random failures and stalls which require a hardware reset. The p2p howto page at http://wireless.kernel.org/en/developers/p2p/howto suggests that there may be other devices and drivers supporting p2p, but I haven't figured out exactly which devices work best.

Can you give me a hint?

Regards,
Alex

________________________________

Dipl.-Inf. (Univ.) Alexander Müller, Software Architect
Phone: +49 89 45 23 47 - 224


jambit GmbH
Erika-Mann-Str. 63, 80636 München
Phone: +49 89 45 23 47 - 0 Fax: +49 89 45 23 47 - 70

http://www.jambit.com where innovation works

Geschäftsführer: Peter F. Fellinger, Markus Hartinger
Sitz: München; Registergericht: München, HRB 129139

^ permalink raw reply

* Re: [PATCH] cfg80211: Pass station supported channel and oper class info to kernel
From: Johannes Berg @ 2013-10-07  8:37 UTC (permalink / raw)
  To: Undekari, Sunil Dutt; +Cc: linux-wireless@vger.kernel.org, j@w1.fi
In-Reply-To: <26F3B0343EE4744AA14EEEF9E1E534511F71B55F@aphydexd01a>

On Thu, 2013-10-03 at 07:20 +0000, Undekari, Sunil Dutt wrote:
> Thanks Johannes for the review.
> 
> >It seems you should validate that the length is even, and at least 2?
> Can I know why the check for even/ atleast 2 is? Though I would
> validate for a non zero length and return failure in the else,
> considering a case where the TDLS peer advertises a single channel.
> Shouldn't it suffice?

Yes, if you look at the 802.11 spec you can know why. Hint: a single
channel is advertised using 2 bytes.

johannes


^ permalink raw reply

* Re: [PATCH 2/2] mac80211: implement support for configuring antenna gain
From: Johannes Berg @ 2013-10-07  8:30 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-wireless, wireless-regdb
In-Reply-To: <1381134567.13586.3.camel@jlt4.sipsolutions.net>

+ wireless-regdb

On Mon, 2013-10-07 at 10:29 +0200, Johannes Berg wrote:
> On Sat, 2013-10-05 at 13:18 +0200, Felix Fietkau wrote:
> 
> > > I understand. I don't understand the pieces about "max_antenna_gain".
> 
> > Right now ath9k has an antenna gain value in the EEPROM, and it compares
> > it against the channel max_antenna_gain value.
> 
> I just don't understand what the max means. If I connect a 5dBi gain
> antenna, but the "max antenna gain" is 3dBi, what should happen?
> 
> > Let's assume we have configured the tx power to the maximum value, the
> > regdb allows 3 dB antenna gain, and the ath9k EEPROM contains an antenna
> > gain of 3 dB as well.
> > If we now add another 3 dB of user-configured antenna gain, it first
> > starts tapping into the regulatory-allowed antenna gain before reducing
> > tx power in mac80211. The driver needs to know about this, so I put the
> > calculated maximum antenna gain into the hw conf as well.
> 
> I don't think it really works this way, does it? I don't believe the
> "regulatory-allowed antenna gain" is really something that's allowed on
> top of the EIRP?
> 
> johannes
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



^ permalink raw reply

* Re: [PATCH 2/2] mac80211: implement support for configuring antenna gain
From: Johannes Berg @ 2013-10-07  8:29 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: linux-wireless
In-Reply-To: <524FF599.5040706@openwrt.org>

On Sat, 2013-10-05 at 13:18 +0200, Felix Fietkau wrote:

> > I understand. I don't understand the pieces about "max_antenna_gain".

> Right now ath9k has an antenna gain value in the EEPROM, and it compares
> it against the channel max_antenna_gain value.

I just don't understand what the max means. If I connect a 5dBi gain
antenna, but the "max antenna gain" is 3dBi, what should happen?

> Let's assume we have configured the tx power to the maximum value, the
> regdb allows 3 dB antenna gain, and the ath9k EEPROM contains an antenna
> gain of 3 dB as well.
> If we now add another 3 dB of user-configured antenna gain, it first
> starts tapping into the regulatory-allowed antenna gain before reducing
> tx power in mac80211. The driver needs to know about this, so I put the
> calculated maximum antenna gain into the hw conf as well.

I don't think it really works this way, does it? I don't believe the
"regulatory-allowed antenna gain" is really something that's allowed on
top of the EIRP?

johannes


^ permalink raw reply

* Re: [regression] [bisected] rt2800pci doesn't work after 9483f40d8d01918b399b4e24d0c1111db0afffeb
From: Stanislaw Gruszka @ 2013-10-07  8:24 UTC (permalink / raw)
  To: Kirill Tkhai; +Cc: linux-wireless, linville, ivdoorn, gwingerde, helmut.schaa
In-Reply-To: <39871380943748@web17j.yandex.ru>

On Sat, Oct 05, 2013 at 07:29:08AM +0400, Kirill Tkhai wrote:
> GIt bisect says the first bad commit is 9483f40d8d01918b399b4e24d0c1111db0afffeb:
> 
>         Author: Jakub Kicinski <kubakici@wp.pl>
>         Date:   Tue May 7 00:28:50 2013 +0200
> 
>             rt2x00pci: Use PCI MSIs whenever possible
> 
>             All PCIe devices must support MSIs, make use of them.

I posted revert of that patch some time ago, it's on the way
upstream/stable ...

Stanislaw

^ permalink raw reply

* [PATCH v2] rt2x00: rt2800lib: no need to toggle RF R30 bit 7 twice
From: Kevin Lo @ 2013-10-07  8:02 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, users

In rt2800_config_channel_rf3xxx(), there's no need to toggle
RF R30 bit 7 twice. 

Signed-off-by: Kevin Lo <kevlo@kevlo.org>
---
Changes since v1:
  - the previous patch was malformed
--- 

diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 25aaa5e..65b4416 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2029,13 +2029,6 @@ static void rt2800_config_channel_rf3xxx(struct rt2x00_dev *rt2x00dev,
 			  rt2x00dev->default_ant.tx_chain_num <= 2);
 	rt2800_rfcsr_write(rt2x00dev, 1, rfcsr);
 
-	rt2800_rfcsr_read(rt2x00dev, 30, &rfcsr);
-	rt2x00_set_field8(&rfcsr, RFCSR30_RF_CALIBRATION, 1);
-	rt2800_rfcsr_write(rt2x00dev, 30, rfcsr);
-	msleep(1);
-	rt2x00_set_field8(&rfcsr, RFCSR30_RF_CALIBRATION, 0);
-	rt2800_rfcsr_write(rt2x00dev, 30, rfcsr);
-
 	rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr);
 	rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, rt2x00dev->freq_offset);
 	rt2800_rfcsr_write(rt2x00dev, 23, rfcsr);

^ permalink raw reply related

* [PATCH v2] rt2x00: rt2800lib: no need to toggle RF R30 bit 7 twice
From: Kevin Lo @ 2013-10-07  7:59 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, users

In rt2800_config_channel_rf3xxx(), there's no need to toggle
RF R30 bit 7 twice.

Signed-off-by: Kevin Lo <kevlo@kevlo.org>
---
Changes since v1:
   - the previous patch was malformed
---

diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c 
b/drivers/net/wireless/rt2x00/rt2800lib.c
index 25aaa5e..65b4416 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2029,13 +2029,6 @@ static void rt2800_config_channel_rf3xxx(struct 
rt2x00_dev *rt2x00dev,
                           rt2x00dev->default_ant.tx_chain_num <= 2);
         rt2800_rfcsr_write(rt2x00dev, 1, rfcsr);

-       rt2800_rfcsr_read(rt2x00dev, 30, &rfcsr);
-       rt2x00_set_field8(&rfcsr, RFCSR30_RF_CALIBRATION, 1);
-       rt2800_rfcsr_write(rt2x00dev, 30, rfcsr);
-       msleep(1);
-       rt2x00_set_field8(&rfcsr, RFCSR30_RF_CALIBRATION, 0);
-       rt2800_rfcsr_write(rt2x00dev, 30, rfcsr);
-
         rt2800_rfcsr_read(rt2x00dev, 23, &rfcsr);
         rt2x00_set_field8(&rfcsr, RFCSR23_FREQ_OFFSET, 
rt2x00dev->freq_offset);
         rt2800_rfcsr_write(rt2x00dev, 23, rfcsr);


^ permalink raw reply related

* Re: [PATCH] wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware
From: Eugene Krasnikov @ 2013-10-07  7:57 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Luis R. Rodriguez, John Linville, linux-wireless, wcn36xx,
	wcn36xx
In-Reply-To: <1381132198.13586.1.camel@jlt4.sipsolutions.net>

Thanx Johannes for advice. Will try it as well.

2013/10/7 Johannes Berg <johannes@sipsolutions.net>:
> On Fri, 2013-10-04 at 16:45 -0700, Luis R. Rodriguez wrote:
>
>> Nice! I test compiled with sparse enabled and got this:
>
> Could also consider running smatch.
>
> johannes
>



-- 
Best regards,
Eugene

^ permalink raw reply

* Re: [PATCH] wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware
From: Johannes Berg @ 2013-10-07  7:49 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Eugene Krasnikov, linville, linux-wireless, wcn36xx, wcn36xx
In-Reply-To: <20131004234514.GA11128@garbanzo.do-not-panic.com>

On Fri, 2013-10-04 at 16:45 -0700, Luis R. Rodriguez wrote:

> Nice! I test compiled with sparse enabled and got this:

Could also consider running smatch.

johannes


^ permalink raw reply

* Re: NetworkManager not listing access points
From: Johannes Berg @ 2013-10-07  7:40 UTC (permalink / raw)
  To: Detlev Casanova; +Cc: Dan Williams, linux-wireless, laurent.pinchart
In-Reply-To: <2916718.7t7kLXuBQV@naboo>

On Mon, 2013-10-07 at 08:48 +0200, Detlev Casanova wrote:

> > > Yes and the problem is most likely to be in the driver because it
> doesn't
> > > occur before commit 0172bb75073e11a5aa9d8a953bdaefb8709f00c8
> ("cfg80211:
> > > use DS or HT operation IEs to determine BSS channel")

[...]

> I looked into wpa_supplicant and after an upgrade from 0.7.3 to 2.0,
> the problem seems to be fixed.

Huh, that's odd. Did 0.7.3 use wext driver?

johannes


^ permalink raw reply

* Re: [Ilw] Re: Kernel panic in 3.10.10-rt7 (iwlwifi)
From: Sebastian Andrzej Siewior @ 2013-10-07  7:33 UTC (permalink / raw)
  To: Grumbach, Emmanuel
  Cc: Thomas Meyer, linux-rt-users@vger.kernel.org, Berg, Johannes,
	linux-wireless@vger.kernel.org, Intel Linux Wireless,
	tglx@linutronix.de
In-Reply-To: <0BA3FCBA62E2DC44AF3030971E174FB301DBC098@HASMSX103.ger.corp.intel.com>

On 10/06/2013 08:00 AM, Grumbach, Emmanuel wrote:
> 
> We have a patch internally that goes into that direction, but one thing though.

Sounds great.

> If you still have a spinlock in the primary handler, wouldn't that sleep in a non-sleepable context? Forgive my -rt ignorance, but I understood that in -rt, all the spinlock go to sleep which basically mean that we can't take any spinlock in the primary irq handler so I am a bit confused here.

After my change there is no primary handler anymore, just the threaded
where you can take the (sleeping) spinlock.
Everything what you wrote is correct:
- you can't take a spinlock in the primary handler
- all spinlocks may sleep

Sebastian

^ permalink raw reply

* [PATCH 06/11] bcma: convert bus code to use dev_groups
From: Greg Kroah-Hartman @ 2013-10-07  6:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, Rafał Miłecki, linux-wireless
In-Reply-To: <1381128950-28125-1-git-send-email-gregkh@linuxfoundation.org>

The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead.  This converts the bcma bus code to use the
correct field.

Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: <linux-wireless@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

Rafał, I can take this through my driver-core tree if you like, just let
me know what would be the easiest for you.

 drivers/bcma/main.c | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 90ee350..e15430a 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -30,28 +30,37 @@ static ssize_t manuf_show(struct device *dev, struct device_attribute *attr, cha
 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
 	return sprintf(buf, "0x%03X\n", core->id.manuf);
 }
+static DEVICE_ATTR_RO(manuf);
+
 static ssize_t id_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
 	return sprintf(buf, "0x%03X\n", core->id.id);
 }
+static DEVICE_ATTR_RO(id);
+
 static ssize_t rev_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
 	return sprintf(buf, "0x%02X\n", core->id.rev);
 }
+static DEVICE_ATTR_RO(rev);
+
 static ssize_t class_show(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	struct bcma_device *core = container_of(dev, struct bcma_device, dev);
 	return sprintf(buf, "0x%X\n", core->id.class);
 }
-static struct device_attribute bcma_device_attrs[] = {
-	__ATTR_RO(manuf),
-	__ATTR_RO(id),
-	__ATTR_RO(rev),
-	__ATTR_RO(class),
-	__ATTR_NULL,
+static DEVICE_ATTR_RO(class);
+
+static struct attribute *bcma_device_attrs[] = {
+	&dev_attr_manuf.attr,
+	&dev_attr_id.attr,
+	&dev_attr_rev.attr,
+	&dev_attr_class.attr,
+	NULL,
 };
+ATTRIBUTE_GROUPS(bcma_device);
 
 static struct bus_type bcma_bus_type = {
 	.name		= "bcma",
@@ -59,7 +68,7 @@ static struct bus_type bcma_bus_type = {
 	.probe		= bcma_device_probe,
 	.remove		= bcma_device_remove,
 	.uevent		= bcma_device_uevent,
-	.dev_attrs	= bcma_device_attrs,
+	.dev_groups	= bcma_device_groups,
 };
 
 static u16 bcma_cc_core_id(struct bcma_bus *bus)
-- 
1.8.4.6.g82e253f.dirty


^ permalink raw reply related

* [PATCH V2] memstick: Fix memory leak in memstick_check() error path
From: Larry Finger @ 2013-10-07  3:21 UTC (permalink / raw)
  To: linville, Alex Dubov
  Cc: linux-wireless, Larry Finger, linux-kernel, Kay Sievers,
	Greg Kroah-Hartman

With kernel 3.12-rc3, kmemleak reports the following leak:

> unreferenced object 0xffff8800ae85c190 (size 16):
>   comm "kworker/u4:3", pid 685, jiffies 4294916336 (age 2831.760s)
>   hex dump (first 16 bytes):
>     6d 65 6d 73 74 69 63 6b 30 00 00 00 00 00 00 00  memstick0.......
>   backtrace:
>     [<ffffffff8146a0d1>] kmemleak_alloc+0x21/0x50
>     [<ffffffff81160720>] __kmalloc_track_caller+0x160/0x2f0
>     [<ffffffff81237b9b>] kvasprintf+0x5b/0x90
>     [<ffffffff8122c0c1>] kobject_set_name_vargs+0x21/0x60
>     [<ffffffff812e7f5c>] dev_set_name+0x3c/0x40
>     [<ffffffffa02bf918>] memstick_check+0xb8/0x340 [memstick]
>     [<ffffffff81069862>] process_one_work+0x1d2/0x670
>     [<ffffffff8106a88a>] worker_thread+0x11a/0x370
>     [<ffffffff81072ea6>] kthread+0xd6/0xe0
>     [<ffffffff81478bbc>] ret_from_fork+0x7c/0xb0

This problem was introduced by commit 0252c3b "memstick: struct device -
replace bus_id with dev_name(), dev_set_name()" where the name is not freed
in the error path. The name is also leaked in memstick_free_card(). 

Thanks to Catalin Marinas for suggesting the fix.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

V2 fixes the typos in the commit message, and frees the name in
memstick_free_card() as well as the error path in memstick_check().

Larry
---
 drivers/memstick/core/memstick.c | 2 ++
 1 file changed, 2 insertion(+)

Index: wireless-testing-save/drivers/memstick/core/memstick.c
===================================================================
--- wireless-testing-save.orig/drivers/memstick/core/memstick.c
+++ wireless-testing-save/drivers/memstick/core/memstick.c
@@ -195,6 +195,7 @@ static void memstick_free_card(struct de
 {
 	struct memstick_dev *card = container_of(dev, struct memstick_dev,
 						 dev);
+	kfree(card->dev.kobj.name);
 	kfree(card);
 }
 
@@ -415,6 +416,7 @@ static struct memstick_dev *memstick_all
 	return card;
 err_out:
 	host->card = old_card;
+	kfree(card->dev.kobj.name);
 	kfree(card);
 	return NULL;
 }

^ permalink raw reply

* Re: [PATCH] wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware
From: Eugene Krasnikov @ 2013-10-06 20:39 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: John Linville, linux-wireless, wcn36xx, wcn36xx
In-Reply-To: <CAFSJ42YRmwZ-mK5yADsf=sfi7b5rEK9hFdH-waoswrubvyZddA@mail.gmail.com>

Hi Luis,

Warnings are valid! Thanx for pointing them. Will fix and resend the
patch togather with ur regdb patch+warning fix.

2013/10/6 Eugene Krasnikov <k.eugene.e@gmail.com>:
> Hi Luis,
>
> Thanx for the patch. Although there is a one small comment:
>
>> +static void wcn_reg_notifier(struct wiphy *wiphy,
>> +                            struct regulatory_request *request)
>> +{
>
> Function should be called wcn36xx_reg_notifier not wcn_reg_notifier.
> Could you please change that?
>
> Also are you concerned about this warnings?
>
>> Nice! I test compiled with sparse enabled and got this:
>>
>> mcgrof@chalten ~/wireless-testing (git::master)$ make C=1
>> M=drivers/net/wireless/ath/wcn36xx/
>> CHECK   drivers/net/wireless/ath/wcn36xx/main.c
>> CC [M]  drivers/net/wireless/ath/wcn36xx/main.o
>> CHECK   drivers/net/wireless/ath/wcn36xx/dxe.c
>> CC [M]  drivers/net/wireless/ath/wcn36xx/dxe.o
>> CHECK   drivers/net/wireless/ath/wcn36xx/txrx.c
>> CC [M]  drivers/net/wireless/ath/wcn36xx/txrx.o
>> CHECK   drivers/net/wireless/ath/wcn36xx/smd.c
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (4096 8)
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (512 8)
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (128 8)
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (8 8)
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (256 8)
>> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (4096 8)
>
> What kind of config are you using to generate this warnings?



-- 
Best regards,
Eugene

^ permalink raw reply

* Re: [PATCH] wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware
From: Eugene Krasnikov @ 2013-10-06 19:30 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: John Linville, linux-wireless, wcn36xx, wcn36xx
In-Reply-To: <20131004234514.GA11128@garbanzo.do-not-panic.com>

Hi Luis,

Thanx for the patch. Although there is a one small comment:

> +static void wcn_reg_notifier(struct wiphy *wiphy,
> +                            struct regulatory_request *request)
> +{

Function should be called wcn36xx_reg_notifier not wcn_reg_notifier.
Could you please change that?

Also are you concerned about this warnings?

> Nice! I test compiled with sparse enabled and got this:
>
> mcgrof@chalten ~/wireless-testing (git::master)$ make C=1
> M=drivers/net/wireless/ath/wcn36xx/
> CHECK   drivers/net/wireless/ath/wcn36xx/main.c
> CC [M]  drivers/net/wireless/ath/wcn36xx/main.o
> CHECK   drivers/net/wireless/ath/wcn36xx/dxe.c
> CC [M]  drivers/net/wireless/ath/wcn36xx/dxe.o
> CHECK   drivers/net/wireless/ath/wcn36xx/txrx.c
> CC [M]  drivers/net/wireless/ath/wcn36xx/txrx.o
> CHECK   drivers/net/wireless/ath/wcn36xx/smd.c
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (4096 8)
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (512 8)
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (128 8)
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (8 8)
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (256 8)
> /home/mcgrof/wireless-testing/arch/x86/include/asm/bitops.h:329:18: warning: invalid access past the end of 'caps' (4096 8)

What kind of config are you using to generate this warnings?

^ permalink raw reply

* RE: [PATCH 3/3] [RFC] cfg80211: Enable GO operation on additional channels
From: Peer, Ilan @ 2013-10-06 11:28 UTC (permalink / raw)
  To: Luis R. Rodriguez, Jeff Johnson
  Cc: Spinadel, David, linux-wireless,
	wireless-regdb@lists.infradead.org, Jouni Malinen, Ginsburg, Noam,
	Perelmooter, Liraz, Shalev, Oz, Michael Green
In-Reply-To: <CAB=NE6WmEQg68BViF9v+2D__p8Gc_5bCFUkBMfTz0A96C1jyDw@mail.gmail.com>

PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBtY2dyb2ZAZ21haWwuY29tIFtt
YWlsdG86bWNncm9mQGdtYWlsLmNvbV0gT24gQmVoYWxmIE9mIEx1aXMgUi4NCj4gUm9kcmlndWV6
DQo+IFNlbnQ6IEZyaWRheSwgT2N0b2JlciAwNCwgMjAxMyAyMDozOA0KPiBUbzogUGVlciwgSWxh
bjsgSmVmZiBKb2huc29uDQo+IENjOiBTcGluYWRlbCwgRGF2aWQ7IGxpbnV4LXdpcmVsZXNzOyB3
aXJlbGVzcy1yZWdkYkBsaXN0cy5pbmZyYWRlYWQub3JnOyBKb3VuaQ0KPiBNYWxpbmVuOyBHaW5z
YnVyZywgTm9hbTsgUGVyZWxtb290ZXIsIExpcmF6OyBTaGFsZXYsIE96OyBNaWNoYWVsIEdyZWVu
DQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0ggMy8zXSBbUkZDXSBjZmc4MDIxMTogRW5hYmxlIEdPIG9w
ZXJhdGlvbiBvbiBhZGRpdGlvbmFsDQo+IGNoYW5uZWxzDQo+IA0KPiBPbiBUaHUsIEp1bCAxOCwg
MjAxMyBhdCA0OjM0IFBNLCBMdWlzIFIuIFJvZHJpZ3VleiA8bWNncm9mQGRvLW5vdC0NCj4gcGFu
aWMuY29tPiB3cm90ZToNCj4gPiBPbiBXZWQsIEp1bCAxNywgMjAxMyBhdCAxMjoxNSBQTSwgUGVl
ciwgSWxhbiA8aWxhbi5wZWVyQGludGVsLmNvbT4gd3JvdGU6DQo+ID4+PiBJdCB3YXMgdW5jbGVh
ciBmb3Igd2hhdCBleGFjdCBjaGFubmVscyB5b3UgbmVlZGVkIHRvIGRlYWwgd2l0aCBoZXJlLg0K
PiA+Pj4gR2l2ZW4gcmV2aWV3IHNvIGZhciB3b3VsZG4ndCBpdCBqdXN0IGJlIERGUyBmbGFnZ2Vk
IGNoYW5uZWxzIG9uIHNvbWUNCj4gPj4+IFVOSUkgYmFuZHMgPyBUaGVuIGFnYWluIGlmIHRoZSBp
bmRvb3IgZmxhZyBuZWVkcyB0byBiZSBwZWdnZWQgdG8gdG8NCj4gPj4+IGEgc3BlY2lmaWMgVU5J
SSBiYW5kIGFuZCB3ZSBjYW4gZG8gdGhhdCBvbiB3aXJlbGVzcy1yZWdkYiBkbyB3ZSBldmVuDQo+
ID4+PiBuZWVkIHRoZSBVTklJIGJhbmQgY2hlY2sgcm91dGluZSBoZWxwZXI/DQo+ID4+Pg0KPiA+
Pg0KPiA+PiBHZW5lcmFsbHkgaXQgaXMgcG9zc2libGUgdGhhdCB0aGUgaW5kb29yIHByb3BlcnR5
IGlzIG5vdCBwZWdnZWQgdG8NCj4gPj4gdGhlICdvdGhlcl9jaGFubmVsJywgb3IgaXQgaXMgcG9z
c2libGUgdGhhdCBpdCBpcyBwZWdnZWQgYnV0IHRoZXkgYXJlDQo+ID4+IG5vdCBpbiB0aGUgc2Ft
ZSBVTklJIGJhbmQsIHNvIHRoZSB2ZXJpZmljYXRpb24gaXMgc3RpbGwgbmVlZGVkLiBJDQo+ID4+
IGd1ZXNzIHRoYXQgb25jZSBJIGdldCB0aGUgbGlzdCB5b3UgcmVxdWVzdGVkIHRoaW5ncyB3aWxs
IGJlIGNsZWFyZXINCj4gPj4gOikNCj4gPg0KPiA+IE9LIHNvIHRoZXJlIGFyZSBleGNlcHRpb25z
IHRvIHRoZSBpbmRvb3IgZmxhZyBhZmZlY3RpbmcgR08gdW5kZXIgdGhlc2UNCj4gPiBydWxlcyBv
ciBub3QuIExvb2tpbmcgZm9yd2FyZCB0byB0aGUgcmVzcGluLg0KPiANCj4gQW54aW91c2x5IGxv
b2tpbmcgZm9yd2FyZCB0byB0aGUgcmVzcGluIDpEDQo+IA0KDQpNZSB0b28gOykgLi4uIHVuZm9y
dHVuYXRlbHkgSSBkaWQgbm90IGdldCBhIGNoYW5jZSB0byB3b3JrIG9uIHRoaXMgaW4gdGhlIGxh
c3QgY291cGxlIG9mIG1vbnRocy4gSG9wZSBJJ2xsIGdldCB0byBpdCB0aGlzIHdlZWsgb3IgdGhl
IG5leHQuIFNvcnJ5IGZvciBub3QgdXBkYXRpbmcgZWFybGllciAuLi4NCg0KUmVnYXJkcywNCg0K
SWxhbi4NCg0K

^ permalink raw reply

* RE: [Ilw] Re: Kernel panic in 3.10.10-rt7 (iwlwifi)
From: Grumbach, Emmanuel @ 2013-10-06  6:00 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior, Thomas Meyer
  Cc: linux-rt-users@vger.kernel.org, Berg, Johannes,
	linux-wireless@vger.kernel.org, Intel Linux Wireless,
	tglx@linutronix.de
In-Reply-To: <20131004101216.GA17043@linutronix.de>

PiA+TXkgc3lzdGVtIGRpZCBsb2NrdXAgYWZ0ZXIgc2hvcnQgdGltZSBvZiB1c2FnZS4gSSB3YXMg
b25seSBhYmxlIHRvIGNhcHR1cmUNCj4gdGhpcyBzY3JlZW5zaG90Og0KPiA+DQo+ID5BbnkgaWRl
YXM/DQo+IA0KPiB0aGUgcHJvYmxlbSBzZWVtcyB0byBiZSB0aGF0IHRoZXkgdXNlIHNsZWVwaW5n
IGxvY2tzIGluIHRoZSBwcmltYXJ5IGlycQ0KPiBoYW5kbGVyLg0KPiANCj4gaXdsX3BjaWVfcnhf
cmVwbGVuaXNoKCkgdGFrZXMgdGhlIHNhbWUgbG9jayAoLT5pcnFfbG9jaykgYW5kIGFkZGl0aW9u
YWx5DQo+IC0+bG9jayBzbyBJIHRoaW5rIHR1bnJuaW5nIGV2ZXJ5dGhpbmcgaW50byByYXcgbG9j
a3MgaXNuJ3QgdmVyeSB3aXNlIGZvcg0KPiB0aGUgbGF0ZW5jeS4NCj4gDQo+IFRoZSB0aHJlYWRl
ZCBoYW5kbGVyIHRha2VzIGZvciBhIHZlcnkgc2hvcnQgdGltZSBpcnFfbG9jayBsb2NrLiBJdCBh
bHNvIHRha2VzDQo+IHRoZSAtPmxvY2sgdmlhIChpd2xfcGNpZV9yeHFfaW5jX3dyX3B0cigpKSB3
aXRoIGlycXMgb2ZmICh0aGF0IG9uZSBsb29rcyBzaG9ydCwNCj4gdG9vKSBhbmQgb3RoZXJzIGZv
ciBpbnN0YW5jZSB2aWEgaXdsX3BjaWVfcnhfaGFuZGxlKCkuDQo+IElkZWFsbHkgdGhlIGRyaXZl
ciBzaG91bGQgaG9sZCBvbmUgc3BpbmxvY2sgdG8gc3luY2hyb25pemUgdGhlIHByaW1hcnkgYW5k
DQo+IHRocmVhZGVkIGlycSBoYW5kbGVyIHdoaWxlIGRpc2FibGluZyB0aGUgaW50ZXJydXB0IGlu
IHRoZSBpd2wgaGFyZHdhcmUuDQo+IEV2ZXJ5dGhpbmcgZWxzZSB3b3VsZCB0aGVuIGhvbGQgb25l
IG9yIHR3byBtdXRleChlcykgYW5kIGNvdWxkIGV2ZW4NCj4gYWxsb2NhdGUgbWVtb3J5IHdpdGgg
R0ZQX0tFUk5FTC4NCg0KV2UgaGF2ZSBhIHBhdGNoIGludGVybmFsbHkgdGhhdCBnb2VzIGludG8g
dGhhdCBkaXJlY3Rpb24sIGJ1dCBvbmUgdGhpbmcgdGhvdWdoLiBJZiB5b3Ugc3RpbGwgaGF2ZSBh
IHNwaW5sb2NrIGluIHRoZSBwcmltYXJ5IGhhbmRsZXIsIHdvdWxkbid0IHRoYXQgc2xlZXAgaW4g
YSBub24tc2xlZXBhYmxlIGNvbnRleHQ/IEZvcmdpdmUgbXkgLXJ0IGlnbm9yYW5jZSwgYnV0IEkg
dW5kZXJzdG9vZCB0aGF0IGluIC1ydCwgYWxsIHRoZSBzcGlubG9jayBnbyB0byBzbGVlcCB3aGlj
aCBiYXNpY2FsbHkgbWVhbiB0aGF0IHdlIGNhbid0IHRha2UgYW55IHNwaW5sb2NrIGluIHRoZSBw
cmltYXJ5IGlycSBoYW5kbGVyIHNvIEkgYW0gYSBiaXQgY29uZnVzZWQgaGVyZS4NCg0KPiANCj4g
Rm9yIG5vdyBJIHRoaW5rIHRoZSBzaW1wbHkgdGhpbmcgd291bGQgYmUganVzdCB0byBsZXQgYm90
aCBoYW5kbGVycyBydW4gaW4gdGhlDQo+IHRocmVhZC4gRG9lcyB0aGlzIHBhdGNoIHNvbHZlIHlv
dXIgcHJvYmxlbT8NCj4gDQo+IGRpZmYgLS1naXQgYS9kcml2ZXJzL25ldC93aXJlbGVzcy9pd2x3
aWZpL3BjaWUvdHJhbnMuYw0KPiBiL2RyaXZlcnMvbmV0L3dpcmVsZXNzL2l3bHdpZmkvcGNpZS90
cmFucy5jDQo+IGluZGV4IGFlYjcwZTEuLjQyNTY3ZmMgMTAwNjQ0DQo+IC0tLSBhL2RyaXZlcnMv
bmV0L3dpcmVsZXNzL2l3bHdpZmkvcGNpZS90cmFucy5jDQo+ICsrKyBiL2RyaXZlcnMvbmV0L3dp
cmVsZXNzL2l3bHdpZmkvcGNpZS90cmFucy5jDQo+IEBAIC0xNDU2LDYgKzE0NTYsMjAgQEAgc3Rh
dGljIGNvbnN0IHN0cnVjdCBpd2xfdHJhbnNfb3BzIHRyYW5zX29wc19wY2llID0NCj4gew0KPiAg
CS5zZXRfYml0c19tYXNrID0gaXdsX3RyYW5zX3BjaWVfc2V0X2JpdHNfbWFzaywgIH07DQo+IA0K
PiArI2lmZGVmIENPTkZJR19QUkVFTVBUX1JUX0JBU0UNCj4gK3N0YXRpYyBpcnFyZXR1cm5fdCBp
d2xfcnRfaXJxX2hhbmRsZXIoaW50IGlycSwgdm9pZCAqZGV2X2lkKSB7DQo+ICsJaXJxcmV0dXJu
X3QgcmV0Ow0KPiArDQo+ICsJbG9jYWxfYmhfZGlzYWJsZSgpOw0KPiArCXJldCA9IGl3bF9wY2ll
X2lzcl9pY3QoaXJxLCBkZXZfaWQpOw0KPiArCWxvY2FsX2JoX2VuYWJsZSgpOw0KPiArCWlmIChy
ZXQgPT0gSVJRX1dBS0VfVEhSRUFEKQ0KPiArCQlyZXQgPSBpd2xfcGNpZV9pcnFfaGFuZGxlcihp
cnEsIGRldl9pZCk7DQo+ICsJcmV0dXJuIHJldDsNCj4gK30NCj4gKyNlbmRpZg0KPiArDQo+ICBz
dHJ1Y3QgaXdsX3RyYW5zICppd2xfdHJhbnNfcGNpZV9hbGxvYyhzdHJ1Y3QgcGNpX2RldiAqcGRl
diwNCj4gIAkJCQkgICAgICAgY29uc3Qgc3RydWN0IHBjaV9kZXZpY2VfaWQgKmVudCwNCj4gIAkJ
CQkgICAgICAgY29uc3Qgc3RydWN0IGl3bF9jZmcgKmNmZykNCj4gQEAgLTE1NjYsOSArMTU4MCwx
NCBAQCBzdHJ1Y3QgaXdsX3RyYW5zICppd2xfdHJhbnNfcGNpZV9hbGxvYyhzdHJ1Y3QNCj4gcGNp
X2RldiAqcGRldiwNCj4gIAlpZiAoaXdsX3BjaWVfYWxsb2NfaWN0KHRyYW5zKSkNCj4gIAkJZ290
byBvdXRfZnJlZV9jbWRfcG9vbDsNCj4gDQo+ICsjaWZkZWYgQ09ORklHX1BSRUVNUFRfUlRfQkFT
RQ0KPiArCWlmIChyZXF1ZXN0X3RocmVhZGVkX2lycShwZGV2LT5pcnEsIE5VTEwsIGl3bF9ydF9p
cnFfaGFuZGxlciwNCj4gKwkJCQkgSVJRRl9TSEFSRUQgfCBJUlFGX09ORVNIT1QsDQo+IERSVl9O
QU1FLCB0cmFucykpIHsgI2Vsc2UNCj4gIAlpZiAocmVxdWVzdF90aHJlYWRlZF9pcnEocGRldi0+
aXJxLCBpd2xfcGNpZV9pc3JfaWN0LA0KPiAgCQkJCSBpd2xfcGNpZV9pcnFfaGFuZGxlciwNCj4g
IAkJCQkgSVJRRl9TSEFSRUQsIERSVl9OQU1FLCB0cmFucykpIHsNCj4gKyNlbmRpZg0KPiAgCQlJ
V0xfRVJSKHRyYW5zLCAiRXJyb3IgYWxsb2NhdGluZyBJUlEgJWRcbiIsIHBkZXYtPmlycSk7DQo+
ICAJCWdvdG8gb3V0X2ZyZWVfaWN0Ow0KPiAgCX0NCj4gLS0NCj4gMS44LjQucmMzDQo+IA0KPiAN
Cj4gPldpdGgga2luZCByZWdhcmRzDQo+ID5UaG9tYXMNCj4gDQo+IFNlYmFzdGlhbg0KPiANCj4g
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gaWx3IG1h
aWxpbmcgbGlzdA0KPiBpbHdAbGludXguaW50ZWwuY29tDQo+IGh0dHA6Ly9saW51eC5pbnRlbC5j
b20vbWFpbG1hbi9saXN0aW5mby9pbHcNCg==

^ permalink raw reply

* [PATCH] net: p54spi: remove deprecated IRQF_DISABLED
From: Michael Opdenacker @ 2013-10-06  5:04 UTC (permalink / raw)
  To: chunkeey, linville
  Cc: linux-wireless, netdev, linux-kernel, Michael Opdenacker

This patch proposes to remove the use of the IRQF_DISABLED flag

It's a NOOP since 2.6.35 and it will be removed one day.

Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
---
 drivers/net/wireless/p54/p54spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index 7fc46f2..de15171 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -636,7 +636,7 @@ static int p54spi_probe(struct spi_device *spi)
 	gpio_direction_input(p54spi_gpio_irq);
 
 	ret = request_irq(gpio_to_irq(p54spi_gpio_irq),
-			  p54spi_interrupt, IRQF_DISABLED, "p54spi",
+			  p54spi_interrupt, 0, "p54spi",
 			  priv->spi);
 	if (ret < 0) {
 		dev_err(&priv->spi->dev, "request_irq() failed");
-- 
1.8.1.2


^ permalink raw reply related

* Re: pci-half-mini 7206 ac/bluetooth issues
From: Emmanuel Grumbach @ 2013-10-06  5:02 UTC (permalink / raw)
  To: Tim Nelson; +Cc: linux-wireless
In-Reply-To: <CAOAOC6YT=ek4S=s0YNqejD2iCdPYng6FnJ1ROegwWhmcVZhyOg@mail.gmail.com>

On Sun, Oct 6, 2013 at 4:49 AM, Tim Nelson <tim.l.nelson@gmail.com> wrote:
> If I use both the wifi and the bluetooth at the same time on the
> adapter eventually wifi dies.
>
> Here is a complete log from my syslog, I rmmod'd the iwlmvm and then
> modprobed it to resolve the issue.  This only happens when using
> wifi/bluetooth at the same time.
>

can you please try this:

modprobe bt_coex_active=0

and also (in a different test), can you please disable power save - add:
options iwlmvm power_scheme=1
to /etc/modprobe.d/iwlwifi.conf or something like that?

Thanks

^ permalink raw reply

* Re: [regression] [bisected] rt2800pci doesn't work after 9483f40d8d01918b399b4e24d0c1111db0afffeb
From: Kirill Tkhai @ 2013-10-06  2:10 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org
  Cc: Stanislaw Gruszka, linville@tuxdriver.com, ivdoorn@gmail.com,
	gwingerde@gmail.com, helmut.schaa@googlemail.com
In-Reply-To: <39871380943748@web17j.yandex.ru>

05.10.2013, 07:29, "Kirill Tkhai" <tkhai@yandex.ru>:
> Hi, everyone!
>
> I've just moved from v3.10 to v3.11 and found that my rt2800pci doesn't work:
>
> [  705.761252] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
> [  705.871194] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
> [  710.757696] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
> [  710.867637] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
> [  710.977581] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
> [  711.087516] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
> [  711.119530] ieee80211 phy3: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 0
> [  712.219961] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
> [  712.329900] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
> [  714.233932] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
> [  714.343872] ieee80211 phy3: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
> [  721.135366] rt2800pci 0000:01:00.0: irq 45 for MSI/MSI-X
> [  721.135467] ieee80211 phy4: rt2x00_set_rt: Info - RT chipset 3290, rev 0015 detected
> [  721.137440] ieee80211 phy4: rt2x00_set_rf: Info - RF chipset 3290 detected
>
> GIt bisect says the first bad commit is 9483f40d8d01918b399b4e24d0c1111db0afffeb:
>
>         Author: Jakub Kicinski <kubakici@wp.pl>
>         Date:   Tue May 7 00:28:50 2013 +0200
>
>             rt2x00pci: Use PCI MSIs whenever possible
>
>             All PCIe devices must support MSIs, make use of them.
>
> With reverted commit everything is ok.
>
> $ cat /sys/bus/pci/devices/*/msi_bus
> 1
> 1
> 1
>
> $ cat /proc/interrupts
> 45:         97          0          0          0   PCI-MSI-edge      0000:01:00.0
>
> PCI IDS: 1814:3298

Mistake: right PCI IDS are 1814:3290:103c:18ec

$ lspci -vv
01:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
	Subsystem: Hewlett-Packard Company Device 18ec
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at c2510000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number <my top secret MAC address>
	Kernel driver in use: rt2800pci

$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM75 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
01:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)

^ permalink raw reply

* pci-half-mini 7206 ac/bluetooth issues
From: Tim Nelson @ 2013-10-06  1:49 UTC (permalink / raw)
  To: linux-wireless

If I use both the wifi and the bluetooth at the same time on the
adapter eventually wifi dies.

Here is a complete log from my syslog, I rmmod'd the iwlmvm and then
modprobed it to resolve the issue.  This only happens when using
wifi/bluetooth at the same time.

Oct  5 21:11:28 nix-S405C whoopsie[1177]: online
Oct  5 21:11:53 nix-S405C kernel: [ 3381.041396] perf samples too long
(2527 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
Oct  5 21:12:01 nix-S405C whoopsie[1177]: online
Oct  5 21:13:18  whoopsie[1177]: last message repeated 2 times
Oct  5 21:14:11 nix-S405C whoopsie[1177]: online
Oct  5 21:15:19  whoopsie[1177]: last message repeated 2 times
Oct  5 21:16:48 nix-S405C kernel: [ 3676.130121] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:16:48 nix-S405C kernel: [ 3676.130418] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 236
Oct  5 21:16:48 nix-S405C kernel: [ 3676.130678] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:17:01 nix-S405C acpid: client 1157[0:0] has disconnected
Oct  5 21:17:01 nix-S405C acpid: client connected from 1157[0:0]
Oct  5 21:17:01 nix-S405C acpid: 1 client rule loaded
Oct  5 21:17:01 nix-S405C CRON[6025]: (root) CMD (   cd / && run-parts
--report /etc/cron.hourly)
Oct  5 21:18:09 nix-S405C NetworkManager[941]: <info> (wlan1):
disconnecting for new activation request.
Oct  5 21:18:09 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: activated -> disconnected (reason 'none') [100 30 0]
Oct  5 21:18:09 nix-S405C NetworkManager[941]: <info> (wlan1):
deactivating device (reason 'none') [0]
Oct  5 21:18:09 nix-S405C NetworkManager[941]: <info> (wlan1):
canceled DHCP transaction, DHCP client pid 4131
Oct  5 21:18:09 nix-S405C avahi-daemon[877]: Withdrawing address
record for fe80::e8b:fdff:fe32:dec6 on wlan1.
Oct  5 21:18:09 nix-S405C avahi-daemon[877]: Leaving mDNS multicast
group on interface wlan1.IPv6 with address fe80::e8b:fdff:fe32:dec6.
Oct  5 21:18:09 nix-S405C avahi-daemon[877]: Interface wlan1.IPv6 no
longer relevant for mDNS.
Oct  5 21:18:09 nix-S405C avahi-daemon[877]: Withdrawing address
record for 192.168.11.7 on wlan1.
Oct  5 21:18:09 nix-S405C avahi-daemon[877]: Leaving mDNS multicast
group on interface wlan1.IPv4 with address 192.168.11.7.
Oct  5 21:18:11 nix-S405C avahi-daemon[877]: Interface wlan1.IPv4 no
longer relevant for mDNS.
Oct  5 21:18:11 nix-S405C avahi-daemon[877]: Joining mDNS multicast
group on interface wlan1.IPv6 with address fe80::e8b:fdff:fe32:dec6.
Oct  5 21:18:11 nix-S405C avahi-daemon[877]: New relevant interface
wlan1.IPv6 for mDNS.
Oct  5 21:18:11 nix-S405C avahi-daemon[877]: Registering new address
record for fe80::e8b:fdff:fe32:dec6 on wlan1.*.
Oct  5 21:18:11 nix-S405C kernel: [ 3759.456601] iwlwifi 0000:02:00.0:
Error sending MAC_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:18:11 nix-S405C kernel: [ 3759.456614] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 237
Oct  5 21:18:11 nix-S405C kernel: [ 3759.456622] iwlwifi 0000:02:00.0:
Failed to send MAC context (action:2): -110
Oct  5 21:18:11 nix-S405C kernel: [ 3759.456629] iwlwifi 0000:02:00.0:
failed to update MAC 0c:8b:fd:32:de:c6
Oct  5 21:18:11 nix-S405C kernel: [ 3759.456789] wlan1:
deauthenticating from b0:c7:45:36:60:10 by local choice (reason=3)
Oct  5 21:18:13 nix-S405C kernel: [ 3761.457552] iwlwifi 0000:02:00.0:
Error sending MAC_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:18:13 nix-S405C kernel: [ 3761.457565] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 238
Oct  5 21:18:13 nix-S405C kernel: [ 3761.457573] iwlwifi 0000:02:00.0:
Failed to send MAC context (action:2): -110
Oct  5 21:18:13 nix-S405C kernel: [ 3761.457580] iwlwifi 0000:02:00.0:
failed to update MAC 0c:8b:fd:32:de:c6
Oct  5 21:18:15 nix-S405C kernel: [ 3763.458449] iwlwifi 0000:02:00.0:
Error sending POWER_TABLE_CMD: time out after 2000ms.
Oct  5 21:18:15 nix-S405C kernel: [ 3763.458463] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 239
Oct  5 21:18:15 nix-S405C kernel: [ 3763.458470] iwlwifi 0000:02:00.0:
failed to update power mode
Oct  5 21:18:17 nix-S405C kernel: [ 3765.459338] iwlwifi 0000:02:00.0:
Error sending ADD_STA: time out after 2000ms.
Oct  5 21:18:17 nix-S405C kernel: [ 3765.459352] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 240
Oct  5 21:18:17 nix-S405C kernel: [ 3765.459362] wlan1: HW problem -
can not stop rx aggregation for b0:c7:45:36:60:10 tid 0
Oct  5 21:18:19 nix-S405C kernel: [ 3767.460238] iwlwifi 0000:02:00.0:
Error sending ADD_STA: time out after 2000ms.
Oct  5 21:18:19 nix-S405C kernel: [ 3767.460259] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 241
Oct  5 21:18:19 nix-S405C kernel: [ 3767.460269] wlan1: failed to
remove key (0, b0:c7:45:36:60:10) from hardware (-110)
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461136] iwlwifi 0000:02:00.0:
Error sending REPLY_BEACON_FILTERING_CMD: time out after 2000ms.
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461148] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 242
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461155] ------------[ cut
here ]------------
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461183] WARNING: CPU: 1 PID:
4103 at /build/buildd/linux-3.11.0/drivers/net/wireless/iwlwifi/mvm/mac80211.c:1
047 iwl_mvm_mac_sta_state+0x21b/0x280 [iwlmvm]()
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461187] Modules linked in:
hidp hid pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF)
vboxdrv(OF) dm_crypt(F
) parport_pc(F) ppdev(F) bnep rfcomm joydev(F) binfmt_misc(F) uvcvideo
videobuf2_vmalloc videobuf2_memops asus_nb_wmi videobuf2_core asus_wmi
sparse_k
eymap videodev x86_pkg_temp_thermal intel_powerclamp coretemp
kvm_intel(F) kvm(F) crc32_pclmul(F) aesni_intel(F) aes_i586(F) xts(F)
lrw(F) gf128mul(F)
 ablk_helper(F) cryptd(F) arc4(F) btusb iwlmvm mac80211 bluetooth
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec
snd_hwdep(F) sn
d_pcm(F) snd_page_alloc(F) snd_seq_midi(F) snd_seq_midi_event(F)
snd_rawmidi(F) microcode(F) psmouse(F) serio_raw(F) iwlwifi lpc_ich
rtsx_pci_ms memst
ick cfg80211 snd_seq(F) snd_seq_device(F) snd_timer(F) mei_me snd(F)
mei soundcore(F) mac_hid lp(F) parport(F) i915 rtsx_pci_sdmmc
i2c_algo_bit drm_km
s_helper drm ahci(F) libahci(F) r8169 wmi rtsx_pci mii(F) video(F)
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461315] CPU: 1 PID: 4103
Comm: wpa_supplicant Tainted: GF          O 3.11.0-11-generic
#17-Ubuntu
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461319] Hardware name:
ASUSTeK COMPUTER INC. K46CA/K46CA, BIOS K46CA.315 05/17/2013
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461324]  00000000 00000000
f0bf5a54 c16316eb 00000000 f0bf5a84 c105273e c1805cc4
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461338]  00000001 00001007
f90e6a98 00000417 f90ce89b f90ce89b f5c54c20 edc60de0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461351]  efdb1300 f0bf5a94
c1052802 00000009 00000000 f0bf5ad8 f90ce89b f1b27064
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461365] Call Trace:
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461380]  [<c16316eb>]
dump_stack+0x41/0x52
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461391]  [<c105273e>]
warn_slowpath_common+0x7e/0xa0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461408]  [<f90ce89b>] ?
iwl_mvm_mac_sta_state+0x21b/0x280 [iwlmvm]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461421]  [<f90ce89b>] ?
iwl_mvm_mac_sta_state+0x21b/0x280 [iwlmvm]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461430]  [<c1052802>]
warn_slowpath_null+0x22/0x30
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461443]  [<f90ce89b>]
iwl_mvm_mac_sta_state+0x21b/0x280 [iwlmvm]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461458]  [<f90ce680>] ?
iwl_mvm_mac_conf_tx+0x80/0x80 [iwlmvm]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461488]  [<f933cea6>]
sta_info_move_state+0x196/0x630 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461515]  [<f933d40a>]
__sta_info_destroy+0xca/0x330 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461553]  [<f9359d23>] ?
ieee80211_xmit+0x93/0xf0 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461580]  [<f933d77d>]
sta_info_flush_defer+0x6d/0x90 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461623]  [<f9370303>]
ieee80211_set_disassoc+0xa3/0x400 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461663]  [<f93743ca>]
ieee80211_mgd_deauth+0x1aa/0x210 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461699]  [<f934dbc6>]
ieee80211_deauth+0x16/0x20 [mac80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461735]  [<f8b9f3dd>]
cfg80211_mlme_deauth+0x8d/0x120 [cfg80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461745]  [<c1634f1d>] ?
__mutex_lock_slowpath+0x14d/0x180
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461776]  [<f8b8c334>]
nl80211_deauthenticate+0xd4/0x120 [cfg80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461808]  [<f8b8ab50>] ?
__cfg80211_wdev_from_attrs+0x180/0x180 [cfg80211]
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461818]  [<c157ff89>]
genl_rcv_msg+0x1e9/0x360
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461832]  [<c157fda0>] ?
__genl_register_family_with_ops+0x70/0x70
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461839]  [<c157e6b6>]
netlink_rcv_skb+0x86/0xa0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461846]  [<c157eb41>]
genl_rcv+0x21/0x30
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461853]  [<c157ddcf>]
netlink_unicast+0xbf/0x150
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461861]  [<c157e0b6>]
netlink_sendmsg+0x256/0x6c0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461871]  [<c1544d8b>]
sock_sendmsg+0x7b/0xb0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461883]  [<c1545091>]
___sys_sendmsg+0x291/0x2a0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461892]  [<c1117c36>] ?
unlock_page+0x46/0x50
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461902]  [<c11371e0>] ?
__do_fault+0x3f0/0x520
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461912]  [<c113a101>] ?
handle_pte_fault+0xa1/0x560
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461922]  [<c10631ca>] ?
signal_setup_done+0x3a/0x70
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461932]  [<c113b0ca>] ?
handle_mm_fault+0x22a/0x310
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461941]  [<c1545f28>]
__sys_sendmsg+0x38/0x70
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461951]  [<c1545f76>]
SyS_sendmsg+0x16/0x20
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461958]  [<c154665b>]
SyS_socketcall+0x29b/0x2f0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461968]  [<c100ed12>] ?
restore_sigcontext+0xf2/0x110
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461976]  [<c163b3d0>] ?
__do_page_fault+0x4f0/0x4f0
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461985]  [<c163ee0d>]
sysenter_do_call+0x12/0x28
Oct  5 21:18:21 nix-S405C kernel: [ 3769.461991] ---[ end trace
7ea9c88ab48819bc ]---
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462142] iwlwifi 0000:02:00.0:
Error sending TXPATH_FLUSH: time out after 2000ms.
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462155] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 243
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462163] iwlwifi 0000:02:00.0:
Failed to send flush command (-110)
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462169] ------------[ cut
here ]------------
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462212] WARNING: CPU: 0 PID:
4103 at /build/buildd/linux-3.11.0/net/mac80211/sta_info.c:839
__sta_info_destro
y+0x221/0x330 [mac80211]()
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462216] Modules linked in:
hidp hid pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF)
vboxdrv(OF) dm_crypt(F
) parport_pc(F) ppdev(F) bnep rfcomm joydev(F) binfmt_misc(F) uvcvideo
videobuf2_vmalloc videobuf2_memops asus_nb_wmi videobuf2_core asus_wmi
sparse_k
eymap videodev x86_pkg_temp_thermal intel_powerclamp coretemp
kvm_intel(F) kvm(F) crc32_pclmul(F) aesni_intel(F) aes_i586(F) xts(F)
lrw(F) gf128mul(F)
 ablk_helper(F) cryptd(F) arc4(F) btusb iwlmvm mac80211 bluetooth
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec
snd_hwdep(F) sn
d_pcm(F) snd_page_alloc(F) snd_seq_midi(F) snd_seq_midi_event(F)
snd_rawmidi(F) microcode(F) psmouse(F) serio_raw(F) iwlwifi lpc_ich
rtsx_pci_ms memst
ick cfg80211 snd_seq(F) snd_seq_device(F) snd_timer(F) mei_me snd(F)
mei soundcore(F) mac_hid lp(F) parport(F) i915 rtsx_pci_sdmmc
i2c_algo_bit drm_km
s_helper drm ahci(F) libahci(F) r8169 wmi rtsx_pci mii(F) video(F)
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462349] CPU: 0 PID: 4103
Comm: wpa_supplicant Tainted: GF       W  O 3.11.0-11-generic
#17-Ubuntu
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462353] Hardware name:
ASUSTeK COMPUTER INC. K46CA/K46CA, BIOS K46CA.315 05/17/2013
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462357]  00000000 00000000
f0bf5ad8 c16316eb 00000000 f0bf5b08 c105273e c1805cc4
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462372]  00000000 00001007
f938da8c 00000347 f933d561 f933d561 efdb1000 f90ce680
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462386]  edc60360 f0bf5b18
c1052802 00000009 00000000 f0bf5b50 f933d561 00000001
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462399] Call Trace:
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462414]  [<c16316eb>]
dump_stack+0x41/0x52
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462425]  [<c105273e>]
warn_slowpath_common+0x7e/0xa0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462456]  [<f933d561>] ?
__sta_info_destroy+0x221/0x330 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462481]  [<f933d561>] ?
__sta_info_destroy+0x221/0x330 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462497]  [<f90ce680>] ?
iwl_mvm_mac_conf_tx+0x80/0x80 [iwlmvm]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462506]  [<c1052802>]
warn_slowpath_null+0x22/0x30
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462531]  [<f933d561>]
__sta_info_destroy+0x221/0x330 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462558]  [<f933d77d>]
sta_info_flush_defer+0x6d/0x90 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462622]  [<f9370303>]
ieee80211_set_disassoc+0xa3/0x400 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462664]  [<f93743ca>]
ieee80211_mgd_deauth+0x1aa/0x210 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462701]  [<f934dbc6>]
ieee80211_deauth+0x16/0x20 [mac80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462743]  [<f8b9f3dd>]
cfg80211_mlme_deauth+0x8d/0x120 [cfg80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462756]  [<c1634f1d>] ?
__mutex_lock_slowpath+0x14d/0x180
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462789]  [<f8b8c334>]
nl80211_deauthenticate+0xd4/0x120 [cfg80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462822]  [<f8b8ab50>] ?
__cfg80211_wdev_from_attrs+0x180/0x180 [cfg80211]
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462832]  [<c157ff89>]
genl_rcv_msg+0x1e9/0x360
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462846]  [<c157fda0>] ?
__genl_register_family_with_ops+0x70/0x70
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462854]  [<c157e6b6>]
netlink_rcv_skb+0x86/0xa0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462861]  [<c157eb41>]
genl_rcv+0x21/0x30
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462868]  [<c157ddcf>]
netlink_unicast+0xbf/0x150
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462876]  [<c157e0b6>]
netlink_sendmsg+0x256/0x6c0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462887]  [<c1544d8b>]
sock_sendmsg+0x7b/0xb0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462898]  [<c1545091>]
___sys_sendmsg+0x291/0x2a0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462908]  [<c1117c36>] ?
unlock_page+0x46/0x50
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462918]  [<c11371e0>] ?
__do_fault+0x3f0/0x520
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462929]  [<c113a101>] ?
handle_pte_fault+0xa1/0x560
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462940]  [<c10631ca>] ?
signal_setup_done+0x3a/0x70
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462949]  [<c113b0ca>] ?
handle_mm_fault+0x22a/0x310
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462959]  [<c1545f28>]
__sys_sendmsg+0x38/0x70
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462969]  [<c1545f76>]
SyS_sendmsg+0x16/0x20
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462975]  [<c154665b>]
SyS_socketcall+0x29b/0x2f0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462985]  [<c100ed12>] ?
restore_sigcontext+0xf2/0x110
Oct  5 21:18:23 nix-S405C kernel: [ 3771.462994]  [<c163b3d0>] ?
__do_page_fault+0x4f0/0x4f0
Oct  5 21:18:23 nix-S405C kernel: [ 3771.463003]  [<c163ee0d>]
sysenter_do_call+0x12/0x28
Oct  5 21:18:23 nix-S405C kernel: [ 3771.463009] ---[ end trace
7ea9c88ab48819bd ]---
Oct  5 21:18:25 nix-S405C kernel: [ 3773.463062] iwlwifi 0000:02:00.0:
Error sending MAC_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:18:25 nix-S405C kernel: [ 3773.463076] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 244
Oct  5 21:18:25 nix-S405C kernel: [ 3773.463083] iwlwifi 0000:02:00.0:
Failed to send MAC context (action:2): -110
Oct  5 21:18:25 nix-S405C kernel: [ 3773.463090] iwlwifi 0000:02:00.0:
failed to update MAC 0c:8b:fd:32:de:c6
Oct  5 21:18:27 nix-S405C kernel: [ 3775.463990] iwlwifi 0000:02:00.0:
Error sending REMOVE_STA: time out after 2000ms.
Oct  5 21:18:27 nix-S405C kernel: [ 3775.464004] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 245
Oct  5 21:18:27 nix-S405C kernel: [ 3775.464012] iwlwifi 0000:02:00.0:
Failed to remove station. Id=1
Oct  5 21:18:27 nix-S405C kernel: [ 3775.464017] iwlwifi 0000:02:00.0:
failed to remove AP station
Oct  5 21:18:29 nix-S405C kernel: [ 3777.464912] iwlwifi 0000:02:00.0:
Error sending TIME_QUOTA_CMD: time out after 2000ms.
Oct  5 21:18:29 nix-S405C kernel: [ 3777.464925] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 246
Oct  5 21:18:29 nix-S405C kernel: [ 3777.464932] iwlwifi 0000:02:00.0:
Failed to send quota: -110
Oct  5 21:18:29 nix-S405C kernel: [ 3777.464938] iwlwifi 0000:02:00.0:
failed to update quotas
Oct  5 21:18:31 nix-S405C kernel: [ 3779.465741] iwlwifi 0000:02:00.0:
Error sending POWER_TABLE_CMD: time out after 2000ms.
Oct  5 21:18:31 nix-S405C kernel: [ 3779.465880] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 247
Oct  5 21:18:31 nix-S405C kernel: [ 3779.465993] iwlwifi 0000:02:00.0:
failed to update power mode
Oct  5 21:18:33 nix-S405C kernel: [ 3781.466757] iwlwifi 0000:02:00.0:
Error sending MAC_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:18:33 nix-S405C kernel: [ 3781.466898] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 248
Oct  5 21:18:33 nix-S405C kernel: [ 3781.467032] iwlwifi 0000:02:00.0:
Failed to send MAC context (action:2): -110
Oct  5 21:18:33 nix-S405C kernel: [ 3781.467157] iwlwifi 0000:02:00.0:
failed to update MAC 0c:8b:fd:32:de:c6
Oct  5 21:18:35 nix-S405C kernel: [ 3783.467682] iwlwifi 0000:02:00.0:
Error sending BINDING_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:18:35 nix-S405C kernel: [ 3783.467827] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 249
Oct  5 21:18:35 nix-S405C kernel: [ 3783.467941] iwlwifi 0000:02:00.0:
Failed to send binding (action:3): -110
Oct  5 21:18:35 nix-S405C wpa_supplicant[4103]: wlan1:
CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Oct  5 21:18:35 nix-S405C kernel: [ 3783.472205] cfg80211: Calling
CRDA to update world regulatory domain
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <warn> DNS: plugin
dnsmasq update failed
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Removing DNS
information from /sbin/resolvconf
Oct  5 21:18:35 nix-S405C dnsmasq[1848]: setting upstream servers from DBus
Oct  5 21:18:35 nix-S405C kernel: [ 3783.484992] cfg80211: World
regulatory domain updated:
Oct  5 21:18:35 nix-S405C kernel: [ 3783.484996] cfg80211:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Oct  5 21:18:35 nix-S405C kernel: [ 3783.484999] cfg80211:   (2402000
KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  5 21:18:35 nix-S405C kernel: [ 3783.485002] cfg80211:   (2457000
KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  5 21:18:35 nix-S405C kernel: [ 3783.485005] cfg80211:   (2474000
KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Oct  5 21:18:35 nix-S405C kernel: [ 3783.485007] cfg80211:   (5170000
KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  5 21:18:35 nix-S405C kernel: [ 3783.485009] cfg80211:   (5735000
KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Oct  5 21:18:35 nix-S405C whoopsie[1177]: offline
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) starting connection 'dev_null'
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct  5 21:18:35 nix-S405C dbus[691]: [system] Activating service
name='org.freedesktop.nm_dispatcher' (using servicehelper)
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: completed -> disconnected
Oct  5 21:18:35 nix-S405C whoopsie[1177]: offline
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) started...
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) scheduled...
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) complete.
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) starting...
Oct  5 21:18:35 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: prepare -> config (reason 'none') [40 50 0]
Oct  5 21:18:35 nix-S405C dbus[691]: [system] Successfully activated
service 'org.freedesktop.nm_dispatcher'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless): access point 'dev_null' has security, but secrets
are required.
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: config -> need-auth (reason 'none') [50 60 0]
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) complete.
Oct  5 21:18:37 nix-S405C kernel: [ 3785.580656] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:37 nix-S405C kernel: [ 3785.580797] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 250
Oct  5 21:18:37 nix-S405C kernel: [ 3785.580912] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) started...
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: need-auth -> prepare (reason 'none') [60 40 0]
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) scheduled...
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) complete.
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) starting...
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: prepare -> config (reason 'none') [40 50 0]
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless): connection 'dev_null' has security, and secrets
exist.  No new secr
ets needed.
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: added
'ssid' value 'dev_null'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: added
'scan_ssid' value '1'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: added
'key_mgmt' value 'WPA-PSK'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: added
'auth_alg' value 'OPEN'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: added
'psk' value '<omitted>'
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) complete.
Oct  5 21:18:37 nix-S405C NetworkManager[941]: <info> Config: set
interface ap_scan to 1
Oct  5 21:18:39 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:39 nix-S405C kernel: [ 3787.641610] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:39 nix-S405C kernel: [ 3787.641753] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 251
Oct  5 21:18:39 nix-S405C kernel: [ 3787.641869] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:41 nix-S405C acpid: client 1157[0:0] has disconnected
Oct  5 21:18:41 nix-S405C acpid: client connected from 1157[0:0]
Oct  5 21:18:41 nix-S405C acpid: 1 client rule loaded
Oct  5 21:18:42 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:42 nix-S405C kernel: [ 3790.642990] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:42 nix-S405C kernel: [ 3790.643003] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 252
Oct  5 21:18:42 nix-S405C kernel: [ 3790.643011] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:45 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:45 nix-S405C kernel: [ 3793.644349] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:45 nix-S405C kernel: [ 3793.644371] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 253
Oct  5 21:18:45 nix-S405C kernel: [ 3793.644380] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:48 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:48 nix-S405C kernel: [ 3796.645707] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:48 nix-S405C kernel: [ 3796.645751] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 254
Oct  5 21:18:48 nix-S405C kernel: [ 3796.645756] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:51 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:51 nix-S405C kernel: [ 3799.647126] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:51 nix-S405C kernel: [ 3799.647142] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 255
Oct  5 21:18:51 nix-S405C kernel: [ 3799.647152] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:53 nix-S405C NetworkManager[941]: <info> (wlan1):
disconnecting for new activation request.
Oct  5 21:18:53 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: config -> disconnected (reason 'none') [50 30 0]
Oct  5 21:18:53 nix-S405C NetworkManager[941]: <info> (wlan1):
deactivating device (reason 'none') [0]
Oct  5 21:18:54 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) starting connection 'Auto DEV_NULL'
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) started...
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) scheduled...
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) complete.
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) starting...
Oct  5 21:18:54 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: prepare -> config (reason 'none') [40 50 0]
Oct  5 21:18:54 nix-S405C kernel: [ 3802.648414] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:54 nix-S405C kernel: [ 3802.648421] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 0
Oct  5 21:18:54 nix-S405C kernel: [ 3802.648424] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:54 nix-S405C whoopsie[1177]: offline
Oct  5 21:18:54 nix-S405C whoopsie[1177]: offline
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless): access point 'Auto DEV_NULL' has security, but
secrets are required
.
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: config -> need-auth (reason 'none') [50 60 0]
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) complete.
Oct  5 21:18:56 nix-S405C kernel: [ 3804.649435] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:56 nix-S405C kernel: [ 3804.649449] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 1
Oct  5 21:18:56 nix-S405C kernel: [ 3804.649457] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: disconnected -> inactive
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) started...
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: need-auth -> prepare (reason 'none') [60 40 0]
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) scheduled...
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) complete.
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) starting...
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: prepare -> config (reason 'none') [40 50 0]
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless): connection 'Auto DEV_NULL' has security, and secrets
exist.  No new
 secrets needed.
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: added
'ssid' value 'DEV_NULL'
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: added
'scan_ssid' value '1'
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: added
'key_mgmt' value 'WPA-PSK'
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: added
'auth_alg' value 'OPEN'
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: added
'psk' value '<omitted>'
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) complete.
Oct  5 21:18:56 nix-S405C NetworkManager[941]: <info> Config: set
interface ap_scan to 1
Oct  5 21:18:58 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:18:58 nix-S405C kernel: [ 3806.702405] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:18:58 nix-S405C kernel: [ 3806.702419] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 2
Oct  5 21:18:58 nix-S405C kernel: [ 3806.702427] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:19:01 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:19:01 nix-S405C kernel: [ 3809.703773] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:19:01 nix-S405C kernel: [ 3809.703787] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 3
Oct  5 21:19:01 nix-S405C kernel: [ 3809.703795] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:19:04 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: config -> unavailable (reason 'none') [50 20 0]
Oct  5 21:19:04 nix-S405C NetworkManager[941]: <info> (wlan1):
deactivating device (reason 'none') [0]
Oct  5 21:19:04 nix-S405C wpa_supplicant[4103]: wlan1: Failed to
initiate AP scan
Oct  5 21:19:04 nix-S405C NetworkManager[941]: <info> (wlan1): taking
down device.
Oct  5 21:19:04 nix-S405C whoopsie[1177]: offline
Oct  5 21:19:04 nix-S405C kernel: [ 3812.705056] iwlwifi 0000:02:00.0:
Error sending SCAN_REQUEST_CMD: time out after 2000ms.
Oct  5 21:19:04 nix-S405C kernel: [ 3812.705062] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 4
Oct  5 21:19:04 nix-S405C kernel: [ 3812.705067] iwlwifi 0000:02:00.0:
Scan failed! status 0x1 ret -110
Oct  5 21:19:06 nix-S405C kernel: [ 3814.734060] iwlwifi 0000:02:00.0:
Error sending TXPATH_FLUSH: time out after 2000ms.
Oct  5 21:19:06 nix-S405C kernel: [ 3814.734073] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 5
Oct  5 21:19:06 nix-S405C kernel: [ 3814.734081] iwlwifi 0000:02:00.0:
Failed to send flush command (-110)
Oct  5 21:19:08 nix-S405C kernel: [ 3816.735032] iwlwifi 0000:02:00.0:
Error sending MAC_CONTEXT_CMD: time out after 2000ms.
Oct  5 21:19:08 nix-S405C kernel: [ 3816.735051] iwlwifi 0000:02:00.0:
Current CMD queue read_ptr 235 write_ptr 6
Oct  5 21:19:08 nix-S405C kernel: [ 3816.735058] iwlwifi 0000:02:00.0:
Failed to remove MAC context: -110
Oct  5 21:19:08 nix-S405C kernel: [ 3816.742152] iwlwifi 0000:02:00.0:
Failing on timeout while stopping DMA channel 1 [0xa5a5a5a2]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.747865] iwlwifi 0000:02:00.0:
Failing on timeout while stopping DMA channel 3 [0xa5a5a5a2]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.753501] iwlwifi 0000:02:00.0:
Failing on timeout while stopping DMA channel 4 [0xa5a5a5a2]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.759220] iwlwifi 0000:02:00.0:
Failing on timeout while stopping DMA channel 6 [0xa5a5a5a2]
Oct  5 21:19:08 nix-S405C avahi-daemon[877]: Interface wlan1.IPv6 no
longer relevant for mDNS.
Oct  5 21:19:08 nix-S405C avahi-daemon[877]: Leaving mDNS multicast
group on interface wlan1.IPv6 with address fe80::e8b:fdff:fe32:dec6.
Oct  5 21:19:08 nix-S405C avahi-daemon[877]: Withdrawing address
record for fe80::e8b:fdff:fe32:dec6 on wlan1.
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> WiFi hardware
radio set disabled
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> WiFi now
disabled by radio killswitch
Oct  5 21:19:08 nix-S405C kernel: [ 3816.760528] iwlwifi 0000:02:00.0:
RF_KILL bit toggled to disable radio.
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> (wlan1):
bringing up device.
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> WiFi hardware
radio set enabled
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> WiFi now enabled
by radio killswitch
Oct  5 21:19:08 nix-S405C NetworkManager[941]: <info> (wlan1):
bringing up device.
Oct  5 21:19:08 nix-S405C kernel: [ 3816.848619] iwlwifi 0000:02:00.0:
RF_KILL bit toggled to enable radio.
Oct  5 21:19:08 nix-S405C kernel: [ 3816.849211] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:19:08 nix-S405C kernel: [ 3816.849358] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857479] ------------[ cut
here ]------------
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857528] WARNING: CPU: 0 PID:
941 at /build/buildd/linux-3.11.0/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c:10
33 iwl_mvm_mac_ctxt_add+0x87/0xa0 [iwlmvm]()
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857537] Adding active MAC
0c:8b:fd:32:de:c6/2
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857542] Modules linked in:
hidp hid pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF)
vboxdrv(OF) dm_crypt(F
) parport_pc(F) ppdev(F) bnep rfcomm joydev(F) binfmt_misc(F) uvcvideo
videobuf2_vmalloc videobuf2_memops asus_nb_wmi videobuf2_core asus_wmi
sparse_k
eymap videodev x86_pkg_temp_thermal intel_powerclamp coretemp
kvm_intel(F) kvm(F) crc32_pclmul(F) aesni_intel(F) aes_i586(F) xts(F)
lrw(F) gf128mul(F)
 ablk_helper(F) cryptd(F) arc4(F) btusb iwlmvm mac80211 bluetooth
snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec
snd_hwdep(F) sn
d_pcm(F) snd_page_alloc(F) snd_seq_midi(F) snd_seq_midi_event(F)
snd_rawmidi(F) microcode(F) psmouse(F) serio_raw(F) iwlwifi lpc_ich
rtsx_pci_ms memst
ick cfg80211 snd_seq(F) snd_seq_device(F) snd_timer(F) mei_me snd(F)
mei soundcore(F) mac_hid lp(F) parport(F) i915 rtsx_pci_sdmmc
i2c_algo_bit drm_km
s_helper drm ahci(F) libahci(F) r8169 wmi rtsx_pci mii(F) video(F)
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857728] CPU: 0 PID: 941 Comm:
NetworkManager Tainted: GF       W  O 3.11.0-11-generic #17-Ubuntu
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857736] Hardware name:
ASUSTeK COMPUTER INC. K46CA/K46CA, BIOS K46CA.315 05/17/2013
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857742]  00000000 00000000
ef4bd9b8 c16316eb ef4bd9f8 ef4bd9e8 c105273e f90e958f
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857763]  ef4bda14 000003ad
f90e7000 00000409 f90d2567 f90d2567 f5c54cf4 f5c54c20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857782]  00000000 ef4bda00
c1052793 00000009 ef4bd9f8 f90e958f ef4bda14 ef4bda20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857803] Call Trace:
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857821]  [<c16316eb>]
dump_stack+0x41/0x52
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857837]  [<c105273e>]
warn_slowpath_common+0x7e/0xa0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857867]  [<f90d2567>] ?
iwl_mvm_mac_ctxt_add+0x87/0xa0 [iwlmvm]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857888]  [<f90d2567>] ?
iwl_mvm_mac_ctxt_add+0x87/0xa0 [iwlmvm]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857900]  [<c1052793>]
warn_slowpath_fmt+0x33/0x40
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857922]  [<f90d2567>]
iwl_mvm_mac_ctxt_add+0x87/0xa0 [iwlmvm]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857945]  [<f90cf111>]
iwl_mvm_mac_add_interface+0xa1/0x240 [iwlmvm]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.857999]  [<f93485d7>] ?
ieee80211_del_virtual_monitor.part.17+0xf7/0x170 [mac80211]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858012]  [<c151a17d>] ?
led_set_brightness+0x4d/0x60
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858023]  [<c151ab8d>] ?
led_trigger_event+0x3d/0x60
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858072]  [<f9349a61>]
ieee80211_do_open+0x331/0xc20 [mac80211]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858085]  [<c163b421>] ?
notifier_call_chain+0x41/0x60
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858133]  [<f934a3ad>]
ieee80211_open+0x5d/0x60 [mac80211]
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858148]  [<c155ac6b>]
__dev_open+0x9b/0x120
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858162]  [<c1637946>] ?
_raw_spin_unlock_bh+0x16/0x20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858174]  [<c155aef1>]
__dev_change_flags+0x81/0x160
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858186]  [<c155b078>]
dev_change_flags+0x18/0x50
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858199]  [<c1567370>]
do_setlink+0x2e0/0x820
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858214]  [<c1084e7a>] ?
update_curr+0xaa/0x1f0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858231]  [<c130f4c2>] ?
nla_parse+0x22/0xa0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858243]  [<c1568468>]
rtnl_newlink+0x388/0x570
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858262]  [<c127bff4>] ?
security_sock_rcv_skb+0x14/0x20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858274]  [<c1569fa1>] ?
sk_filter+0x21/0x90
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858287]  [<c12b1870>] ?
apparmor_capable+0x20/0xb0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858299]  [<c127c81c>] ?
security_capable+0x1c/0x30
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858310]  [<c1565118>]
rtnetlink_rcv_msg+0x88/0x1f0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858326]  [<c1158a96>] ?
__kmalloc_track_caller+0x46/0x150
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858338]  [<c154cb20>] ?
__alloc_skb+0x60/0x270
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858348]  [<c1565090>] ?
rtnetlink_rcv+0x30/0x30
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858360]  [<c157e6b6>]
netlink_rcv_skb+0x86/0xa0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858370]  [<c1565081>]
rtnetlink_rcv+0x21/0x30
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858380]  [<c157ddcf>]
netlink_unicast+0xbf/0x150
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858390]  [<c157e0b6>]
netlink_sendmsg+0x256/0x6c0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858401]  [<c157b42b>] ?
netlink_rcv_wake+0x3b/0x50
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858415]  [<c1544d8b>]
sock_sendmsg+0x7b/0xb0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858432]  [<c1545091>]
___sys_sendmsg+0x291/0x2a0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858445]  [<c15450a0>] ?
___sys_sendmsg+0x2a0/0x2a0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858464]  [<c15457ee>] ?
SYSC_sendto+0x10e/0x130
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858470]  [<c111e2be>] ?
free_pages.part.69+0x1e/0x20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858474]  [<c1178241>] ?
do_filp_open+0x31/0x80
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858478]  [<c1545f28>]
__sys_sendmsg+0x38/0x70
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858483]  [<c1545f76>]
SyS_sendmsg+0x16/0x20
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858486]  [<c154665b>]
SyS_socketcall+0x29b/0x2f0
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858491]  [<c1055f93>] ?
SyS_time+0x13/0x50
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858496]  [<c163ee0d>]
sysenter_do_call+0x12/0x28
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858499]  [<c163007b>] ?
alignfile+0x4/0x8c
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858503]  [<c1630000>] ?
create_elf_tables+0x3dd/0x454
Oct  5 21:19:08 nix-S405C kernel: [ 3816.858505] ---[ end trace
7ea9c88ab48819be ]---
Oct  5 21:19:59 nix-S405C avahi-daemon[877]: Withdrawing workstation
service for wlan1.
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: unavailable -> unmanaged (reason 'removed') [20 10 36]
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <info> (wlan1): cleaning up...
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <warn> (3) failed to
find interface name for index
Oct  5 21:19:59 nix-S405C NetworkManager[941]:
(nm-system.c:766):nm_system_iface_get_flags: runtime check failed:
(iface != NULL)
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <error>
[1381022399.841749] [nm-system.c:768] nm_system_iface_get_flags():
(unknown): failed to get int
erface link object
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <info> Unmanaged Device
found; state CONNECTED forced.
(seehttp://bugs.launchpad.net/bugs/191889)
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <info> Unmanaged Device
found; state CONNECTED forced.
(seehttp://bugs.launchpad.net/bugs/191889)
Oct  5 21:19:59 nix-S405C NetworkManager[941]:    SCPlugin-Ifupdown:
devices removed (path:
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlan
1, iface: wlan1)
Oct  5 21:19:59 nix-S405C NetworkManager[941]: <info> radio killswitch
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/ieee80211/phy0/rfkill1
disapp
eared
Oct  5 21:19:59 nix-S405C whoopsie[1177]: offline
Oct  5 21:20:11 nix-S405C kernel: [ 3879.136181] iwlwifi 0000:02:00.0:
Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
Oct  5 21:20:11 nix-S405C kernel: [ 3879.136247] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:20:11 nix-S405C kernel: [ 3879.136391] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:20:11 nix-S405C kernel: [ 3879.357359] ieee80211 phy1:
Selected rate control algorithm 'iwl-mvm-rs'
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> rfkill3: found
WiFi radio killswitch (at
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/ieee8
0211/phy1/rfkill3) (driver iwlwifi)
Oct  5 21:20:11 nix-S405C NetworkManager[941]:    SCPlugin-Ifupdown:
devices added (path:
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlan1,
 iface: wlan1)
Oct  5 21:20:11 nix-S405C NetworkManager[941]:    SCPlugin-Ifupdown:
device added (path:
/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlan1,
iface: wlan1): no ifupdown configuration found.
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): using
nl80211 for WiFi device control
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): driver
supports Access Point (AP) mode
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): new
802.11 WiFi device (driver: 'iwlwifi' ifindex: 4)
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1):
exported as /org/freedesktop/NetworkManager/Devices/2
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1):
bringing up device.
Oct  5 21:20:11 nix-S405C kernel: [ 3879.374415] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:20:11 nix-S405C kernel: [ 3879.374578] iwlwifi 0000:02:00.0:
L1 Disabled; Enabling L0S
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): preparing device.
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1):
deactivating device (reason 'managed') [2]
Oct  5 21:20:11 nix-S405C kernel: [ 3879.388900] IPv6:
ADDRCONF(NETDEV_UP): wlan1: link is not ready
Oct  5 21:20:11 nix-S405C kernel: [ 3879.389334] IPv6:
ADDRCONF(NETDEV_UP): wlan1: link is not ready
Oct  5 21:20:11 nix-S405C whoopsie[1177]: offline
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1) supports
5 scan SSIDs
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <warn> Trying to remove
a non-existant call id.
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: starting -> ready
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: unavailable -> disconnected (reason
'supplicant-available') [20 30
 42]
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: ready -> inactive
Oct  5 21:20:11 nix-S405C NetworkManager[941]: <info> (wlan1) supports
5 scan SSIDs
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Auto-activating
connection 'dev_null'.
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) starting connection 'dev_null'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) started...
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) scheduled...
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 1 of 5 (Device Prepare) complete.
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) starting...
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: prepare -> config (reason 'none') [40 50 0]
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless): connection 'dev_null' has security, and secrets
exist.  No new secr
ets needed.
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Config: added
'ssid' value 'dev_null'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Config: added
'scan_ssid' value '1'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Config: added
'key_mgmt' value 'WPA-PSK'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Config: added
'auth_alg' value 'OPEN'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Config: added
'psk' value '<omitted>'
Oct  5 21:20:14 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 2 of 5 (Device Configure) complete.
Oct  5 21:20:14 nix-S405C whoopsie[1177]: offline
Oct  5 21:20:15 nix-S405C NetworkManager[941]: <info> Config: set
interface ap_scan to 1
Oct  5 21:20:15 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: inactive -> scanning
Oct  5 21:20:18 nix-S405C wpa_supplicant[4103]: wlan1: SME: Trying to
authenticate with b0:c7:45:36:60:15 (SSID='dev_null' freq=5200 MHz)
Oct  5 21:20:18 nix-S405C kernel: [ 3886.797549] wlan1: authenticate
with b0:c7:45:36:60:15
Oct  5 21:20:18 nix-S405C kernel: [ 3886.798934] wlan1: send auth to
b0:c7:45:36:60:15 (try 1/3)
Oct  5 21:20:18 nix-S405C wpa_supplicant[4103]: wlan1: Trying to
associate with b0:c7:45:36:60:15 (SSID='dev_null' freq=5200 MHz)
Oct  5 21:20:18 nix-S405C kernel: [ 3886.799532] wlan1: authenticated
Oct  5 21:20:18 nix-S405C kernel: [ 3886.803298] wlan1: associate with
b0:c7:45:36:60:15 (try 1/3)
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: scanning -> authenticating
Oct  5 21:20:18 nix-S405C wpa_supplicant[4103]: wlan1: Associated with
b0:c7:45:36:60:15
Oct  5 21:20:18 nix-S405C kernel: [ 3886.809688] wlan1: RX AssocResp
from b0:c7:45:36:60:15 (capab=0x11 status=0 aid=2)
Oct  5 21:20:18 nix-S405C kernel: [ 3886.810521] wlan1: associated
Oct  5 21:20:18 nix-S405C kernel: [ 3886.810548] IPv6:
ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: authenticating -> associating
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: associating -> 4-way handshake
Oct  5 21:20:18 nix-S405C wpa_supplicant[4103]: wlan1: WPA: Key
negotiation completed with b0:c7:45:36:60:15 [PTK=CCMP GTK=CCMP]
Oct  5 21:20:18 nix-S405C wpa_supplicant[4103]: wlan1:
CTRL-EVENT-CONNECTED - Connection to b0:c7:45:36:60:15 completed
(auth) [id=0 id_str=]
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1):
supplicant interface state: 4-way handshake -> completed
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1/wireless) Stage 2 of 5 (Device Configure) successful.
Connected to wireless n
etwork 'dev_null'.
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 3 of 5 (IP Configure Start) scheduled.
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 3 of 5 (IP Configure Start) started...
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: config -> ip-config (reason 'none') [50 70 0]
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> dhclient started
with pid 6242
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Beginning IP6 addrconf.
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 3 of 5 (IP Configure Start) complete.
Oct  5 21:20:18 nix-S405C dhclient: Internet Systems Consortium DHCP
Client 4.2.4
Oct  5 21:20:18 nix-S405C dhclient: Copyright 2004-2012 Internet
Systems Consortium.
Oct  5 21:20:18 nix-S405C dhclient: All rights reserved.
Oct  5 21:20:18 nix-S405C dhclient: For info, please visit
https://www.isc.org/software/dhcp/
Oct  5 21:20:18 nix-S405C dhclient:
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1): DHCPv4
state changed nbi -> preinit
Oct  5 21:20:18 nix-S405C dhclient: Listening on LPF/wlan1/0c:8b:fd:32:de:c6
Oct  5 21:20:18 nix-S405C dhclient: Sending on   LPF/wlan1/0c:8b:fd:32:de:c6
Oct  5 21:20:18 nix-S405C dhclient: Sending on   Socket/fallback
Oct  5 21:20:18 nix-S405C dhclient: DHCPREQUEST of 192.168.11.7 on
wlan1 to 255.255.255.255 port 67 (xid=0x4d5eabeb)
Oct  5 21:20:18 nix-S405C dhclient: DHCPACK of 192.168.11.7 from 192.168.11.1
Oct  5 21:20:18 nix-S405C dhclient: bound to 192.168.11.7 -- renewal
in 82225 seconds.
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> (wlan1): DHCPv4
state changed preinit -> reboot
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info>   address 192.168.11.7
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info>   prefix 24
(255.255.255.0)
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info>   gateway 192.168.11.1
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info>   nameserver
'192.168.11.1'
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Oct  5 21:20:18 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 5 of 5 (IPv4 Commit) started...
Oct  5 21:20:18 nix-S405C avahi-daemon[877]: Joining mDNS multicast
group on interface wlan1.IPv4 with address 192.168.11.7.
Oct  5 21:20:18 nix-S405C avahi-daemon[877]: New relevant interface
wlan1.IPv4 for mDNS.
Oct  5 21:20:18 nix-S405C avahi-daemon[877]: Registering new address
record for 192.168.11.7 on wlan1.IPv4.
Oct  5 21:20:19 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: ip-config -> secondaries (reason 'none') [70 90 0]
Oct  5 21:20:19 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 5 of 5 (IPv4 Commit) complete.
Oct  5 21:20:19 nix-S405C NetworkManager[941]: <info> (wlan1): device
state change: secondaries -> activated (reason 'none') [90 100 0]
Oct  5 21:20:19 nix-S405C NetworkManager[941]: <info> Policy set
'dev_null' (wlan1) as default for IPv4 routing and DNS.
Oct  5 21:20:19 nix-S405C NetworkManager[941]: <info> Writing DNS
information to /sbin/resolvconf
Oct  5 21:20:19 nix-S405C dnsmasq[1848]: setting upstream servers from DBus
Oct  5 21:20:19 nix-S405C dnsmasq[1848]: using nameserver 192.168.11.1#53
Oct  5 21:20:20 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) successful, device activated.
Oct  5 21:20:20 nix-S405C dbus[691]: [system] Activating service
name='org.freedesktop.nm_dispatcher' (using servicehelper)
Oct  5 21:20:20 nix-S405C dbus[691]: [system] Successfully activated
service 'org.freedesktop.nm_dispatcher'
Oct  5 21:20:20 nix-S405C whoopsie[1177]: offline
Oct  5 21:20:20 nix-S405C avahi-daemon[877]: Joining mDNS multicast
group on interface wlan1.IPv6 with address fe80::e8b:fdff:fe32:dec6.
Oct  5 21:20:20 nix-S405C avahi-daemon[877]: New relevant interface
wlan1.IPv6 for mDNS.
Oct  5 21:20:20 nix-S405C avahi-daemon[877]: Registering new address
record for fe80::e8b:fdff:fe32:dec6 on wlan1.*.
Oct  5 21:20:20 nix-S405C whoopsie[1177]: online
Oct  5 21:20:21 nix-S405C whoopsie[1177]: online
Oct  5 21:20:26 nix-S405C ntpdate[6338]: adjust time server
91.189.94.4 offset 0.073376 sec
Oct  5 21:20:32 nix-S405C whoopsie[1177]: online
Oct  5 21:20:39 nix-S405C NetworkManager[941]: <info> (wlan1): IP6
addrconf timed out or failed.
Oct  5 21:20:39 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Oct  5 21:20:39 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 4 of 5 (IPv6 Configure Timeout) started...
Oct  5 21:20:39 nix-S405C NetworkManager[941]: <info> Activation
(wlan1) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Oct  5 21:21:31 nix-S405C whoopsie[1177]: online
Oct  5 21:22:49  whoopsie[1177]: last message repeated 5 times

^ permalink raw reply

* [PATCH 2/2] ath9k: add HT40 spectral scan capability
From: Lorenzo Bianconi @ 2013-10-05 21:16 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, mcgrof, simon.wunderlich
In-Reply-To: <1381007769-11800-1-git-send-email-lorenzo.bianconi83@gmail.com>

Add spectral scan feature on HT40 channels for ath9k. This patch extends
previous capability added by Simon Wunderlich

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
---
 drivers/net/wireless/ath/ath9k/ath9k.h |  28 +++++++
 drivers/net/wireless/ath/ath9k/recv.c  | 144 ++++++++++++++++++++++++---------
 2 files changed, 134 insertions(+), 38 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 8878f2d..62d2812 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -879,6 +879,7 @@ static inline u8 spectral_bitmap_weight(u8 *bins)
  */
 enum ath_fft_sample_type {
 	ATH_FFT_SAMPLE_HT20 = 1,
+	ATH_FFT_SAMPLE_HT20_40,
 };
 
 struct fft_sample_tlv {
@@ -905,6 +906,33 @@ struct fft_sample_ht20 {
 	u8 data[SPECTRAL_HT20_NUM_BINS];
 } __packed;
 
+struct fft_sample_ht20_40 {
+	struct fft_sample_tlv tlv;
+
+	u8 max_exp;
+
+	__be16 freq;
+
+	s8 lower_rssi;
+	s8 upper_rssi;
+
+	__be64 tsf;
+
+	s8 lower_noise;
+	s8 upper_noise;
+
+	__be16 lower_max_magnitude;
+	__be16 upper_max_magnitude;
+
+	u8 lower_max_index;
+	u8 upper_max_index;
+
+	u8 lower_bitmap_weight;
+	u8 upper_bitmap_weight;
+
+	u8 data[SPECTRAL_HT20_40_NUM_BINS];
+} __packed;
+
 void ath9k_tasklet(unsigned long data);
 int ath_cabq_update(struct ath_softc *);
 
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index ab9e3a8..b49fd13 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -972,14 +972,14 @@ static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
 {
 #ifdef CONFIG_ATH9K_DEBUGFS
 	struct ath_hw *ah = sc->sc_ah;
-	u8 bins[SPECTRAL_HT20_NUM_BINS];
-	u8 *vdata = (u8 *)hdr;
-	struct fft_sample_ht20 fft_sample;
+	u8 num_bins, *bins, *sample, *vdata = (u8 *)hdr;
+	struct fft_sample_ht20 fft_sample_20;
+	struct fft_sample_ht20_40 fft_sample_40;
 	struct ath_radar_info *radar_info;
-	struct ath_ht20_mag_info *mag_info;
 	int len = rs->rs_datalen;
 	int dc_pos;
-	u16 length, max_magnitude;
+	u16 fft_len, length, freq = ah->curchan->chan->center_freq;
+	enum nl80211_channel_type chan_type;
 
 	/* AR9280 and before report via ATH9K_PHYERR_RADAR, AR93xx and newer
 	 * via ATH9K_PHYERR_SPECTRAL. Haven't seen ATH9K_PHYERR_FALSE_RADAR_EXT
@@ -997,45 +997,44 @@ static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
 	if (!(radar_info->pulse_bw_info & SPECTRAL_SCAN_BITMASK))
 		return 0;
 
-	/* Variation in the data length is possible and will be fixed later.
-	 * Note that we only support HT20 for now.
-	 *
-	 * TODO: add HT20_40 support as well.
-	 */
-	if ((len > SPECTRAL_HT20_TOTAL_DATA_LEN + 2) ||
-	    (len < SPECTRAL_HT20_TOTAL_DATA_LEN - 1))
-		return 1;
-
-	fft_sample.tlv.type = ATH_FFT_SAMPLE_HT20;
-	length = sizeof(fft_sample) - sizeof(fft_sample.tlv);
-	fft_sample.tlv.length = __cpu_to_be16(length);
+	chan_type = cfg80211_get_chandef_type(&sc->hw->conf.chandef);
+	if ((chan_type == NL80211_CHAN_HT40MINUS) ||
+	    (chan_type == NL80211_CHAN_HT40PLUS)) {
+		fft_len = SPECTRAL_HT20_40_TOTAL_DATA_LEN;
+		num_bins = SPECTRAL_HT20_40_NUM_BINS;
+		bins = (u8 *) fft_sample_40.data;
+	} else {
+		fft_len = SPECTRAL_HT20_TOTAL_DATA_LEN;
+		num_bins = SPECTRAL_HT20_NUM_BINS;
+		bins = (u8 *) fft_sample_20.data;
+	}
 
-	fft_sample.freq = __cpu_to_be16(ah->curchan->chan->center_freq);
-	fft_sample.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl0);
-	fft_sample.noise = ah->noise;
+	/* Variation in the data length is possible and will be fixed later */
+	if ((len > fft_len + 2) || (len < fft_len - 1))
+		return 1;
 
-	switch (len - SPECTRAL_HT20_TOTAL_DATA_LEN) {
+	switch (len - fft_len) {
 	case 0:
 		/* length correct, nothing to do. */
-		memcpy(bins, vdata, SPECTRAL_HT20_NUM_BINS);
+		memcpy(bins, vdata, num_bins);
 		break;
 	case -1:
 		/* first byte missing, duplicate it. */
-		memcpy(&bins[1], vdata, SPECTRAL_HT20_NUM_BINS - 1);
+		memcpy(&bins[1], vdata, num_bins - 1);
 		bins[0] = vdata[0];
 		break;
 	case 2:
 		/* MAC added 2 extra bytes at bin 30 and 32, remove them. */
 		memcpy(bins, vdata, 30);
 		bins[30] = vdata[31];
-		memcpy(&bins[31], &vdata[33], SPECTRAL_HT20_NUM_BINS - 31);
+		memcpy(&bins[31], &vdata[33], num_bins - 31);
 		break;
 	case 1:
 		/* MAC added 2 extra bytes AND first byte is missing. */
 		bins[0] = vdata[0];
-		memcpy(&bins[0], vdata, 30);
+		memcpy(&bins[1], vdata, 30);
 		bins[31] = vdata[31];
-		memcpy(&bins[32], &vdata[33], SPECTRAL_HT20_NUM_BINS - 32);
+		memcpy(&bins[32], &vdata[33], num_bins - 32);
 		break;
 	default:
 		return 1;
@@ -1044,23 +1043,92 @@ static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr,
 	/* DC value (value in the middle) is the blind spot of the spectral
 	 * sample and invalid, interpolate it.
 	 */
-	dc_pos = SPECTRAL_HT20_NUM_BINS / 2;
+	dc_pos = num_bins / 2;
 	bins[dc_pos] = (bins[dc_pos + 1] + bins[dc_pos - 1]) / 2;
 
-	/* mag data is at the end of the frame, in front of radar_info */
-	mag_info = ((struct ath_ht20_mag_info *)radar_info) - 1;
+	if ((chan_type == NL80211_CHAN_HT40MINUS) ||
+	    (chan_type == NL80211_CHAN_HT40PLUS)) {
+		s8 lower_rssi, upper_rssi;
+		s16 ext_nf;
+		u8 lower_max_index, upper_max_index;
+		u8 lower_bitmap_w, upper_bitmap_w;
+		u16 lower_mag, upper_mag;
+		struct ath9k_hw_cal_data *caldata = ah->caldata;
+		struct ath_ht20_40_mag_info *mag_info;
+
+		if (caldata)
+			ext_nf = ath9k_hw_getchan_noise(ah, ah->curchan,
+					caldata->nfCalHist[3].privNF);
+		else
+			ext_nf = ATH_DEFAULT_NOISE_FLOOR;
+
+		length = sizeof(fft_sample_40) - sizeof(struct fft_sample_tlv);
+		fft_sample_40.tlv.type = ATH_FFT_SAMPLE_HT20_40;
+		fft_sample_40.tlv.length = __cpu_to_be16(length);
+		fft_sample_40.freq = __cpu_to_be16(freq);
 
-	/* copy raw bins without scaling them */
-	memcpy(fft_sample.data, bins, SPECTRAL_HT20_NUM_BINS);
-	fft_sample.max_exp = mag_info->max_exp & 0xf;
+		if (chan_type == NL80211_CHAN_HT40PLUS) {
+			lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl0);
+			upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ext0);
+
+			fft_sample_40.lower_noise = ah->noise;
+			fft_sample_40.upper_noise = ext_nf;
+		} else {
+			lower_rssi = fix_rssi_inv_only(rs->rs_rssi_ext0);
+			upper_rssi = fix_rssi_inv_only(rs->rs_rssi_ctl0);
 
-	max_magnitude = spectral_max_magnitude(mag_info->all_bins);
-	fft_sample.max_magnitude = __cpu_to_be16(max_magnitude);
-	fft_sample.max_index = spectral_max_index(mag_info->all_bins);
-	fft_sample.bitmap_weight = spectral_bitmap_weight(mag_info->all_bins);
-	fft_sample.tsf = __cpu_to_be64(tsf);
+			fft_sample_40.lower_noise = ext_nf;
+			fft_sample_40.upper_noise = ah->noise;
+		}
+		fft_sample_40.lower_rssi = lower_rssi;
+		fft_sample_40.upper_rssi = upper_rssi;
+
+		mag_info = ((struct ath_ht20_40_mag_info *)radar_info) - 1;
+		lower_mag = spectral_max_magnitude(mag_info->lower_bins);
+		upper_mag = spectral_max_magnitude(mag_info->upper_bins);
+		fft_sample_40.lower_max_magnitude = __cpu_to_be16(lower_mag);
+		fft_sample_40.upper_max_magnitude = __cpu_to_be16(upper_mag);
+		lower_max_index = spectral_max_index(mag_info->lower_bins);
+		upper_max_index = spectral_max_index(mag_info->upper_bins);
+		fft_sample_40.lower_max_index = lower_max_index;
+		fft_sample_40.upper_max_index = upper_max_index;
+		lower_bitmap_w = spectral_bitmap_weight(mag_info->lower_bins);
+		upper_bitmap_w = spectral_bitmap_weight(mag_info->upper_bins);
+		fft_sample_40.lower_bitmap_weight = lower_bitmap_w;
+		fft_sample_40.upper_bitmap_weight = upper_bitmap_w;
+		fft_sample_40.max_exp = mag_info->max_exp & 0xf;
+
+		fft_sample_40.tsf = __cpu_to_be64(tsf);
+
+		sample = (u8 *) &fft_sample_40;
+	} else {
+		u8 max_index, bitmap_w;
+		u16 magnitude;
+		struct ath_ht20_mag_info *mag_info;
+
+		length = sizeof(fft_sample_20) - sizeof(struct fft_sample_tlv);
+		fft_sample_20.tlv.type = ATH_FFT_SAMPLE_HT20;
+		fft_sample_20.tlv.length = __cpu_to_be16(length);
+		fft_sample_20.freq = __cpu_to_be16(freq);
+
+		fft_sample_20.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl0);
+		fft_sample_20.noise = ah->noise;
+
+		mag_info = ((struct ath_ht20_mag_info *)radar_info) - 1;
+		magnitude = spectral_max_magnitude(mag_info->all_bins);
+		fft_sample_20.max_magnitude = __cpu_to_be16(magnitude);
+		max_index = spectral_max_index(mag_info->all_bins);
+		fft_sample_20.max_index = max_index;
+		bitmap_w = spectral_bitmap_weight(mag_info->all_bins);
+		fft_sample_20.bitmap_weight = bitmap_w;
+		fft_sample_20.max_exp = mag_info->max_exp & 0xf;
+
+		fft_sample_20.tsf = __cpu_to_be64(tsf);
+
+		sample = (u8 *) &fft_sample_20;
+	}
 
-	ath_debug_send_fft_sample(sc, &fft_sample.tlv);
+	ath_debug_send_fft_sample(sc, (struct fft_sample_tlv *) sample);
 	return 1;
 #else
 	return 0;
-- 
1.8.1.2


^ permalink raw reply related


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox