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

2014-11-24 Thread Kalle Valo
Hi, something to clarify about mac80211 behaviour: gree...@candelatech.com writes: This lets the mac80211 stack use the proper ht-caps when negotiating with the peer. Note that all vdevs are guaranteed to be down when antenna changes, so we can set the ht_caps without worrying about

[PATCH] wireless/p54: Remove duplicated net2280 header

2014-11-24 Thread Ricardo Ribalda Delgado
The usb gadget driver net2280 has exported a header file with the register definition of the net2280 chip. Remove the custom/duplicated header file in favor of that header file in include/linux Signed-off-by: Ricardo Ribalda Delgado ricardo.riba...@gmail.com ---

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

2014-11-24 Thread Kalle Valo
Kalle Valo kv...@qca.qualcomm.com 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, true); +vht_cap =

Re: [PATCH 2/2] ath: Fix a false radar detection pattern

2014-11-24 Thread Kalle Valo
Vivek Natarajan natar...@qti.qualcomm.com writes: For FCC and JP, in one of the radar patterns, PPB and PRF seems to be interchanged leading to frequent incorrect radar detections. Signed-off-by: Vivek Natarajan natar...@qti.qualcomm.com --- drivers/net/wireless/ath/dfs_pattern_detector.c

[PATCH] ath10k: Do not limit RTS threshold value to 2347

2014-11-24 Thread Vivek Natarajan
Increase the rts threshold from the legacy value of 2347 to support higher threshold limit. Signed-off-by: Vivek Natarajan natar...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/mac.c |6 +- drivers/net/wireless/ath/ath10k/wmi.h |1 - 2 files changed, 1 insertion(+), 6

[PATCH] ath: Fix a false radar detection pattern

2014-11-24 Thread Vivek Natarajan
For FCC and JP, in one of the radar patterns, PPB and PRF seems to be interchanged leading to frequent incorrect radar detections. Signed-off-by: Vivek Natarajan natar...@qti.qualcomm.com --- drivers/net/wireless/ath/dfs_pattern_detector.c |4 ++-- 1 file changed, 2 insertions(+), 2

Tx Status of multicast frames

2014-11-24 Thread Vivek Natarajan
Hi Johannes, We are noticing a issue in updating the multicast frame statistics. Though mac80211 explicitly sets the IEEE80211_TX_CTL_NO_ACK, it checks IEEE80211_TX_STAT_ACK to increment the frame count. So, for multicast frames, is the driver expected to set this STAT_ACK if the frame is

[PATCH 1/3] ath10k: add missing goto

2014-11-24 Thread Michal Kazior
This prevents warning spamming if peer creation fails during sta_state in some cases. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/mac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c

[PATCH 2/3] ath10k: clean up num_peers locking

2014-11-24 Thread Michal Kazior
The var was supposed to be protected by data_lock but it wasn't so in all instances. It's actually not necessary to have a spinlock protected num_peers so drop it. All instances of num_peers are already within conf_mutex sections so use that. Signed-off-by: Michal Kazior michal.kaz...@tieto.com

[PATCH 3/3] ath10k: fix station count enforcement

2014-11-24 Thread Michal Kazior
The number of peers isn't directly translatable to the number of stations because ath10k needs to reserve a few extra peers for special cases like multi-vif concurrency. The previous limit was 126 and 15 stations in AP mode for 10.x and main firmware branches respectively. The limit is now 128

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

2014-11-24 Thread Kalle Valo
Yanbo Li yan...@qti.qualcomm.com writes: The debugfs interface reg_addrreg_val used to read and write the target register. The interface mmem_val used to dump the targer memory and also can be used to assign value to target memory The basic usage explain as below: Register read/write:

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

2014-11-24 Thread Michal Kazior
On 24 November 2014 at 14:50, Kalle Valo kv...@qca.qualcomm.com wrote: Yanbo Li yan...@qti.qualcomm.com writes: [...] + spin_lock_bh(ar-data_lock); + reg_addr = ar-debug.reg_addr; + spin_unlock_bh(ar-data_lock); [...] + spin_lock_bh(ar-data_lock); + ar-debug.reg_addr =

[PATCH 1/3] ath10k: fix offchan reliability

2014-11-24 Thread Michal Kazior
New firmware revisions don't need peer creation when doing offchannel tx. Earlier revisions would queue and never release frames without a peer. This prevent new firmware revisions from stopping replenishing wmi-htc tx credits and improves reliability of offchannel tx which would sometimes

Re: [PATCH] ath10k: don't rebuild all the time

2014-11-24 Thread Kalle Valo
Johannes Berg johan...@sipsolutions.net writes: There are better ways to get the kernel information, use the utsname and omit the version code entirely since it's duplicate. The version magic is rather useless anyway Signed-off-by: Johannes Berg johan...@sipsolutions.net Thanks, applied.

[PATCH] ath10k: remove extra_tx_headroom

2014-11-24 Thread Michal Kazior
Comment was out-of-date. The headroom is no longer necessary because HTT Tx fragment list is stored in dma pool item associated with each sk_buff. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/mac.c | 4 1 file changed, 4 deletions(-) diff --git

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

2014-11-24 Thread Kalle Valo
gree...@candelatech.com writes: From: Ben Greear gree...@candelatech.com 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 Greear gree...@candelatech.com Thanks, applied. Though I did

[PATCH 3/3] ath10k: move uart pin config into hw_params

2014-11-24 Thread Michal Kazior
This will make it possible to easily support different hardware with different uart pin configuration. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/core.c | 3 ++- drivers/net/wireless/ath/ath10k/core.h | 1 + 2 files changed, 3 insertions(+), 1

[PATCH 2/3] ath10k: put board size into hw_params

2014-11-24 Thread Michal Kazior
This makes it easier to extend the list of supported hardware. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/core.c | 8 +--- drivers/net/wireless/ath/ath10k/core.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git

pull request: iwlwifi-next 2014-11-24

2014-11-24 Thread Emmanuel Grumbach
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 opens. Details below - please pull. Thanks, The following changes since commit

[PATCH 06/75] iwlwifi: mvm: fix init_dbg flow to work as expected

2014-11-24 Thread Emmanuel Grumbach
From: Liad Kaufman liad.kauf...@intel.com Even if running the driver with param init_dbg=1 - on INIT image error - iwl_trans_stop_device() was still called. This patch fixes that and calls iwl_trans_stop_device() on INIT image failure only if init_dbg=0. Signed-off-by: Liad Kaufman

[PATCH 03/75] iwlwifi: mvm: use correct type for firmware status

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com The status variable should be unsigned as the function call requires a u32 not int pointer, fix that. Signed-off-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com Refactor the temperature handling code so that it is easier to reuse it with other notification flows. Signed-off-by: Luciano Coelho luciano.coe...@intel.com Reviewed-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel Grumbach

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

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira e...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach emmanuel.grumb...@intel.com This is fully backward compatible with older platforms. Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/iwl-csr.h| 4 drivers/net/wireless/iwlwifi/pcie/trans.c | 3 +++ 2 files changed, 7

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com The driver/FW combination now support TDLS. Check the FW support with the TLV bit. Signed-off-by: Arik Nemtsov arikx.nemt...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/iwl-debug.h| 3 ++-

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

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach emmanuel.grumb...@intel.com 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

[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 david.spina...@intel.com LMAC TLV bit may be on in FWs that support UMAC scan; so check for UMAC TLV bit first. Signed-off-by: David Spinadel david.spina...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

[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 michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/core.c |

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

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller el...@wizery.com Signed-off-by: Eliad Peller eliadx.pel...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/iwl-8000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/iwlwifi/iwl-8000.c

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com In case of channel switch, we need to teardown the TDLS peers. Signed-off-by: Arik Nemtsov arikx.nemt...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 3 +++ 1 file changed, 3

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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 luciano.coe...@intel.com

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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 luciano.coe...@intel.com --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 28

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira e...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Oren Givon oren.gi...@intel.com Add a new SDIO card id intended for the new 4165 series. Signed-off-by: Oren Givon oren.gi...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/iwl-8000.c | 15 +++

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Chaya Rachel Ivgy chaya.rachel.i...@intel.com Add support to MFUART loading notification (print notification data with IWL_DEBUG_INFO) Signed-off-by: Chaya Rachel Ivgy chaya.rachel.i...@intel.com Reviewed-by: Emmanuel Grumbach emmanuel.grumb...@intel.com Signed-off-by: Emmanuel Grumbach

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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 luciano.coe...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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.

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

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

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

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller el...@wizery.com Add suspend/resume trans ops that will be called from mac80211's suspend/resume ops. Signed-off-by: Eliad Peller eliadx.pel...@intel.com Reviewed-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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:

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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,

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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 johannes.b...@intel.com Reviewed-by: IdoX Yariv i...@wizery.com

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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 luciano.coe...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira e...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller el...@wizery.com There is no reason to pass every 50th beacon if nothing was changed. Signed-off-by: Eliad Peller eliadx.pel...@intel.com Reviewed-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Avri Altman avri.alt...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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 johannes.b...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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 luciano.coe...@intel.com Reviewed-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel

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

2014-11-24 Thread Emmanuel Grumbach
From: Luciano Coelho luciano.coe...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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 arikx.nemt...@intel.com Reviewed-by: Johannes Berg johannes.b...@intel.com Signed-off-by: Emmanuel

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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 johannes.b...@intel.com

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

2014-11-24 Thread Emmanuel Grumbach
From: Arik Nemtsov a...@wizery.com 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 arikx.nemt...@intel.com

[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 luciano.coe...@intel.com 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:

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

2014-11-24 Thread Emmanuel Grumbach
From: Liad Kaufman liad.kauf...@intel.com 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 liad.kauf...@intel.com Signed-off-by: Arik Nemtsov arikx.nemt...@intel.com Reviewed-by: Johannes Berg

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

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller el...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach emmanuel.grumb...@intel.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Eyal Shapira e...@wizery.com This was taken care of in case we're doing STBC with HT but not when working with VHT. Signed-off-by: Eyal Shapira eyalx.shap...@intel.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com --- drivers/net/wireless/iwlwifi/mvm/rs.c | 2 +- 1 file

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

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach emmanuel.grumb...@intel.com 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.

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

2014-11-24 Thread Emmanuel Grumbach
From: Johannes Berg johannes.b...@intel.com 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 johannes.b...@intel.com

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

2014-11-24 Thread Emmanuel Grumbach
From: Eran Harary eran.har...@intel.com 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 eran.har...@intel.com

[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 emmanuel.grumb...@intel.com 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 e...@wizery.com Signed-off-by: Emmanuel Grumbach emmanuel.grumb...@intel.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Emmanuel Grumbach emmanuel.grumb...@intel.com 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

[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 michal.kaz...@tieto.com ---

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

2014-11-24 Thread Emmanuel Grumbach
From: Eliad Peller el...@wizery.com 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

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

2014-11-24 Thread Emmanuel Grumbach
From: Avri Altman avri.alt...@intel.com 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.

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

2014-11-24 Thread Emmanuel Grumbach
From: David Spinadel david.spina...@intel.com 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

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

2014-11-24 Thread Kalle Valo
Sujith Manoharan suj...@msujith.org writes: From: Sujith Manoharan c_man...@qca.qualcomm.com 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

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

2014-11-24 Thread Kalle Valo
Sujith Manoharan suj...@msujith.org writes: From: Sujith Manoharan c_man...@qca.qualcomm.com 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

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

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

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

2014-11-24 Thread Kalle Valo
Yanbo Li yan...@qti.qualcomm.com writes: --- a/drivers/net/wireless/ath/ath10k/debug.c +++ b/drivers/net/wireless/ath/ath10k/debug.c @@ -22,6 +22,7 @@ #include linux/vmalloc.h #include core.h +#include hif.h #include debug.h #include hif.h hif.h is now included twice. Let me send

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

2014-11-24 Thread Johannes Berg
From: Johannes Berg johannes.b...@intel.com 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

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

2014-11-24 Thread Johannes Berg
From: Johannes Berg johannes.b...@intel.com 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:

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

2014-11-24 Thread Kalle Valo
From: Yanbo Li yan...@qti.qualcomm.com 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

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

2014-11-24 Thread Kalle Valo
From: Yanbo Li yan...@qti.qualcomm.com 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

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

2014-11-24 Thread Kalle Valo
Kalle Valo kv...@qca.qualcomm.com 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

[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 n...@openwrt.org --- net/mac80211/chan.c | 23 +++ net/mac80211/iface.c | 1 +

[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

[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

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 opens.

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) are

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 kv...@qca.qualcomm.com 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,

[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

[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

[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 lorenzo.biancon...@gmail.com --- drivers/net/wireless/ath/ath9k/ar9002_mac.c | 8 +++

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

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

2014-11-24 Thread Kalle Valo
Sujith Manoharan suj...@msujith.org 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

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

2014-11-24 Thread Sujith Manoharan
From: Sujith Manoharan c_man...@qca.qualcomm.com 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

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

2014-11-24 Thread Sujith Manoharan
From: Sujith Manoharan c_man...@qca.qualcomm.com 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:

  1   2   >