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

2018-10-08 Thread Luca Coelho
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 change

[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 ch

[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 ch

[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

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

2018-10-06 Thread Luca Coelho
TB PPDUs Luca Coelho (1): iwlwifi: mvm: check for n_profiles validity in EWRD ACPI Naftali Goldstein (1): iwlwifi: nvm: get num of hw addresses from firmware Sara Sharon (8): iwlwifi: dbg: move debug data to a struct iwlwifi: dbg: refactor dump code to improve readability

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 15/16] iwlwifi: dbg: decrement occurrences for all triggers

2018-10-01 Thread Luca Coelho
skipped. Move it to the right location. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 16 ++-- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH 12/16] iwlwifi: mvm: show more HE radiotap data for TB PPDUs

2018-10-01 Thread Luca Coelho
show it in radiotap. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 67 +-- 1 file changed, 31 insertions(+), 36 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/i

[PATCH 07/16] iwlwifi: mvm Support new MCC update response

2018-10-01 Thread Luca Coelho
From: Haim Dreyfuss Change MCC update response API to be compatible with new FW API. While at it change v2 which is not in use anymore to v3 and cleanup mcc_update v1 command and response which is obsolete. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- .../wireless/intel

[PATCH 14/16] iwlwifi: mvm: use match_string() helper

2018-10-01 Thread Luca Coelho
From: Yisheng Xie match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Reviewed-by: Andy Shevchenko Signed-off-by: Yisheng Xie Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 13 - 1

[PATCH 09/16] iwlwifi: runtime: add send host command op to firmware runtime op struct

2018-10-01 Thread Luca Coelho
From: Shahar S Matityahu Add send host command op to firmware runtime op struct to allow sending host commands to the op mode from the fw runtime context. Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/runtime.h | 1 + drivers/net

[PATCH 06/16] iwlwifi: pcie: check iwl_pcie_txq_build_tfd() return value

2018-10-01 Thread Luca Coelho
es Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c index 67820bfaba64..f227b91098c9 100644 --- a/drivers/net/wireles

[PATCH 11/16] iwlwifi: mvm: decode HE information for MU (without ext info)

2018-10-01 Thread Luca Coelho
info type accordingly. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/api/rx.h | 8 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwi

[PATCH 13/16] iwlwifi: dbg: make iwl_fw_dbg_no_trig_window trigger agnostic

2018-10-01 Thread Luca Coelho
From: Sara Sharon As preparation for new trigger format, make the function agnostic to the trigger fomat. Instead it gets the relevant parameters - id and delay. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 10 -- 1 file

[PATCH 02/16] iwlwifi: add dump collection in case alive flow fails

2018-10-01 Thread Luca Coelho
From: Shahar S Matityahu Trigger dump collection if the alive flow fails, regardless of the reason. Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 27 ++- drivers/net/wireless/intel/iwlwifi/fw/dbg.h | 1

[PATCH 08/16] iwlwifi: bump firmware API version for 9000 and 22000 series devices

2018-10-01 Thread Luca Coelho
From: Johannes Berg Bump the firmware API version to 41. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/cfg/22000.c | 2 +- drivers/net/wireless/intel/iwlwifi/cfg/9000.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 05/16] iwlwifi: add fall through comment

2018-10-01 Thread Luca Coelho
From: Johannes Berg The fall-through to the MVM case is intended as we have to do *something* to continue, and can't easily clean up. So we'll just fail in mvm later, if this does happen. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi

[PATCH 16/16] iwlwifi: dbg: make trigger functions type agnostic

2018-10-01 Thread Luca Coelho
From: Sara Sharon As preparation for new trigger type, make iwl_fw_dbg_collect_desc agnostic to the trigger structure. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 37 ++-- drivers/net/wireless/intel/iwlwifi/fw/dbg.h

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

2018-10-01 Thread Luca Coelho
From: Luca Coelho Hi, Here's the sixth set of patches intended for v4.20. It's the usual development, some improvements, debugging and bugfixes. The changes are: * Bumped the FW API version supported after the last API change for this release; * Debugging improvements; * A few

[PATCH 04/16] iwlwifi: pcie gen2: check iwl_pcie_gen2_set_tb() return value

2018-10-01 Thread Luca Coelho
("iwlwifi: pcie: copy TX functions to new transport") Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c b/drivers/net/wirel

[PATCH 10/16] iwlwifi: add debugfs to send host command

2018-10-01 Thread Luca Coelho
and flags are 8 chars long each. length is 4 chars long. data is length * 2 chars long. Signed-off-by: Shahar S Matityahu Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/fw/debugfs.c | 64 +++ 1 file changed, 64 insertions(+) diff --git a/drivers/net/wireless/intel

[PATCH 01/16] iwlwifi: pcie: avoid empty free RB queue

2018-10-01 Thread Luca Coelho
the queues (and still run out of RBs, causing the above symptom). To fix it, move to emergency mode if the sum of *all* used RBs (for all Rx queues) reaches half the amount of all RB's Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/

[PATCH 03/16] iwlwifi: nvm: get num of hw addresses from firmware

2018-10-01 Thread Luca Coelho
tting the same address. Update the API to fix this. While at it, fix-up the comments with firmware api names to actually match what we have in the firmware. Fixes: e9e1ba3dbf00 ("iwlwifi: mvm: support getting nvm data from firmware") Signed-off-by: Naftali Goldstein Signed-off-

[PATCH 11/18] iwlwifi: mvm: put HE SIG-B symbols/users data correctly

2018-09-28 Thread Luca Coelho
From: Johannes Berg As detected by Luca during code review when I move this in the next patch, the code here is putting the data into the wrong field (flags1 instead of flags2). Fix that. Fixes: e5721e3f770f ("iwlwifi: mvm: add radiotap data for HE") Reported-by: Luca Coelho Sig

[PATCH 14/18] iwlwifi: mvm: move HE-MU LTF_NUM parsing to he_phy_data parsing

2018-09-28 Thread Luca Coelho
From: Johannes Berg This code gets shorter if it doesn't have to check all the conditions, so move it to an appropriate place that has all of them validated already. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

[PATCH 12/18] iwlwifi: mvm: pull some he_phy_data decoding into a separate function

2018-09-28 Thread Luca Coelho
From: Johannes Berg Pull some of the decoding of he_phy_data into a separate function so we don't need to check over and over again if it's valid. While at it, fix the UL/DL bit reporting to be for all but trigger- based frames. Signed-off-by: Johannes Berg Signed-off-by: L

[PATCH 16/18] iwlwifi: mvm: add LDPC-XSYM to HE radiotap data

2018-09-28 Thread Luca Coelho
From: Johannes Berg Add information about the LDCP extra symbol segment to the HE data when applicable (not for trigger-based PPDUs). While at it, clean up the code for UL/DL a bit. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

[PATCH 13/18] iwlwifi: mvm: clean up HE radiotap RU allocation parsing

2018-09-28 Thread Luca Coelho
From: Johannes Berg Split the code out into a separate routine, and move that to be called inside the previously introduced iwl_mvm_decode_he_phy_data() function. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 166

[PATCH 18/18] iwlwifi: mvm: set max TX/RX A-MPDU subframes to HE limit

2018-09-28 Thread Luca Coelho
From: Johannes Berg In mac80211, the default remains for HT, so set the limit to HE for our driver. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel

[PATCH 15/18] iwlwifi: mvm: add TXOP to HE radiotap data

2018-09-28 Thread Luca Coelho
From: Johannes Berg We have this data available, so add it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless

[PATCH 17/18] iwlwifi: mvm: add more information to HE radiotap

2018-09-28 Thread Luca Coelho
From: Johannes Berg For SU/SU-ER/MU PPDUs we have spatial reuse. For those where it's relevant we also know the pre-FEC padding factor, PE disambiguity bit, beam change bit and doppler bit. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwif

[PATCH 10/18] iwlwifi: mvm: minor cleanups to HE radiotap code

2018-09-28 Thread Luca Coelho
From: Johannes Berg Remove a stray empty line, unbreak some lines that aren't really that long, and move on variable setting into the initializer to avoid initializing it twice. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

[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/

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

2018-09-28 Thread Luca Coelho
rspective. Since we won't have 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/iwlwi

[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

[PATCH 00/18] wlwifi: updates intended for v4.20 2018-09-28

2018-09-28 Thread Luca Coelho
From: Luca Coelho Hi, Here's the fifth set of patches intended for v4.20. It's the usual development, mostly focused on radiotap HE, debugging and bugfixes. The changes are: * Fix for a race condition that caused the FW to crash; * HE radiotap cleanup and improvements; * Reord

[PATCH 05/18] iwlwifi: mvm: allow channel reorder optimization during scan

2018-09-28 Thread Luca Coelho
From: Ayala Beker Allow the FW to reorder HB channels and first scan HB channels with assumed APs, in order to reduce the scan duration. Currently enable it for all scan requests types. Signed-off-by: Ayala Beker Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/api

[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 03/18] iwlwifi: dbg: refactor dump code to improve readability

2018-09-28 Thread Luca Coelho
From: Sara Sharon Add a macro to replace all the conditions checking for valid dump length. In addition, move the fifo len calculation to a helper function. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 158 1

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

2018-09-27 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 o

[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 --- In

[PATCH 4.19] iwlwifi: 1000: set the TFD queue size

2018-09-25 Thread Luca Coelho
ned-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/cfg/1000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/cfg/1000.c b/drivers/net/wireless/intel/iwlwifi/cfg/1000.c index 591687984962..497fd766d87c 100644 --- a/drivers/net/wireless/intel/i

Re: disconnection regression in 4.17?

2018-09-20 Thread Luca Coelho
On Fri, 2018-09-14 at 12:36 +0200, Jason A. Donenfeld wrote: > Hi again, Hi Jason, > I can confirm that this issue is still present in 4.18. I'm receiving > very frequent disconnections: > > [ 304.707603] wlan0: deauthenticated from <> (Reason: > 6=CLASS2_FRAME_FROM_NONAUTH_STA) > > The last

[PATCH 11/16] iwlwifi: mvm: remove support for adjacent channel compensation

2018-09-09 Thread Luca Coelho
From: Emmanuel Grumbach We no longer want to consider the RSSI if the beacon / probe has been heard on an adjacent channel. This was based on a firmware capability that is now unavailable. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 14/16] iwlwifi: configure power scheme to balanced for 22560 devices

2018-09-09 Thread Luca Coelho
: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index d728b854be95..0599d323cbeb 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 13/16] iwlwifi: pcie: add infrastructure for multiple debug buffers

2018-09-09 Thread Luca Coelho
-off-by: Sara Sharon Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/iwl-trans.h| 17 +++ .../intel/iwlwifi/pcie/ctxt-info-gen3.c | 4 +- .../wireless/intel/iwlwifi/pcie/internal.h| 19 --- .../net/wireless/intel/iwlwifi/pcie/trans.c | 116 +- 4

[PATCH 16/16] iwlwifi: mvm: Allow TKIP for AP mode

2018-09-09 Thread Luca Coelho
From: Ilan Peer Support for setting keys for TKIP cipher suite was mistakenly removed for AP mode. Fix this. Fixes: 85aeb58cec1a ("iwlwifi: mvm: Enable security on new TX API") Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c |

[PATCH 15/16] iwlwifi: fix LED command capability bit

2018-09-09 Thread Luca Coelho
n the FW supports it") Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/file.h b/drivers/net/wireless/intel/iwlwifi/fw/fi

[PATCH 10/16] iwlwifi: mvm: TLC support for Coex Schema 2

2018-09-09 Thread Luca Coelho
From: Erel Geron The new coex schema requires setting the non-shared antenna for the single_stream_ant_msk field in the TLC command. Signed-off-by: Erel Geron Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/coex.c | 9 + drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 12/16] iwlwifi: pcie: support transmitting SKBs with fraglist

2018-09-09 Thread Luca Coelho
From: Johannes Berg We want to be able to build A-MSDUs in higher layers, e.g. by xmit_more, so support transmitting SKBs with fraglist to use it for such. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 8 1 file changed, 8

[PATCH 08/16] iwlwifi: mvm: use correct FIFO length

2018-09-09 Thread Luca Coelho
From: Sara Sharon Current FIFO size calculation is wrong for two reasons: - We access lmac 0 by default - We don't take 11ax into consideration. Fix both. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 4 ++ drivers/net/wir

[PATCH 09/16] iwlwifi: mvm: set wep key for all stations in soft ap mode

2018-09-09 Thread Luca Coelho
going out un-encrypted. Fix it by configuring the key for all the stations as they are added. Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/mvm/mac80211.c | 29 ++- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 1 + drivers/net

[PATCH 06/16] iwlwifi: mvm: do not override amsdu size user settings

2018-09-09 Thread Luca Coelho
From: Shaul Triebitz Since AMSDUs are not de-aggregated by HW in monitor mode, we still need the option for setting large RBs (up to 12K). Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 20 1 file changed, 12

[PATCH 04/16] iwlwifi: pcie: Fail fast if HW is inaccessible at probe

2018-09-09 Thread Luca Coelho
1:00.0: iwlwifi device config registers: Signed-off-by: Rajat Jain Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/t

[PATCH 07/16] iwlwifi: pcie: set RB size according to user settings

2018-09-09 Thread Luca Coelho
From: Shaul Triebitz RB size can be configured by user to be greater than 4K. That's needed for monitor to capture big AMSDUs. The firmware now enables different RB sizes configuration via context info. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- .../wireless/intel/iw

[PATCH 01/16] iwlwifi: pcie: gen2: build A-MSDU only for GSO

2018-09-09 Thread Luca Coelho
AMSDU to gen2") Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c b/drivers/net/wireless/intel/iwlwifi/pcie

[PATCH 02/16] iwlwifi: pcie: tx: unify TFD unmapping

2018-09-09 Thread Luca Coelho
From: Johannes Berg When anything fails, we unmap the whole TFD in three different places scattered throughout the code. Unify this to a single place. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 28 +--- 1 file

[PATCH 05/16] iwlwifi: pcie: fit reclaim msg to MAX_MSG_LEN

2018-09-09 Thread Luca Coelho
message a bit so it will fit the allowed MAX_MSG_LEN. Signed-off-by: Golan Ben Ami Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c b/drivers/net/wire

[PATCH 03/16] iwlwifi: pcie: tx: pull tracing out of iwl_fill_data_tbs()

2018-09-09 Thread Luca Coelho
From: Johannes Berg This will allow us to reuse the function later for adding fraglist SKBs to the TFD. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 41 ++-- 1 file changed, 21 insertions(+), 20 deletions(-) diff

[PATCH 00/16] iwlwifi: updates intended for v4.20 2018-09-09

2018-09-09 Thread Luca Coelho
From: Luca Coelho Hi, Here's the fifth set of patches intended for v4.20. It's the usual development, with some small new features, cleanups and bugfixes. The changes are: * Fix one FW feature TLV that had a conflict with another value; * A couple of fixes for SoftAP mode; * Work

Re: [PATCH 14/15] iwlwifi: mvm: Send LQ command as async when necessary

2018-09-06 Thread Luca Coelho
On Thu, 2018-09-06 at 16:22 +0800, Hao Wei Tee wrote: > Hi, Hi Hao Wei, > On 21/8/18 2:36 PM, Luca Coelho wrote: > > From: Avraham Stern > > > > The parameter that indicated whether the LQ command should be sent > > as sync or async was removed, causing the LQ

[RESEND PATCH v2 7/9] cfg80211: reg: Init wiphy_idx in regulatory_hint_core()

2018-09-04 Thread Luca Coelho
From: Andrei Otcheretianski Core regulatory hints didn't set wiphy_idx to WIPHY_IDX_INVALID. Since the regulatory request is zeroed, wiphy_idx was always implicitly set to 0. This resulted in updating only phy #0. Fix that. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca C

[RESEND PATCH v2 1/9] mac80211: support reporting 0-length PSDU in radiotap

2018-09-04 Thread Luca Coelho
ebitz Signed-off-by: Luca Coelho --- include/net/ieee80211_radiotap.h | 6 ++ include/net/mac80211.h | 7 +++ net/mac80211/rx.c| 12 +++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/include/net/ieee80211_radiotap.h b/includ

[RESEND PATCH v2 8/9] mac80211: Always report TX status

2018-09-04 Thread Luca Coelho
by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- net/mac80211/status.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 9a6d7208bf4f..001a869c059c 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c

[RESEND PATCH v2 5/9] mac80211: allow AMSDU size limitation per-TID

2018-09-04 Thread Luca Coelho
From: Sara Sharon Some drivers may have AMSDU size limitation per TID, due to HW constrains. Add an option to set this limit. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- include/net/mac80211.h | 2 ++ net/mac80211/tx.c | 4 2 files changed, 6 insertions(+) diff --git

[RESEND PATCH v2 0/9] cfg80211/mac80211: reworked patches from our internal tree 2018-08-31

2018-09-04 Thread Luca Coelho
From: Luca Coelho Hi, [I'm resending this set again due to the corrupted X-SA headers in the previous attempts. I have now removed all the X-SA headers and hopefully it will work fine. Please let me know if you still have issues with it.] I'm resending the patches that came out

[RESEND PATCH v2 3/9] wireless: align to draft 11ax D3.0

2018-09-04 Thread Luca Coelho
From: Shaul Triebitz Align to new 11ax draft D3.0. Change/add new MAC and PHY capabilities and update drivers' 11ax capabilities and mac80211's debugfs accordingly. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- .../wireless/intel/iwlwifi/iwl-nvm-parse

[RESEND PATCH v2 6/9] mac80211: add an option for drivers to check if packets can be aggregated

2018-09-04 Thread Luca Coelho
From: Sara Sharon Some hardwares have limitations on the packets' type in AMSDU. Add an optional driver callback to determine if two skbs can be used in the same AMSDU or not. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- include/net/mac80211.h| 7 +++ net/mac

[RESEND PATCH v2 2/9] mac80211: fix saving a few HE values

2018-09-04 Thread Luca Coelho
2_get_bits()] Signed-off-by: Luca Coelho --- net/mac80211/mlme.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 1bd714376635..3b1b7a77fa7d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3173,1

[RESEND PATCH v2 4/9] mac80211: add an option for station management TXQ

2018-09-04 Thread Luca Coelho
: Luca Coelho --- include/net/mac80211.h | 5 + net/mac80211/debugfs.c | 1 + net/mac80211/tx.c | 14 +++--- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 50bf598abdfd..fe71cec8ba42 100644 --- a/include/net

[RESEND PATCH v2 9/9] mac80211: Don't wake up from PS for offchannel TX

2018-09-04 Thread Luca Coelho
From: Andrei Otcheretianski Otherwise the offchannel frame might be queued due to IEEE80211_QUEUE_STOP_REASON_PS and later dropped (in ieee80211_tx_frags()). Anyway, it doesn't make much sense to wake up the device during ROC. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca C

Re: [PATCH v2 9/9] mac80211: Don't wake up from PS for offchannel TX

2018-09-04 Thread Luca Coelho
On Tue, 2018-09-04 at 14:10 +0200, Johannes Berg wrote: > On Tue, 2018-09-04 at 14:07 +0200, Sven Eckelmann wrote: > > On Dienstag, 4. September 2018 14:40:55 CEST Luca Coelho wrote: > > > ) > > > Sender: linux-wireless-ow...@vger.kernel.org > > > Precedence:

Re: [PATCH 12/16] iwlwifi: mvm: enable sending HE_AIR_SNIFFER command via debugfs

2018-09-04 Thread Luca Coelho
On Mon, 2018-09-03 at 09:25 +0200, Arend van Spriel wrote: > On 8/31/2018 11:56 AM, Luca Coelho wrote: > > 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.

[PATCH v2 1/9] mac80211: support reporting 0-length PSDU in radiotap

2018-09-04 Thread Luca Coelho
ebitz Signed-off-by: Luca Coelho --- include/net/ieee80211_radiotap.h | 6 ++ include/net/mac80211.h | 7 +++ net/mac80211/rx.c| 12 +++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/include/net/ieee80211_radiotap.h b/includ

[PATCH v2 0/9] cfg80211/mac80211: reworked patches from our internal tree 2018-08-31

2018-09-04 Thread Luca Coelho
From: Luca Coelho Hi, I'm resending the patches that came out corrupted, excluding patch 22 that was already in and with 19 and 20 reworked. I've left 9 and 12 out for now, because they still need to be reworked according to your comments. Please review. Cheers, Luca. Andrei Otch

[PATCH v2 7/9] cfg80211: reg: Init wiphy_idx in regulatory_hint_core()

2018-09-04 Thread Luca Coelho
From: Andrei Otcheretianski Core regulatory hints didn't set wiphy_idx to WIPHY_IDX_INVALID. Since the regulatory request is zeroed, wiphy_idx was always implicitly set to 0. This resulted in updating only phy #0. Fix that. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca C

[PATCH v2 4/9] mac80211: add an option for station management TXQ

2018-09-04 Thread Luca Coelho
: Luca Coelho --- include/net/mac80211.h | 5 + net/mac80211/debugfs.c | 1 + net/mac80211/tx.c | 14 +++--- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 50bf598abdfd..fe71cec8ba42 100644 --- a/include/net

[PATCH v2 6/9] mac80211: add an option for drivers to check if packets can be aggregated

2018-09-04 Thread Luca Coelho
From: Sara Sharon Some hardwares have limitations on the packets' type in AMSDU. Add an optional driver callback to determine if two skbs can be used in the same AMSDU or not. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- include/net/mac80211.h| 7 +++ net/mac

[PATCH v2 8/9] mac80211: Always report TX status

2018-09-04 Thread Luca Coelho
by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- net/mac80211/status.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 9a6d7208bf4f..001a869c059c 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c

[PATCH v2 9/9] mac80211: Don't wake up from PS for offchannel TX

2018-09-04 Thread Luca Coelho
From: Andrei Otcheretianski Otherwise the offchannel frame might be queued due to IEEE80211_QUEUE_STOP_REASON_PS and later dropped (in ieee80211_tx_frags()). Anyway, it doesn't make much sense to wake up the device during ROC. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca C

[PATCH v2 2/9] mac80211: fix saving a few HE values

2018-09-04 Thread Luca Coelho
2_get_bits()] Signed-off-by: Luca Coelho --- net/mac80211/mlme.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 1bd714376635..3b1b7a77fa7d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3173,1

[PATCH v2 5/9] mac80211: allow AMSDU size limitation per-TID

2018-09-04 Thread Luca Coelho
From: Sara Sharon Some drivers may have AMSDU size limitation per TID, due to HW constrains. Add an option to set this limit. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- include/net/mac80211.h | 2 ++ net/mac80211/tx.c | 4 2 files changed, 6 insertions(+) diff --git

[PATCH v2 3/9] wireless: align to draft 11ax D3.0

2018-09-04 Thread Luca Coelho
From: Shaul Triebitz Align to new 11ax draft D3.0. Change/add new MAC and PHY capabilities and update drivers' 11ax capabilities and mac80211's debugfs accordingly. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- .../wireless/intel/iwlwifi/iwl-nvm-parse

Re: [PATCH 12/28] cfg80211: add he_capabilities (ext) IE to AP settings

2018-09-04 Thread Luca Coelho
On Mon, 2018-09-03 at 10:56 +0200, Johannes Berg wrote: > On Fri, 2018-08-31 at 11:31 +0300, Luca Coelho wrote: > > > > + cap = cfg80211_find_ext_ie(WLAN_EID_EXT_HE_CAPABILITY, ies, > > ies_len); > > + if (cap && cap[1] >= sizeof(*params->he_cap) +

Re: [PATCH 28/28] mac80211: Don't wake up from PS for offchannel TX

2018-08-31 Thread Luca Coelho
On Fri, 2018-08-31 at 11:21 -0700, Peter Oh wrote: > > On 08/31/2018 01:31 AM, Luca Coelho wrote: > > ) > > > > From: Andrei Otcheretianski > > > > Otherwise the offchannel frame might be queued due to > > IEEE80211_QUEUE_STOP_REASON_PS and later drop

Re: [PATCH 21/28] wireless: align to draft 11ax D3.0

2018-08-31 Thread Luca Coelho
On Fri, 2018-08-31 at 14:21 +0300, Kalle Valo wrote: > Kalle Valo writes: > > > Luca Coelho writes: > > > > > ) > > > > > > From: Shaul Triebitz > > > > That ')' in the first line doesn't look correct and don't kn

[PATCH 12/16] iwlwifi: mvm: enable sending HE_AIR_SNIFFER command via debugfs

2018-08-31 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

[PATCH 14/16] iwlwifi: mvm: Support TKIP on gen2 data path

2018-08-31 Thread Luca Coelho
n the set_key() callback so that the key flags would not be incorrectly set. Signed-off-by: David Spinadel Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 11 +-- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 9 +++

[PATCH 11/16] iwlwifi: mvm: cleanup dead code on resume flow for non unified image.

2018-08-31 Thread Luca Coelho
From: "Dreyfuss, Haim" CDB support has nothing to do with non unified image. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/ne

[PATCH 15/16] iwlwifi: api: annotate compressed BA notif array sizes

2018-08-31 Thread Luca Coelho
-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/fw/api/tx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h b/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h index 135135d80d4d..358bdf051e83 100644 --- a/drivers/net

[PATCH 13/16] iwlwifi: pcie: read correct prph address for newer devices

2018-08-31 Thread Luca Coelho
From: Sara Sharon For newer devices we have higher range of periphery addresses. Currently it is masked out, so we end up reading another address. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 16 ++-- 1 file changed

[PATCH 10/16] iwlwifi: fix non_shared_ant for 22000 devices

2018-08-31 Thread Luca Coelho
From: Erel Geron The non-shared antenna was wrong for 22000 device series. Fix it to ANT_B for correct antenna preference by coex in MVM driver. Fixes: e34d975e40ff ("iwlwifi: Add a000 HW family support") Signed-off-by: Erel Geron Signed-off-by: Luca Coelho --- drivers/net/wire

<    5   6   7   8   9   10   11   12   13   14   >