[PATCH v2 1/3] ath10k: Fix shared WEP

2014-11-24 Thread Sujith Manoharan
From: Sujith Manoharan When static keys are used in shared WEP, when a station is associated, message 3 is sent with an encrypted payload. But, for subsequent authentications that are triggered without a deauth, the auth frame is decrypted by the HW. To handle this, check if the WEP keys have al

[PATCH v2 3/3] ath10k: Fix bug reported by lockdep

2014-11-24 Thread Sujith Manoharan
From: Sujith Manoharan ath10k_tx_wep_key_work() acquires conf_mutex, so cancelling it when conf_mutex is already taken in ath10k_remove_interface() is incorrect, so move it outside the lock. Snippet from the lockdep report: kernel: == kernel:

[PATCH v2 2/3] ath10k: Fix locking for WEP keys

2014-11-24 Thread Sujith Manoharan
From: Sujith Manoharan peer->keys needs to be protected by data_lock since it is also accessed from the WMI path. Both install() and clear() routines for peer keys modify the key contents, so use the data_lock to avoid races. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k

Re: [PATCH 1/3] ath10k: Fix shared WEP

2014-11-24 Thread Kalle Valo
Sujith Manoharan writes: > Kalle Valo wrote: >> No magic numbers, please. I didn't find anything for IV internals from >> ieee80211.h, not sure if we should add them there or just use ath10k >> internal defines. > > We are just retrieving the keyidx from the IV - not sure adding a couple > of mac

Re: [PATCH 1/3] ath10k: Fix shared WEP

2014-11-24 Thread Sujith Manoharan
Kalle Valo wrote: > No magic numbers, please. I didn't find anything for IV internals from > ieee80211.h, not sure if we should add them there or just use ath10k > internal defines. We are just retrieving the keyidx from the IV - not sure adding a couple of macros for "6" and "3" will make any dif

[PATCH 2/2] ath9k: add TPC capability to TX descriptor path

2014-11-24 Thread Lorenzo Bianconi
Add TPC capability to TX descriptor path. Cap per-packet TX power according to TX power per-rate tables. Currently TPC is supported just by AR9003 based chips Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/ath/ath9k/ar9002_mac.c | 8 +++ drivers/net/wireless/ath/ath9k/ar9003_mac.c

[PATCH 1/2] ath9k: add TX power per-rate tables

2014-11-24 Thread Lorenzo Bianconi
Add TX power per-rate tables for different MIMO modes (e.g STBC) in order to cap the maximum TX power value per-rate in the TX descriptor path. Cap TX power for self generated frames (ACK, RTS/CTS). Currently TPC is supported just by AR9003 based chips Signed-off-by: Lorenzo Bianconi --- drivers

[PATCH 0/2] add TPC capability for AR9003 based chips

2014-11-24 Thread Lorenzo Bianconi
This patchset adds TPC capability to ath9k for AR9003 based chips. For the time being some FCC checks are missing in ar9003_hw_init_txpower_stbc() and CDD mode is not supported. *[PATCH 1/2]: add TX power per-rate tables to cap TX power in TX descriptor path *[PATCH 2/2]: cap per-packet TX power a

Re: [PATCH 2/4] brcmutil: add helper function to format board revision

2014-11-24 Thread John W. Linville
I am holding patches 2-4 until we resolve the brcmu_boardrev_str build thing... On Thu, Nov 20, 2014 at 10:27:00PM +0100, Arend van Spriel wrote: > The board revision that is available in hardware can be translated > so it matches the labelling on the board. This is accomplished by > this helper f

Re: [PATCH 3/4] brcmsmac: extend hardware info shown in debugfs

2014-11-24 Thread John W. Linville
Hmmm...I'm not sure why, but this is causing problems for me... ERROR: "brcmu_boardrev_str" [drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko] undefined! On Thu, Nov 20, 2014 at 10:27:01PM +0100, Arend van Spriel wrote: > The hardware info now also include radio and phy information, which > c

Re: [PATCH 2/2] ath10k: re-config ht_caps when chainmask is modified.

2014-11-24 Thread Ben Greear
On 11/24/2014 02:53 AM, Kalle Valo wrote: > Kalle Valo writes: > >>> @@ -2537,6 +2560,17 @@ static int __ath10k_set_antenna(struct ath10k *ar, >>> u32 tx_ant, u32 rx_ant) >>> ar->cfg_tx_chainmask = tx_ant; >>> ar->cfg_rx_chainmask = rx_ant; >>> >>> + ht_cap = ath10k_get_ht_cap(ar, tr

Re: pull request: iwlwifi 2014-11-23

2014-11-24 Thread John W. Linville
On Sun, Nov 23, 2014 at 09:56:23PM +0200, Emmanuel Grumbach wrote: > Hi John, > > I have a trivial patch for 3.18. details below. > Thanks! > > The following changes since commit 87dd634ae72bb8f6d0dd12f1cbbc67c7da6dba3b: > > iwlwifi: pcie: fix prph dump length (2014-11-11 07:24:57 +0200) > >

Re: pull request: iwlwifi-next 2014-11-24

2014-11-24 Thread John W. Linville
On Mon, Nov 24, 2014 at 04:34:02PM +0200, Emmanuel Grumbach wrote: > Hi John, > > I have a big batch here. New features were unblocked by the merge a > few patches in mac80211-next.git and I was away for 2 weeks. > I plan to have another pull request for wireless-next before the merge > window ope

[PATCH 1/2] net: wireless: rtlwifi: Do not always include drivers in obj-m

2014-11-24 Thread Andreas Ruprecht
In four of the rtlwifi drivers, the Makefile contains superfluous statements indicating the compilation of the driver as an LKM regardless of the corresponding Kconfig option. If the corresponding option is set to 'y', the build system will then see the object file in obj-m and obj-y, which leads

[PATCH 0/2] net: wireless: rtlwifi: Fix issues with Makefiles

2014-11-24 Thread Andreas Ruprecht
This patch series fixes two issues in the Makefiles for different rtlwifi drivers. The first one lead to object files for the drivers always being included in obj-m even if the corresponding Kconfig option is set to 'y'. The second one is likely to be a copy-and-paste mistake, which prevents comp

[PATCH 2/2] net: wireless: rtlwifi: rtl8192ee: Fix compilation of the driver

2014-11-24 Thread Andreas Ruprecht
In the Makefile for this driver, the wrong Kconfig option is used to trigger the compilation of the object file. This leads to the driver only being included into the kernel when both CONFIG_RTL8821AE and CONFIG_RTL8192AE are set to "y". Signed-off-by: Andreas Ruprecht --- drivers/net/wireless/r

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

2014-11-24 Thread Felix Fietkau
Fixes a crash in nl80211_send_chandef, introduced in commit c12bc4885f4b3bab0ed779c69d5d7e3223fa5003 "mac80211: return the vif's chandef in ieee80211_cfg_get_channel()" Signed-off-by: Felix Fietkau --- net/mac80211/chan.c | 23 +++ net/mac80211/iface.c | 1 + 2 files chang

Re: [PATCH v2 2/2] ath10k: add memory dump debugfs interface

2014-11-24 Thread Kalle Valo
Kalle Valo writes: > + ret = copy_from_user(buf, user_buf, count); > + if (ret) > + goto err_free_copy; > + > + ret = ath10k_hif_diag_write(ar, *ppos, buf, count); > + if (ret) { > + ath10k_warn(ar, "failed to write address 0x%08x via diagnose > window fro

[PATCH v2 1/2] ath10k: add register access debugfs interface

2014-11-24 Thread Kalle Valo
From: Yanbo Li Debugfs files reg_addr and reg_val are used for reading and writing to the firmware (target) registers. reg_addr contains the address to be accessed, which also needs to be set first, and reg_value is when used for reading and writing the actual value in ASCII. To read a value fro

[PATCH v2 2/2] ath10k: add memory dump debugfs interface

2014-11-24 Thread Kalle Valo
From: Yanbo Li Add mem_val debugfs file for dumping the firmware (target) memory and also for writing to the memory. The firmware memory is accessed through one file which uses position of the file as the firmware memory address. For example, with dd use skip parameter for the address. Beucase t

[PATCH v2 0/2] ath10k: firmware memory debugfs interface

2014-11-24 Thread Kalle Valo
Hi, this is v2 of Yanbo's firmware memory debugfs interface. Changelog: v2: * split patches into two * simplify the commit logs * remove extra #include "hif.h" from debug.c --- Yanbo Li (2): ath10k: add register access debugfs interface ath10k: add memory dump debugfs interface

[PATCH] mac80211: disable 80+80/160 in VHT correctly

2014-11-24 Thread Johannes Berg
From: Johannes Berg The supported bandwidth field is a two-bit field, not a bitmap, so treat it accordingly when disabling 80+80 or 160 MHz. Note that we can only advertise "80+80 and 160" or "160", not "80+80" by itself, so disabling 160 also disables 80+80. Signed-off-by: Johannes Berg ---

[PATCH] Revert "mac80211_hwsim: VHT add 160MHz width support"

2014-11-24 Thread Johannes Berg
From: Johannes Berg This reverts commit c17aa52c5bf571533cc8561292f7316b9216eddc. It was wrong, IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ already implies that 160 MHz is supported, as it isn't a bitmap but rather a value in a 2-bit field. Signed-off-by: Johannes Berg --- drivers/net/w

Re: [PATCH] ath10k: Add the target register access and memory dump debugfs interface

2014-11-24 Thread Kalle Valo
Yanbo Li writes: > --- a/drivers/net/wireless/ath/ath10k/debug.c > +++ b/drivers/net/wireless/ath/ath10k/debug.c > @@ -22,6 +22,7 @@ > #include > > #include "core.h" > +#include "hif.h" > #include "debug.h" > #include "hif.h" hif.h is now included twice. Let me send a v2. I'll also try s

Re: [PATCH v2 04/10] ath10k: make firmware text debug messages more verbose.

2014-11-24 Thread Kalle Valo
Ben Greear writes: > On 11/22/2014 07:28 AM, Kalle Valo wrote: >> gree...@candelatech.com writes: >> >>> From: Ben Greear >>> >>> There are not many of these messages producted by the >>> firmware, but they are generally fairly useful, so print >>> them at info level. >>> >>> Signed-off-by: Ben

Re: [PATCH 2/3] ath10k: Fix locking for WEP keys

2014-11-24 Thread Kalle Valo
Sujith Manoharan writes: > From: Sujith Manoharan > > peer->keys needs to be protected by data_lock > since it is also accessed from the WMI path. > > Both install() and clear() routines for peer > keys modify the key contents, so use the data_lock > to avoid races. > > Signed-off-by: Sujith Man

Re: [PATCH 1/3] ath10k: Fix shared WEP

2014-11-24 Thread Kalle Valo
Sujith Manoharan writes: > From: Sujith Manoharan > > When static keys are used in shared WEP, when a > station is associated, message 3 is sent with an > encrypted payload. But, for subsequent > authentications that are triggered without a > deauth, the auth frame is decrypted by the HW. > > To

[PATCH 22/75] iwlwifi: mvm: Fix the keep_alive calculation

2014-11-24 Thread Emmanuel Grumbach
From: Avri Altman The driver must set the keep alive period regardless of power management state. The keep alive period must be greater or equal to both the NIC's maximum sleep period, and the listen interval. However, we were confusing time units (TU) and msec, so fix that. Signed-off-by: Avri

[PATCH 23/75] iwlwifi: mvm: implement UMAC scan API

2014-11-24 Thread Emmanuel Grumbach
From: David Spinadel This API uses second CPU scan commands, and can support multiple simultaneous scans. Adding the new API, and adding new mechanisms to deal with up to 8 simultaneous scans instead of the old scan status. New scan API requires scan configuration for default scan parameters, a

[PATCH 08/75] iwlwifi: mvm/trans: abort d0i3_enter in case of held ref

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller Other contexts might call iwl_mvm_ref_sync() right before we set IWL_MVM_STATUS_IN_D0I3, and then assume the fw/bus is not in d0i3 state. However, since we currently don't check for held references in the d0i3_enter flow, we might enter d0i3 although there is an active referen

[PATCH] ath10k: don't drop corrupted mgmt frames

2014-11-24 Thread Michal Kazior
Some firmware revisions don't seem to deilver management frames with FCS error via WMI so narrow down the HTT rule to not drop corrupted management frames. This basically increases number of frames ath10k reports while sniffing. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/h

[PATCH 10/75] iwlwifi: mvm: rs - don't use the shared antenna when BT load is high

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach When we need only one antenna, we should refrain from using the antenna that is shared with BT if BT load is high. Fix this. Reviewed-by: Eyal Shapira Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/coex.c| 16 drivers/net

[PATCH 18/75] iwlwifi: change max HT and VHT A-MPDU exponent

2014-11-24 Thread Emmanuel Grumbach
From: Eran Harary Add two new parameters to iwl_cfg: max_ht_ampdu_exponent and max_vht_ampdu_exponent. These parameters, if set, will set new values to the maximum of HT and VHT A-MPDU exponent for the A-MPDU length exponent. Signed-off-by: Eran Harary Signed-off-by: Emmanuel Grumbach --- dri

[PATCH 14/75] iwlwifi: pcie: introduce delay when waking up the device

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach In some rare cases, the firmware can put the device to sleep after the driver requested the access. This is because the access request can take a short time to be propagated to the firmware. If that happens, the driver may think that it has access since the firmware hasn'

[PATCH 05/75] iwlwifi: mvm: rs: don't use shadowing variable

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg The variable 'tid' is already defined in this function, so use just 't' for the new one. As we return from the function just overwriting 'tid' would be acceptable, but less obvious to the reader. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net

[PATCH 24/75] iwlwifi: mvm: BT Coex - add support for TTC / RRC

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach The TTC and RRC features are supported by the newer firmwares. It allows to reach better overall WiFi and BT performance. When the RRC is enabled, we don't need to force the AP to send SISO frames, but it can keeps sending MIMO frames. Reviewed-by: Johannes Berg Signed-o

[PATCH 19/75] iwlwifi: mvm: add support for WMM Access Control

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach After the corresponding mac80211 patch, we can now report the airtime used for each transmitted packet and mac80211 will be able to implement WMM-AC with that information. To support WMM-AC in the driver then, report the airtime and advertise support. Signed-off-by: Joha

[PATCH 07/75] iwlwifi: mvm: rs: fix a WARNING in case of STBC and VHT

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira This was taken care of in case we're doing STBC with HT but not when working with VHT. Signed-off-by: Eyal Shapira Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/rs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wire

[PATCH 16/75] iwlwifi: mvm: wake up d0i3_exit_waitq when aborting d0i3

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller When aborting d0i3 due to taken refs, other threads might already wait on d0i3_exit_waitq for IWL_MVM_STATUS_IN_D0I3 to get cleared (it's somewhat likely, as synchronize_rcu() might take a while), so make sure to wake them up. Signed-off-by: Eliad Peller Signed-off-by: Emmanu

[PATCH 42/75] iwlwifi: mvm: add TDLS channel switch FW APIs

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov Add a channel-switch command and a switch-start notification. Also add a FW TLV bit indicating TDLS channel switching support. Signed-off-by: Arik Nemtsov Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-fw.h | 2 + driv

[PATCH 33/75] iwlwifi: mvm: use unsigned for ssid_bitmap

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg The ssid_bitmap should be unsigned, though it doesn't matter much as the high bits aren't used. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 57/75] iwlwifi: mvm: add CSA absent time event for clients

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Add an absent time event when pre_channel_switch is called and use the time event started indication to set the disable_tx bit instead of doing it in unassign_vif(). This is done so that the firmware queues are stopped before the actual switch takes place to avoid losing pac

[PATCH 47/75] iwlwifi: mvm: block TID when using TDLS

2014-11-24 Thread Emmanuel Grumbach
From: Liad Kaufman Block TID 4 (VI) on a vif when using TDLS. This TID will be used by FW for TDLS channel-switch requests and PTI requests. Signed-off-by: Liad Kaufman Signed-off-by: Arik Nemtsov Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/m

[PATCH 49/75] iwlwifi: mvm: use new pre_channel_switch op instead of channel_switch_beacon

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho A new callback has been added to prepare the device for a channel switch. Use the new callback instead of the old channel_switch_beacon operation. This makes it possible to remove the channel_switch_beacon operation from mac80211. Signed-off-by: Luciano Coelho --- driver

[PATCH 21/75] iwlwifi: mvm: New skip over dtim policy

2014-11-24 Thread Emmanuel Grumbach
From: Avri Altman Our firmware scheduler suffers from false wake-up on 500 time units. that is if the dtim interval exceeds 500 time units, the fw wakes up, understands that the next wake-up event is still ahead, and if this event is more than 10msec in the future - goes back to sleep, otherwise

[PATCH 44/75] iwlwifi: mvm: allow private per-STA TFD queues

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov TDLS stations will have private queues, so consider them as well when allocating a new one. Consolidate the HW-queue iterating code into a single exported function, to be used by the TDLS code in the future. Signed-off-by: Arik Nemtsov Reviewed-by: Johannes Berg Signed-off-b

[PATCH 34/75] iwlwifi: mvm: remove warning on unknown scan complete

2014-11-24 Thread Emmanuel Grumbach
From: David Spinadel Remove warning on scan complete with unknown ID, since this scan could be already cleared in abort flow. Signed-off-by: David Spinadel Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/scan.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

[PATCH 46/75] iwlwifi: mvm: use private TFD queues for TDLS stations

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov When adding a TDLS station, allocate 4 new queues for it. Configure them to FW and enable them. On station removal, drain the queues if needed and disable them when empty. Make sure to flush all packets in the private queues of TDLS stations in the mac80211 flush() callback.

[PATCH 31/75] iwlwifi: pcie: support loading FW with extended mem range

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov Toggle the LMPM_CHICK register when writing chunks into the FW's extended SRAM. This tells the FW to put the chunk into a different memory space. Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-prph.h | 6 ++ drivers/

[PATCH 36/75] iwlwifi: mvm: refactor key add/remove functions

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg Refactor the key add/remove functions to be able to reuse parts of them later for RX WEP keys, which need to be uploaded twice. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/sta.c | 143 ++---

[PATCH 29/75] iwlwifi: mvm: make nd_ies part of the mvm struct

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Instead of allocating nd_ies separately, make it part of the iwl_mvm structure so it's easier to handle its lifetime. Signed-off-by: Luciano Coelho Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/d3.c | 2 +- drivers/

[PATCH 27/75] iwlwifi: mvm: support random MAC address for scanning

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg For background and scheduled scan, using the new unified scan API, support random MAC address scanning. Unfortunately, the firmware right now doesn't support randomising itself, so for now do it on the host - we'll change this once the firmware supports randomising the addres

[PATCH 37/75] iwlwifi: mvm: add WEP RX hardware offload support

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg In the original driver, we decided to not implement WEP RX hardware offload because of a quirk with the firmware API - it allows setting global WEP keys that then get used for all virtual interfaces, which is clearly wrong if more than one exists, and it allows setting per- st

[PATCH 25/75] iwlwifi: mvm: rs: consider a missing BA as a single tx failure

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira The fw now indicates missing BA with ampdu_ack_len=0. This will make the whole aggregation being marked as failed, although it's most likely not the case (and only the BA itself was failed). Consider this case as a single tx failure. Signed-off-by: Eyal Shapira Signed-off-b

[PATCH 30/75] iwlwifi: mvm: disable beacon filtering escape timer

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller There is no reason to pass every 50th beacon if nothing was changed. Signed-off-by: Eliad Peller Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/fw-api-power.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 32/75] iwlwifi: pcie: support 7265-D devices

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg Identify 7265-D devices using the hardware revision (they have the same PCI IDs as 7265) and change the configuration for them taking the differences (currently only the firmware image) into account. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers

[PATCH 38/75] iwlwifi: build mac80211 rx_status in place

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg Instead of building the rx_status on the stack and then copying it to the skb, allocate the skb a bit earlier and then build the rx_status in place. Signed-off-by: Johannes Berg Reviewed-by: IdoX Yariv Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/

[PATCH 51/75] iwlwifi: mvm: refactor iwl_mvm_switch_vif_chanctx to support other modes

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Currently we only support the CHANCTX_SWMODE_SWAP_CONTEXTS mode, but we need to support other modes as well. Spin a new function off in order to make it easier to support other modes. Signed-off-by: Luciano Coelho --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 40 +

[PATCH 35/75] iwlwifi: mvm: add remove flow for AUX ROC time events

2014-11-24 Thread Emmanuel Grumbach
From: Matti Gottlieb Add a flow that handles the requests to cancel the roc time event, that has been triggered via the aux framework. The roc for bss is different than the roc for p2p devices, and is done via the aux framework using the aux queue, thus requires a different flow to cancel the t

[PATCH 39/75] iwlwifi: mvm: pull crypto header into skb->head

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg When we pre-populate the skb->head for the stack, we only pull in the 802.11 header (assuming the packet isn't short enough to be in there completely.) This is fine, but in many cases we'll pull in the crypto headers pretty much immediately afterwards, so to avoid that pull in

[PATCH 69/75] iwlwifi: mvm: call iwl_trans_suspend/resume

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller call the appropriate iwl_trans_suspend/resume ops on iwl_mvm_suspend/resume calls. Signed-off-by: Eliad Peller Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/d3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive

[PATCH 75/75] iwlwifi: update the secure mem space and for the CPUs

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach Also update the timeout for the data verification. Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-prph.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlw

[PATCH 45/75] iwlwifi: mvm: disconnect TDLS peers on reconfig

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov When TDLS peers are present the FW will send packets on a dedicated TID vs. the peer when performing TDLS channel-switches. The driver configures the TID on connection to the peer and the FW is responsible for maintaining the state of QoS seqno and PN/IV for encryption. If the

[PATCH 56/75] iwlwifi: mvm: use switching_chanctx argument instead of csa_active

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Now that all CSA flows are using the switch_vif_chanctx op, we can rely on the switching_chanctx boolean that is passed to the __iwl_mvm_assign_vif_chanctx() and __iwl_mvm_unassign_vif_chanctx() functions to decide whether the context switch flows need to be executed. In thi

[PATCH 52/75] iwlwifi: mvm: add support for CHANCTX_SWMODE_REASSIGN_VIF

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Add support to reassign vif in switch_vif_chanctx. This is similar to the existing CHANCTX_SWMODE_SWAP_CONTEXTS mode, but doesn't delete the old context nor creates a new one, doing to switch between two existing contexts. Signed-off-by: Luciano Coelho --- drivers/net/wir

[PATCH 63/75] iwlwifi: mvm: protect session during CSA

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho When another vif is also running during a channel switch, we need to use a session protection when we move to the new channel, so that we don't miss the beacons. Without this, sometimes the other vif repeatedly gets time exactly when we should be hearing the beacons, prevent

[PATCH 59/75] iwlwifi: mvm: finalize on post_switch instead of unassign

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Now that mac80211 waits for the first beacon on the new channel before calling post_channel_switch, the reconfiguration of the firmware should be done in the post_channel_switch operation instead of when assigning the vif to the new context. Signed-off-by: Luciano Coelho --

[PATCH 70/75] iwlwifi: mvm: add support to MFUART loading notification

2014-11-24 Thread Emmanuel Grumbach
From: Chaya Rachel Ivgy Add support to MFUART loading notification (print notification data with IWL_DEBUG_INFO) Signed-off-by: Chaya Rachel Ivgy Reviewed-by: Emmanuel Grumbach Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/fw-api.h | 17 + drivers/net/

[PATCH 62/75] iwlwifi: mvm: clear TE data if CSA time event fails to start

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho If setting the CSA time event fails, we must clear the TE data, otherwise we'll try to remove it when, for instance, a disconnection occurs, causing a SYSASSERT. Signed-off-by: Luciano Coelho --- drivers/net/wireless/iwlwifi/mvm/time-event.c | 1 + 1 file changed, 1 insert

[PATCH 58/75] iwlwifi: mvm: schedule CSA time event a bit before beacon 1

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Instead of using a hardcoded number of TUs before beacon 0 as the time to start the absence and actual channel switch, calculate it in relation to the beacon interval. We use 10 TUs + beacon interval before beacon 0 to target a bit before beacon 1. This gives us enough time

[PATCH 61/75] iwlwifi: mvm: disable beacon filtering during CSA

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho After a channel switch, transmission on the new channel is only started once we see a beacon on it. Thus, beacon filtering needs to be disabled during channel switch so that mac80211 receives this beacon and finishes the process. Signed-off-by: Luciano Coelho --- drivers/

[PATCH 71/75] iwlwifi: mvm: declare support for VHT BF info in radiotap

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira The driver knows whether an rx frame was beamformed and marks it in the radiotap VHT flags. However it should also declare that it knows to extract this info otherwise this gets discarded by sniffers like Wireshark. Signed-off-by: Eyal Shapira Reviewed-by: Johannes Berg Sign

[PATCH 74/75] iwlwifi: sdio: new SDIO card id for 4165 series

2014-11-24 Thread Emmanuel Grumbach
From: Oren Givon Add a new SDIO card id intended for the new 4165 series. Signed-off-by: Oren Givon Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-8000.c | 15 +++ drivers/net/wireless/iwlwifi/iwl-config.h | 1 + 2 files changed, 16 insertions(+) diff --

[PATCH 50/75] iwlwifi: mvm: only save csa_vif in AP/GO mode

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho We only need the csa_vif in AP/GO modes, and assigning for other interfaces may cause problems, because csa_vif is never cleared. To prevent this, only assign the value if the iftype is NL80211_IFTYPE_AP. Use a switch to do this, even though, for now, only the AP interface

[PATCH 68/75] iwlwifi: trans: add suspend/resume ops

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller Add suspend/resume trans ops that will be called from mac80211's suspend/resume ops. Signed-off-by: Eliad Peller Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-trans.h | 14 ++ 1 file changed, 14 insertions(+)

[PATCH 55/75] iwlwifi: mvm: disable PS during channel switch

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Disable PS when pre_channel_switch is called and add the post_channel_switch operation to re-enable PS when the channel switch is completed. Signed-off-by: Luciano Coelho --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 28 +--- 1 file changed, 25

[PATCH 60/75] iwlwifi: mvm: add a channel_switch op to bypass mac80211 timer

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho We need to call ieee80211_chswitch_done() ourselves just when the absence TE started, so we perform the actual context switch early enough. To do so, add a dummy channel_switch op, which will cause mac80211 to skip the countdown timer and allow us to call ieee80211_chswitch_

[PATCH 67/75] iwlwifi: mvm: treat netdetect wake up separately

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho When the device wakes up due to netdetect, we need to query different things from the firmware than when it wakes up with a normal WoWLAN. To make this easier, separate the netdetect wake up handling from the rest. For now, we don't send netdetect as a wake up reason, treati

[PATCH 66/75] iwlwifi: mvm: refactor iwl_mvm_query_wakeup_reasons()

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Refactor the iwl_mvm_query_wakeup_reasons() function to split the part that gets the firmware status from the part that sets up the WoWLAN status. This will allow netdetect to reuse the code. Signed-off-by: Luciano Coelho Reviewed-by: Johannes Berg Signed-off-by: Emmanuel

[PATCH 64/75] iwlwifi: mvm: add support for net detect

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Add the net detect WoWLAN flag to indicate support and use the nd_config from the WoWLAN configuration to start net detect, if it is set. The WoWLAN configuration takes precedence over the debugfs configuration. Signed-off-by: Luciano Coelho Reviewed-by: Johannes Berg Sig

[PATCH 65/75] iwlwifi: mvm: refactor wowlan and netdetect configuration when suspending

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho We need to send a WOWLAN_CONFIGURATION command also for netdetect and configure the rfkill release trigger if needed. To do so, refactor the code that configures wowlan and netdetect when suspending and send the WOWLAN_CONFIGURATION command also for net_detect. Signed-off-b

[PATCH 72/75] iwlwifi: mvm: disconnect TDLS peers before channel switch

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov In case of channel switch, we need to teardown the TDLS peers. Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/

[PATCH 48/75] iwlwifi: mvm: implement mac80211 TDLS channel-switch APIs

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov Maintain a TDLS channel-switch state and update it according to notifications from FW and timeouts. Explicitly check all state transitions are valid. When switching is initiated by mac80211, use a delayed work to periodically reschedule it from iwlwifi. Give the FW mac80211 gen

[PATCH 53/75] iwlwifi: mvm: return the actual error code when switch_vif_chanctx fails

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho We have code to recover and go back to the original channel context if something fails in the middle of switch_vif_chanctx, but we return the error code of the recover calls instead of the original code, so if the recovery succeeds, we will return 0 (success). Fix this by no

[PATCH 54/75] iwlwifi: mvm: Handle failed beacon transmissions during CSA

2014-11-24 Thread Emmanuel Grumbach
From: Andrei Otcheretianski The spec requires to decrement the CSA counters based on TBTT, regardless if the beacon was actually transmitted. Previously, the fw would send beacon notifications only for successfully transmitted beacons. This behavior resulted in inaccurate CSA countdown. In order

[PATCH 73/75] iwlwifi: declare d0i3 support for IWL_DEVICE_8000

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller Signed-off-by: Eliad Peller Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-8000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/iwlwifi/iwl-8000.c b/drivers/net/wireless/iwlwifi/iwl-8000.c index 0919759..436efad 100644 --- a

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

2014-11-24 Thread Michal Kazior
This will make it easier to extend and maintain list of supported hardware. As a requirement this moves chip_id checking a little later because target_version isn't known until BMI can be queried. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/core.c | 72 -

[PATCH 28/75] iwlwifi: pcie: properly reset the device

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach We were toggling the wrong bit when we reset the device, fix that. Moreover, since the reset can take time, we need to wait before we set the rfkill interrupt. Not doing so can be racy since the driver is enabling the rfkill interrupt while the device is resetting which wi

[PATCH 26/75] iwlwifi: mvm: go to umac scan even if lmac tlv bit is on

2014-11-24 Thread Emmanuel Grumbach
From: David Spinadel LMAC TLV bit may be on in FWs that support UMAC scan; so check for UMAC TLV bit first. Signed-off-by: David Spinadel Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 6 +++--- drivers/net/wireless/iwlwifi/mvm/scan.c | 10 +-

[PATCH 41/75] iwlwifi: mvm: declare TDLS support

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov The driver/FW combination now support TDLS. Check the FW support with the TLV bit. Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-debug.h| 3 ++- drivers/net/wireless/iwlwifi/iwl-fw.h | 2 ++ drivers/net/wireless/

[PATCH 43/75] iwlwifi: mvm: configure TDLS peers to FW

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov Send a dedicated TDLS_CONFIG command when a TDLS peer joins/leaves. The fields for the command are mostly place-holders, as most of the FW functionality is not implemented. In the future the dedicated FW TID will be used for channel-switching and buffer-sta functionality. Sign

[PATCH 40/75] iwlwifi: mvm: pull SNAP header into skb->head

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg When we pre-populate the skb->head for the stack, we only pull in the 802.11 header including crypto (assuming the packet isn't short enough to be in there completely.) This is fine, but in ieee80211_data_to_8023() we later unconditionally pull 8 more bytes for the SNAP header

[PATCH 13/75] iwlwifi: mvm: handle unsolicited DTS_MEASUREMENT_NOTIFICATIONs

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Currently, the firmware only sends temperature notificaitions inside RX statistics notifications, which are tied to beacon filtering. This is a problem because beacon filtering is not used with vifs that don't receive beacons (e.g. P2P GO and AP), so the driver doesn't recei

[PATCH 11/75] iwlwifi: mvm: don't capture firmware coredump for D3->D0 reconfig

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg The code to capture firmware errors works during the reconfiguration phase after an error. As the D3->D0 transition uses the same flow to get the D0 image reconfigured, this triggered and caused a firmware coredump to be collected. This in turn, if it isn't picked up by usersp

[PATCH 12/75] iwlwifi: mvm: refactor temperature notification handling

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho Refactor the temperature handling code so that it is easier to reuse it with other notification flows. Signed-off-by: Luciano Coelho Reviewed-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/mvm.h | 1 + drivers/net/wireless/iwlwif

[PATCH 20/75] iwlwifi: mvm: move deferred d0i3 exit to resume_complete op

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller The deferred d0i3 exit is currently implemented in the resume op, which is called when mac80211 starts its resume process. However, mac80211 still doesn't handle frames at this stage, which results in frames being dropped. Move the deferred d0i3 handling to the reconfig_compl

[PATCH 09/75] iwlwifi: mvm: rs: fix getting stuck in a test window

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira When Tx STBC is being used and RS switches to a search column using the alternate antenna from the current one there is a problem with using rs_rate_match to figure out which table is the active and which one is the search one. The root cause is because in STBC the antenna mask

[PATCH 17/75] iwlwifi: mvm: Insert DS Parameter Set placeholder in probes

2014-11-24 Thread Emmanuel Grumbach
From: Andrei Otcheretianski Since it's too complicated for the fw to insert a DS Parameter Set element in the middle of the frame, it was decided that it should be done by the host. The fw will only parse the frame and update the current channel field. Signed-off-by: Andrei Otcheretianski Signe

[PATCH 15/75] iwlwifi: pcie: newer platform needs a OS alive indication

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach This is fully backward compatible with older platforms. Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/iwl-csr.h| 4 drivers/net/wireless/iwlwifi/pcie/trans.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/wireless/iwlwif

[PATCH 02/75] iwlwifi: mvm: handle error from iwl_trans_update_sf

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira iwl_trans_update_sf can fail and this wasn't handled. Fix this. Signed-off-by: Eyal Shapira Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/fw.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/ne

  1   2   >