[PATCH 04/14] iwlwifi: set default timstamp marker cmd

2018-03-28 Thread Luca Coelho
From: Mordechay Goodstein <mordechay.goodst...@intel.com> In case debug configuration is started with LDBG cmd also start timestamp marker for syncing logs witn the FW. Signed-off-by: Mordechay Goodstein <mordechay.goodst...@intel.com> Signed-off-by: Luca Coelho <luciano.c

[PATCH 01/14] iwlwifi: mvm: flip AMSDU addresses only for 9000 family

2018-03-28 Thread Luca Coelho
From: Sara Sharon <sara.sha...@intel.com> Hardware bug was fixed in later generation. Signed-off-by: Sara Sharon <sara.sha...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 25 +++--

[PATCH 02/14] iwlwifi: mvm: take RCU lock before dereferencing

2018-03-28 Thread Luca Coelho
From: Sara Sharon <sara.sha...@intel.com> RCU isn't properly locked. Fixes: 46d372af9935 ("iwlwifi: mvm: rs: new rate scale API - add FW notifications") Signed-off-by: Sara Sharon <sara.sha...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> ---

[PATCH 00/14] iwlwifi: updates intended for v4.17 2018-03-28

2018-03-28 Thread Luca Coelho
From: Luca Coelho <luciano.coe...@intel.com> Hi, Here's the last batch of patches intended for 4.17. I'm also including the 5 patches I sent out last year and were still pending, since they were rebased and some have changed slightly. The old series contains these: * Fix a UBSAN w

[PATCH 08/14] iwlwifi: mvm: Allow iwl_mvm_mac_mgd_prepare_tx() when associated

2018-03-28 Thread Luca Coelho
ciated but no beacon was heard from the AP. In addition, do not warn in iwl_mvm_mac_mgd_prepare_tx() when already associated as now the callback can be called also when associated. Signed-off-by: Ilan Peer <ilan.p...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com>

[PATCH 06/14] iwlwifi: mvm: add adaptive dwell support

2018-03-28 Thread Luca Coelho
From: "Zamir, Roee" <roee.za...@intel.com> Update the scan command API with support for adaptive dwell and add a debugfs entry to configure max budget parameter. Signed-off-by: Roee Zamir <roee.za...@intel.com> Signed-off-by: Beni Lev <beni@intel.com> Signed-off-

[PATCH 07/14] iwlwifi: mvm: add support for oce

2018-03-28 Thread Luca Coelho
From: "Zamir, Roee" <roee.za...@intel.com> Get capabilities from the fw, expose them with nl80211, and enable them in UMAC scan if the relevant nl80211 flags are set by the userspace. Signed-off-by: Roee Zamir <roee.za...@intel.com> Signed-off-by: Luca Coelho <

Re: [PATCH 4/5] iwlwifi: mvm: fix array out of bounds reference

2018-03-16 Thread Luca Coelho
Hi Kalle, On Fri, 2018-03-16 at 14:38 +0200, Kalle Valo wrote: > Luca Coelho <l...@coelho.fi> writes: > > > From: Avraham Stern <avraham.st...@intel.com> > > > > When starting aggregation, the code checks the status of the queue > > allocated t

Re: pull-request: iwlwifi 2018-03-16

2018-03-16 Thread Luca Coelho
On Fri, 2018-03-16 at 14:41 +0200, Kalle Valo wrote: > Luca Coelho <l...@coelho.fi> writes: > > > Here is my third set of fixes for 4.16. More details in the tag > > description. > > > > I have sent this out before and kbuildbot didn't find any issues. >

[PATCH 5/5] iwlwifi: mvm: Move unused phy's to a default channel

2018-03-16 Thread Luca Coelho
ontext to a default channel when not referenced anymore. Signed-off-by: Andrei Otcheretianski <andrei.otcheretian...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c | 21 - 1 file changed, 1

[PATCH 3/5] iwlwifi: mvm: make sure internal station has a valid id

2018-03-16 Thread Luca Coelho
a new station id for the aux station if it does not have a valid id even in the case of fw restart. Signed-off-by: Avraham Stern <avraham.st...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 3 ++- 1 file changed,

[PATCH 0/5] iwlwifi: fixes intended for 4.16 2018-03-16

2018-03-16 Thread Luca Coelho
From: Luca Coelho <luciano.coe...@intel.com> Hi, This is my fourth batch of fixes inteded for 4.16. These are the fixes: * a couple of fixes for channel-switch; * a few fixes for the aggregation handling code; As usual, I'm pushing this to a pending branch, for kbuild bot, and wil

[PATCH 2/5] iwlwifi: mvm: clear tx queue id when unreserving aggregation queue

2018-03-16 Thread Luca Coelho
clined the aggregation request) the tid_data is not cleared. As a result, following tx for this tid was trying to use an unallocated queue. Fix this by setting the txq_id for the tid to invalid when unreserving the queue. Signed-off-by: Avraham Stern <avraham.st...@intel.com> Signed-off-by:

[PATCH 4/5] iwlwifi: mvm: fix array out of bounds reference

2018-03-16 Thread Luca Coelho
ham.st...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 38 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/i

[PATCH 1/5] iwlwifi: mvm: Increase session protection time after CS

2018-03-16 Thread Luca Coelho
cheretian...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 5 - drivers/net/wireless/intel/iwlwifi/mvm/mvm.h| 3 +++ drivers/net/wireless/intel/iwlwifi/mvm/time-event.c | 15 --- 3 files changed, 1

pull-request: iwlwifi 2018-03-19

2018-03-19 Thread Luca Coelho
Hi Kalle, Here is my fourth set of fixes for 4.16. More details in the tag description. I have sent this out before and kbuildbot didn't find any issues. Please let me know if there are any issues. Cheers, Luca. The following changes since commit 1259055170287a350cad453e9eac139c81609860:

Re: [PATCH v2 13/13] cfg80211: Add API to allow querying regdb for wmm_rule

2018-02-27 Thread Luca Coelho
On Tue, 2018-02-27 at 11:39 +0100, Johannes Berg wrote: > I'm dropping the patches 11-13 from my list for now - please resend > with the additional fix I just submitted internally :-) Sure, will do, thanks! -- Luca.

pull-request: iwlwifi 2018-03-02

2018-03-02 Thread Luca Coelho
Hi Kalle, Here is my second set of fixes for 4.16. More details in the tag description. I have sent this out before and kbuildbot didn't find any issues. Please let me know if there are any issues. Cheers, Luca. The following changes since commit 78dc897b7ee67205423dbbc6b56be49fb18d15b5:

pull-request: iwlwifi firmwares update 2018-03-02

2018-03-02 Thread Luca Coelho
version 34 for 9000 series (2018-03-02 12:38:35 +0200) iwlwifi: update FWs for 9000 series * Update FW version 34 for 9000 series; Luca Coelho (1): iwlwifi: update

[PATCH 0/4] iwlwifi: fixes intended for 4.16 2018-03-02

2018-03-02 Thread Luca Coelho
From: Luca Coelho <luciano.coe...@intel.com> Hi, This is my third batch of fixes inteded for 4.16. These are the fixes: * Fix an issue with the multicast queue; * Fix IGTK handling; * Fix some missing return value checks; * Add support for a HW workaround for issues on some pla

[PATCH 2/4] iwlwifi: mvm: Correctly set IGTK for AP

2018-03-02 Thread Luca Coelho
mvm: Enable security on new TX API") Signed-off-by: Beni Lev <beni@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/driver

[PATCH 4/4] iwlwifi: add shared clock PHY config flag for some devices

2018-03-02 Thread Luca Coelho
From: Luca Coelho <luciano.coe...@intel.com> Some devices use a shared clock which is very sensitive to variations and cause trouble in some situations. We need to set a bit in the phy configuration to indicate that to the FW. To make this generic, add a extra_phy_config_flags e

[PATCH 3/4] iwlwifi: mvm: fix error checking for multi/broadcast sta

2018-03-02 Thread Luca Coelho
d 'ret' before and it was 'false' .../mac80211.c:2563 iwl_mvm_start_ap_ibss() warn: we tested 'ret' before and it was 'false' Fixes: 3a89411cd31c ("iwlwifi: mvm: fix assert 0x2B00 on older FWs") Signed-off-by: Johannes Berg <johannes.b...@intel.com> Signed-off-by: Luca Coelho <

[PATCH 1/4] iwlwifi: mvm: set the correct tid when we flush the MCAST sta

2018-03-02 Thread Luca Coelho
handle this even if we hadn't any queue mapped that that tid. Fixes: e340c1a6ef4b ("iwlwifi: mvm: Correctly set the tid for mcast queue") Signed-off-by: Emmanuel Grumbach <emmanuel.grumb...@intel.com> Signed-off-by: Luca Coelho <luciano.coe...@intel.com> --- drivers/net/wir

pull-request: iwlwifi-next 2018-04-26

2018-04-26 Thread Luca Coelho
different csr flags for different device families iwlwifi: support new csr addresses for hw address Golan Ben-Ami (1): iwlwifi: introduce Image Loader (IML) - new firmware image Johannes Berg (1): iwlwifi: mvm: move skb padding reservation earlier Luca Coelho (5): iwlwifi: cfg: re

[PATCH 08/18] iwlwifi: mvm: give TX queue info struct a name

2018-10-08 Thread Luca Coelho
From: Johannes Berg Make this a named struct rather than an anonymous one, we'll want to refer to it by name later. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 24 +++- 1 file changed, 13 insertions(+), 11

[PATCH 13/18] iwlwifi: mvm: reconfigure queues during inactivity check

2018-10-08 Thread Luca Coelho
the inactivity check function. This requires changing the locking, but one of the two places already holds the mvm mutex and the other easily can. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 18 +++--- 1 file changed, 7 insertions

[PATCH 11/18] iwlwifi: mvm: clean up iteration in iwl_mvm_inactivity_check()

2018-10-08 Thread Luca Coelho
From: Johannes Berg There's no need to build a bitmap first and then iterate, just do the iteration with the right locking directly. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 32 +--- 1 file changed, 15

[PATCH 12/18] iwlwifi: mvm: move queue reconfiguration into new function

2018-10-08 Thread Luca Coelho
From: Johannes Berg If TVQM is used we skip over this, move the code into a new function to get rid of the label. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 64 ++-- 1 file changed, 33 insertions(+), 31 deletions

[PATCH 15/18] iwlwifi: mvm: make queue TID change more explicit

2018-10-08 Thread Luca Coelho
iwl_mvm_change_queue_owner() to iwl_mvm_change_queue_tid() since that's more obvious - the "kind" of owner isn't immediately clear right now. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 53 +--- 1 file changed, 25

[PATCH 07/18] iwlwifi: mvm: move rt status check to the start of the resume flow

2018-10-08 Thread Luca Coelho
From: Shahar S Matityahu Move the rt status checking to the start of the resume flow in order to avoid sending D0I3_END_CMD to the FW. Also, collect dump if an assert was encountered. Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/d3

[PATCH 06/18] iwlwifi: dump debug data before stop device

2018-10-08 Thread Luca Coelho
stopped. Since dumping cannot occour after stopping the device, split the the dump function to two parts, Part that handles locking, and the part that starts the actual dumping and call the second part in the op mode stop device function. Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho

[PATCH 16/18] iwlwifi: mvm: make iwl_mvm_scd_queue_redirect() static

2018-10-08 Thread Luca Coelho
From: Johannes Berg This function is only used in the file where it's declared, so just make it static. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 6 +++--- drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 2 files changed

[PATCH 05/18] iwlwifi: mvm: use fast balance scan in case of DCM mode with P2P GO

2018-10-08 Thread Luca Coelho
nly exception is in case fragmented scan was planned to be set due to low latency or high throughput reason, set the scan timing as planned. Signed-off-by: Ayala Beker Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 91 ++- 1 file changed, 68 inserti

[PATCH 00/18] iwlwifi: updates intended for v4.20 2018-10-08

2018-10-08 Thread Luca Coelho
From: Luca Coelho Hi, Here's the seventh set of patches intended for v4.20. It's the usual development, the majority of the changes are cleanups in the queue lifetime management code by Johannes, and also some improvements, debugging and bugfixes again. The changes are: * Support for a new

[PATCH 14/18] iwlwifi: mvm: remove RECONFIGURING queue state

2018-10-08 Thread Luca Coelho
ate entirely and just track the queues that need to be reconfigured in a separate, local, bitmap. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 5 --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 36 2 files changed,

[PATCH 04/18] iwlwifi: mvm: introduce a new fragmented scan type: fast balance

2018-10-08 Thread Luca Coelho
From: Ayala Beker Fast balance scan is similar to SCAN_TYPE_MILD, but this scan is fragmented and has shorter out of operating channel time, and therefore better match low latency scenarios. Signed-off-by: Ayala Beker Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 03/18] iwlwifi: trace: change trace to trace one TB at a time

2018-10-08 Thread Luca Coelho
From: Sara Sharon Split TX tracing to be per TB. This is needed now that AMSDUs can be sent and skb can be larger than trace limit. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- .../intel/iwlwifi/iwl-devtrace-data.h | 30 --- .../net/wireless/intel/iwlwifi

[PATCH 10/18] iwlwifi: mvm: remove per-queue hw refcount

2018-10-08 Thread Luca Coelho
From: Johannes Berg There's no need to have a hw refcount if we just mark the command queue with a (fake) TID; at that point, the refcount becomes equivalent to the hweight() of the TID bitmap. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 17/18] iwlwifi: mvm: move iwl_mvm_sta_alloc_queue() down

2018-10-08 Thread Luca Coelho
From: Johannes Berg We want to call iwl_mvm_inactivity_check() from here in the next patch, so need to move the code down to be able to. Fix a minor checkpatch complaint while at it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c

[PATCH 18/18] iwlwifi: mvm: kill INACTIVE queue state

2018-10-08 Thread Luca Coelho
is lower. Additionally, this fixes a corner case: due to the way the code worked, we could only ever reuse an inactive queue if it was the reserved queue for a station, as iwl_mvm_find_free_queue() would never consider returning an inactive queue. Signed-off-by: Johannes Berg Signed-off-by: Luca

[PATCH 09/18] iwlwifi: mvm: move queue management into sta.c

2018-10-08 Thread Luca Coelho
From: Johannes Berg None of these functions really need to be separate, they're all only used in sta.c, move them there and make them static. Fix a small typo in related code while at it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 02/18] iwlwifi: pcie: don't pad AMSDU packets

2018-10-08 Thread Luca Coelho
Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c index b7

[PATCH 01/18] iwlwifi: mvm: don't send keys when entering D3

2018-10-08 Thread Luca Coelho
offload. Since driver re-sent the keys, the PN got zeroed and the receiver dropped the next packets, until PN caught up again. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] iwlwifi: mvm: check return value of rs_rate_from_ucode_rate()

2018-10-13 Thread Luca Coelho
From: Luca Coelho The rs_rate_from_ucode_rate() function may return -EINVAL if the rate is invalid, but none of the callsites check for the error, potentially making us access arrays with index IWL_RATE_INVALID, which is larger than the arrays, causing an out-of-bounds access. This will trigger

pull-request: iwlwifi-next 2018-10-12

2018-10-12 Thread Luca Coelho
Hi Kalle, This is the fourth batch of patches intended for v4.20. This includes only the last patchset I sent. Usual development work, mostly queue handling cleanups. More details about the contents in the tag description. I have sent this out before and kbuildbot reported success. Please

Re: [PATCH] Minor corrections of comments in the iwlwifi mvm rate scaling source

2018-10-17 Thread Luca Coelho
On Thu, 2018-09-13 at 13:07 +0200, Rémy Grünblatt wrote: > Hi, > > I believe some comments in the rate scaling source of the iwlwifi mvm > are wrong, as we have #define RATE_MCS_SGI_POS 13 and #define > RATE_MCS_SGI_MSK (1 << RATE_MCS_SGI_POS) Hi Remy, Sorry for the delay, your patch was not

[PATCH 04/15] iwlwifi: mvm: enable low latency for soft ap

2018-11-02 Thread Luca Coelho
From: Tova Mussai Enable low latency for softAP in all modes (standalone, SCM and DCM). This is in order to minimize the time the softAP leaves the channel for other operations Signed-off-by: Tova Mussai Signed-off-by: Luca Coelho --- .../wireless/intel/iwlwifi/mvm/debugfs-vif.c | 5

[PATCH 02/15] iwlwifi: mvm: remove queue_info_lock

2018-11-02 Thread Luca Coelho
ead a bitmap, so the lock isn't needed. Therefore, we can remove the spinlock. This enables some cleanup in the ugly locking in iwl_mvm_inactivity_check(). Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 1 - drivers/net/wireless/intel/iwlw

[PATCH 03/15] iwlwifi: trans: Clear persistence bit when starting the FW

2018-11-02 Thread Luca Coelho
Matityahu Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 7 +++ drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 12 2 files changed, 19 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-prph.h b/drivers/net/wireless/intel/iwlwifi/iwl

[PATCH 00/15] iwlwifi: updates intended for v4.21 2018-11-02

2018-11-02 Thread Luca Coelho
From: Luca Coelho Hi, Here's the first set of patches intended for v4.21. It's the usual development, with some small new feauters, cleanups and bugfixes. The changes are: * PCI IDs for some new 9000-series cards; * Improve antenna usage on connection problems; * Some improvements

[PATCH 07/15] iwlwifi: mvm: toggle tx antenna if tx fails during connection establishment

2018-11-02 Thread Luca Coelho
use EAPOLs for 802.1X authentication/ 4 way handshake. Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 + drivers/net/wireless/intel/iwlwifi/mvm/sta.h | 4 ++ drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 65 +++- 3

[PATCH 08/15] iwlwifi: pcie: don't reset TXQ write pointer

2018-11-02 Thread Luca Coelho
Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c index e880f69eac26..0c5f11d2c5da 100644 ---

[PATCH 05/15] iwlwifi: mvm: switch management tx antenna only on tx failure

2018-11-02 Thread Luca Coelho
From: Avraham Stern Switch the antenna used for management tx only if previous tx failed. If previous tx succeeded, there is no reason to switch antennas. Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 7 ++- drivers/net

[PATCH 01/15] iwlwifi: mvm: synchronize TID queue removal

2018-11-02 Thread Luca Coelho
can then be sure that the TX path is no longer accessing that queue. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers

[PATCH 11/15] iwlwifi: mvm: Send non offchannel traffic via AP sta

2018-11-02 Thread Luca Coelho
hang. Fix that by sending such frames through AP sta instead. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 15/15] iwlwifi: fw: use helper to determine whether to dump paging

2018-11-02 Thread Luca Coelho
From: Sara Sharon Logic is there twice, and we'll need a third place soon for ini dumping. In addition move the dumping to a function, also to enable reuse. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 57

[PATCH 14/15] iwlwifi: add new cards for 9560, 9462, 9461 and killer series

2018-11-02 Thread Luca Coelho
From: Ihab Zhaika add few PCI ID'S for 9560, 9462, 9461 and killer series. Cc: sta...@vger.kernel.org Signed-off-by: Ihab Zhaika Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/drivers/net

[PATCH 10/15] iwlwifi: mvm: add description to a few generic assert numbers

2018-11-02 Thread Luca Coelho
of the assert number are dynamic, and depend on which MAC the assert occurred on, ignore those bits when looking up the assert name. Signed-off-by: Naftali Goldstein Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH 09/15] iwlwifi: dbg: avoid passing trigger around

2018-11-02 Thread Luca Coelho
From: Sara Sharon The trigger structure is being passed around, when all we care about is whether to dump only monitor or not. Pass a bool instead. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 20 +-- drivers/net

[PATCH 06/15] iwlwifi: fw: do not set sgi bits for HE connection

2018-11-02 Thread Luca Coelho
API handlers") Signed-off-by: Naftali Goldstein Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c index 7a

[PATCH 12/15] iwlwifi: dbg: use helper to check if debug type is set

2018-11-02 Thread Luca Coelho
From: Sara Sharon This enables to incorporate more logic in one place. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 36 ++--- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 7 +++- 2 files changed, 24 insertions

[PATCH 13/15] iwlwifi: mvm: remove unused conversion table

2018-11-02 Thread Luca Coelho
From: Emmanuel Grumbach chanwidths isn't used now in debugfs-vif.c. Remove it. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi

Re: iwlwifi firmware

2018-11-02 Thread Luca Coelho
Hi Michael, On Fri, 2018-11-02 at 09:47 +0100, Michael Köbberich wrote: > Sehr geehrtes Intel Team > > Ich bin auf der Suche nach Firmware für einen Axxiv FIN NUC DH17012, > genauer gesagt dessen WIFI Karte. Sind die Treiber: > > iwlwifi-8000C-26.ucode > iwlwifi-8000C-25.ucode >

pull-request: iwlwifi-next 2018-11-11

2018-11-11 Thread Luca Coelho
Hi Kalle, This is the first batch of patches intended for v4.21. This includes only the last patchset I sent. Usual development work, new PCI IDs and small fixes and cleanups. More details about the contents in the tag description. I have sent this out before and kbuildbot reported success.

[PATCH 2/5] iwlwifi: mvm: support sta_statistics() even on older firmware

2018-11-11 Thread Luca Coelho
kernel.org # 4.2+ Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 50

[PATCH 0/5] iwlwifi: fixes intended for 4.20 2018-11-11

2018-11-11 Thread Luca Coelho
From: Luca Coelho Hi, This is my first batch of fixes inteded for 4.20. These are the fixes: * fix statistics collection with older FWs (was causing issues on userspace); * fix a problem with regulatory after FW restart (bugzilla fix) * fix a problem related to SAR with buggy BIOSes; * fix

[PATCH 4/5] iwlwifi: fix D3 debug data buffer memory leak

2018-11-11 Thread Luca Coelho
Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/runtime.h | 6 +- drivers/net/wireless/intel/iwlwifi/mvm/ops.c| 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h b/d

[PATCH 1/5] iwlwifi: fix wrong WGDS_WIFI_DATA_SIZE

2018-11-11 Thread Luca Coelho
vm_sar_geo_init SAR geographic profile[2] Band[1]: chain A = 52 chain B = 53 max_tx_power = 51 Cc: sta...@vger.kernel.org # 4.12+ Fixes: a6bff3cb19b7 ("iwlwifi: mvm: add GEO_TX_POWER_LIMIT cmd for geographic tx power table") Signed-off-by: Matt Chen Signed-off-by: Luca Coelho --- drivers/

[PATCH 5/5] iwlwifi: mvm: don't use SAR Geo if basic SAR is not used

2018-11-11 Thread Luca Coelho
From: Luca Coelho We can't use SAR Geo if basic SAR is not enabled, since the SAR Geo tables define offsets in relation to the basic SAR table in use. To fix this, make iwl_mvm_sar_init() return one in case WRDS is not available, so we can skip reading WGDS entirely. Fixes: a6bff3cb19b7

[PATCH 3/5] iwlwifi: mvm: fix regulatory domain update when the firmware starts

2018-11-11 Thread Luca Coelho
...@vger.kernel.org Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 8 ++-- drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 5 ++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm

pull-request: iwlwifi 2018-11-15

2018-11-15 Thread Luca Coelho
update when the firmware starts Luca Coelho (1): iwlwifi: mvm: don't use SAR Geo if basic SAR is not used Matt Chen (1): iwlwifi: fix wrong WGDS_WIFI_DATA_SIZE Shahar S Matityahu (1): iwlwifi: fix D3 debug data buffer memory leak drivers/net/wireless/intel/iwlwifi/fw/acpi.h

[PATCH v2 5/5] iwlwifi: mvm: don't use SAR Geo if basic SAR is not used

2018-11-12 Thread Luca Coelho
From: Luca Coelho We can't use SAR Geo if basic SAR is not enabled, since the SAR Geo tables define offsets in relation to the basic SAR table in use. To fix this, make iwl_mvm_sar_init() return one in case WRDS is not available, so we can skip reading WGDS entirely. Fixes: a6bff3cb19b7

[PATCH 11/16] iwlwifi: dbg: add apply point logic

2018-11-11 Thread Luca Coelho
- update the stored configuration Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 207 ++ drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 4 + drivers/net/wireless/intel/iwlwifi/fw/img.h | 26 +++ .../net/wireless

[PATCH 14/16] iwlwifi: mvm: set MAC_FILTER_IN_11AX in AP mode

2018-11-11 Thread Luca Coelho
From: Shaul Triebitz In AP mode, if AP supports 11ax, add the MAC_FILTER_IN_11AX flag in MAC_CTXT command (needed for various 11ax stuff). Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 3 +++ 1 file changed, 3 insertions

[PATCH 10/16] iwlwifi: dbg: disable triggers for ini

2018-11-11 Thread Luca Coelho
From: Sara Sharon When ini is loaded, disable all legacy trigger configuration. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 3 +++ drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 3 +++ drivers/net/wireless/intel/iwlwifi/iwl

[PATCH 12/16] iwlwifi: add debugfs file to read fw debug data recording

2018-11-11 Thread Luca Coelho
-by: Lior Cohen Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 14 ++ drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 + .../net/wireless/intel/iwlwifi/iwl-trans.h| 5 + drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 3 + .../wireless/intel/iwlwifi/pcie

[PATCH 04/16] iwlwifi: fix cfg structs for 22000 with different RF modules

2018-11-11 Thread Luca Coelho
From: Luca Coelho We have to choose different configuration and different firmwares depending on the external RF module that is installed. Since the external module is not represented in the PCI IDs, we need to change the configuration at runtime, after checking the RF ID of the module

[PATCH 03/16] iwlwifi: mvm: remove assignment of the reciprocal

2018-11-11 Thread Luca Coelho
From: Emmanuel Grumbach The firmware stopped looking at this field long ago. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/fw/api/mac.h | 27 +++ .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 12 - 2 files changed

[PATCH 05/16] iwlwifi: add fw dump upon RT ucode start failure

2018-11-11 Thread Luca Coelho
From: Lior Cohen FW dump was missing in case the RT FW ucode section failed to load. This failure happens when the RT section of the FW file is corrupted. Signed-off-by: Lior Cohen Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 8 drivers/net/wireless

[PATCH 13/16] iwlwifi: fw: support API change to debug TLVs

2018-11-11 Thread Luca Coelho
From: Sara Sharon A new field was added. Since the code isn't operational (yet) no need to worry about backward compatibility. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 15/16] iwlwifi: mvm: send the STA_HE_CTXT command in AP mode

2018-11-11 Thread Luca Coelho
From: Shaul Triebitz In AP mode, if AP supports HE (and the STA), send the STA_HE_CTXT command. This is needed mainly for PPE (packet extension) params. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 +++ 1 file changed, 3

[PATCH 08/16] iwlwifi: trans: parse and store debug ini TLVs

2018-11-11 Thread Luca Coelho
be configured to collect a subset of data pre-alive, as a opposed to HW error that occurs after alive. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/Makefile | 1 + drivers/net/wireless/intel/iwlwifi/fw/file.h | 7 + .../net/wireless/intel

[PATCH 07/16] iwlwifi: fw: add FW API of new TLV infrastructure

2018-11-11 Thread Luca Coelho
From: Sara Sharon Add the FW API of the new debug infrastructure. Next patches will introduce the utilization of this infra. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- .../wireless/intel/iwlwifi/fw/api/dbg-tlv.h | 399 ++ 1 file changed, 399 insertions

[PATCH 01/16] iwlwifi: dbg: don't limit dump decisions to all or monitor

2018-11-11 Thread Luca Coelho
From: Sara Sharon Currently opmode is limited to asking transport to either dump all the dumps configured at startup, or monitor only. Instead, pass to transport a bitmask, to allow flexibility. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw

[PATCH 00/16] iwlwifi: updates intended for v4.21 2018-11-11

2018-11-11 Thread Luca Coelho
From: Luca Coelho Hi, Here's the second set of patches intended for v4.21. It's the usual development, with some small new features, cleanups and bugfixes. The changes are: * New FW debugging infrastructure; * Some more work on 802.11ax; * Improve support for multiple RF modules with 22000

[PATCH 02/16] iwlwifi: dbg: split fifos dump

2018-11-11 Thread Luca Coelho
From: Sara Sharon Split the dump of RXF and TXF. This is in order to enable code reuse for INI, which may decide to dump only RXF and not TXF, and vice versa. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 52 +++-- 1

[PATCH 06/16] iwlwifi: mvm: add support for TWT capabilities

2018-11-11 Thread Luca Coelho
-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/fw/api/mac.h | 16 + .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 24 ++- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/mac.h b/drivers/net/wireless

[PATCH 16/16] iwlwifi: mvm: set HW capability VHT_EXT_NSS_BW

2018-11-11 Thread Luca Coelho
From: Shaul Triebitz Enable the VHT extended NSS BW feature in iwlwifi/mvm. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b

[PATCH 09/16] iwlwifi: trans: support loading ini TLVs from external file

2018-11-11 Thread Luca Coelho
From: Sara Sharon Support loading and storing ini TLVs from external file. Those TLVs are appended to the default TLVs, so store them separately. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/iwl-dbg-tlv.c | 81 +-- .../net/wireless

pull-request: iwlwifi firmwares update 2018-10-03

2018-10-03 Thread Luca Coelho
. Emmanuel Grumbach (2): iwlwifi: update firmwares for 9000 series iwlwifi: add -41.ucode firmwares for 9000 series Luca Coelho (1): iwlwifi: update firmwares for 7000, 8000 and 9000 series WHENCE| 20 +--- iwlwifi-3160-17.ucode

[PATCH v2] iwlwifi: mvm: enable sending HE_AIR_SNIFFER command via debugfs

2018-09-27 Thread Luca Coelho
From: Shaul Triebitz In order to receive TB (Trigger Based) PPDU in monitor mode, the Driver must send the HE_AIR_SNIFFER_CONFIG_CMD host command. Enable that via debugfs. Signed-off-by: Liad Kaufman Signed-off-by: Ido Yariv Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho

pull-request: iwlwifi-next 2018-09-28

2018-09-28 Thread Luca Coelho
Hi Kalle, This is the second batch of patches intended for v4.20. This includes the last 2 patchsets I sent. Usual development work, with some improvements on HE, HW support, bugfixes, and some other small improvements. More details about the contents in the tag description. I have sent this

[PATCH 06/18] iwlwifi: dbg: dump memory in a helper function

2018-09-28 Thread Luca Coelho
From: Sara Sharon The code that dumps various memory types repeats itself. Move it to a function to avoid duplication. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 92 - 1 file changed, 34 insertions(+), 58

[PATCH 04/18] iwlwifi: dbg: split iwl_fw_error_dump to two functions

2018-09-28 Thread Luca Coelho
Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 63 + 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index c2a6c4ffd356..d3d0a197942f

[PATCH 01/18] iwlwifi: mvm: check for n_profiles validity in EWRD ACPI

2018-09-28 Thread Luca Coelho
From: Luca Coelho When reading the profiles from the EWRD table in ACPI, we loop over the data and set it into our internal table. We use the number of profiles specified in ACPI without checking its validity, so if the ACPI table is corrupted and the number is larger than our array size, we

[PATCH 02/18] iwlwifi: dbg: move debug data to a struct

2018-09-28 Thread Luca Coelho
From: Sara Sharon The debug variables are bloating the iwl_fw struct. And the fields are out of order, missing docs and some are redundant. Clean this up. This serves as preparation for unionizing it for the new ini infra. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers

[PATCH 09/18] iwlwifi: mvm: remove unnecessary overload variable

2018-09-28 Thread Luca Coelho
From: Johannes Berg This is equivalent to checking he_phy_data != HE_PHY_DATA_INVAL, which is already done in a number of places, so remove the extra 'overload' variable entirely. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 6

[PATCH 08/18] iwlwifi: mvm: clear HW_RESTART_REQUESTED when stopping the interface

2018-09-28 Thread Luca Coelho
IWL_MVM_STATUS_IN_HW_RESTART set in step 12) we won't get to the 2093 ASSERT either. Fixes: bf8b286f86fc ("iwlwifi: mvm: defer setting IWL_MVM_STATUS_IN_HW_RESTART") Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 9 ++--- 1 file

[PATCH 07/18] iwlwifi: dbg: group trigger condition to helper function

2018-09-28 Thread Luca Coelho
From: Sara Sharon The triplet of get trigger, is trigger enabled and is trigger stopped repeats itself. Group them in a function to avoid code duplication. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 24 ++ .../net

<    13   14   15   16   17   18   19   >