[PATCH 02/25] iwlwifi: mvm: fix accessing fw_id_to_mac_id

2017-04-18 Thread Luca Coelho
From: Sara Sharon Access should be by rcu_dereference. Issue was found by sparse. Fixes: 65e254821cee ("iwlwifi: mvm: use firmware station PM notification for AP_LINK_PS") Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

[PATCH 04/25] iwlwifi: mvm: support new TX response for TVQM

2017-04-18 Thread Luca Coelho
From: Sara Sharon In TVQM mode the TX responses were changed to include queue number since legacy TX queue number retrieval cannot be scaled up to 512 queues. Support this change. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api-tx.h

[PATCH 07/25] iwlwifi: mvm: do not turn on RX_FLAG_AMSDU_MORE

2017-04-18 Thread Luca Coelho
From: Sara Sharon This flag is used for mac80211 reordering. As we do reordering ourselves, turning it on is misleading and pointless. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a

[PATCH 06/25] iwlwifi: mvm: remove unneeded reg write in iwl_mvm_up()

2017-04-18 Thread Luca Coelho
From: Liad Kaufman Not only that this write is not needed (as FW does this itself), on newer HW this register is write protected so trying to write there will cause problems. Signed-off-by: Liad Kaufman Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 3

[PATCH 01/25] iwlwifi: mvm: remove unnecessary label in iwl_mvm_handle_rx_statistics()

2017-04-18 Thread Luca Coelho
From: Luca Coelho The "invalid" label was a bit ugly and unnecessary. Remove it. Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rx.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rx.c

[PATCH 09/25] iwlwifi: mvm: change TX_CMD_SEC_KEY_FROM_TABLE value

2017-04-18 Thread Luca Coelho
From: David Spinadel Change the value of TX_CMD_SEC_KEY_FROM_TABLE flag in TX_CMD security flags to accommodate a FW API change. Bump min API for 9000 series devices to 30 to keep the driver aligned aligned the FW. Signed-off-by: David Spinadel Signed-off-by: Luca Coelho --- drivers/net

[PATCH 03/25] iwlwifi: pcie: get rid of txq id assignment

2017-04-18 Thread Luca Coelho
From: Sara Sharon In TVQM mode the queue ID is assigned after enablement. Get rid of assuming pre-defined TX queue ID in functions that will be used by TVQM allocation path. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 4

[PATCH 08/25] iwlwifi: mvm: work around HW issue with AMSDU de-aggregation

2017-04-18 Thread Luca Coelho
From: Sara Sharon Seems like HW is reversing addr3 in the MAC header of de-aggregated AMSDU. Reverse it back. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net

[PATCH 05/25] iwlwifi: move to TVQM mode

2017-04-18 Thread Luca Coelho
Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-trans.h| 38 --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 3 + drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 124 -- drivers/net/wireless/intel/iwlwifi/mvm/utils.c| 63

[PATCH 15/25] iwlwifi: pcie: remove RSA race workaround

2017-04-18 Thread Luca Coelho
From: Luca Coelho This workaround is not needed anymore. Remove it. Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 46 - 1 file changed, 46 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net

[PATCH 17/25] iwlwifi: mvm: support init extended command

2017-04-18 Thread Luca Coelho
-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | 23 +++ drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 15 +++ drivers/net/wireless/intel/iwlwifi/mvm/ops.c| 1 + 3 files changed, 39 insertions(+) diff

[PATCH 12/25] iwlwifi: add four new 8265 and 8275 series PCI IDs

2017-04-18 Thread Luca Coelho
From: Tzipi Peres Add one new PCI ID for the 8265 series. Add three new PCI ID for the 8275 series. Signed-off-by: Tzipi Peres Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel

[PATCH 16/25] iwlwifi: mvm: add GEO_TX_POWER_LIMIT cmd for geographic tx power table

2017-04-18 Thread Luca Coelho
power. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- .../net/wireless/intel/iwlwifi/mvm/fw-api-power.h | 43 +++- drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h| 1 + drivers/net/wireless/intel/iwlwifi/mvm/fw.c| 112 + drivers/net/wireless

[PATCH 18/25] iwlwifi: mvm: disable RX queue notification for a000 devices

2017-04-18 Thread Luca Coelho
From: Sara Sharon For a000 devices, we don't really have multi RX queue for now, until we have the RX queue configuration API. Disable RX queue notification for now. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 ++- 1

[PATCH 24/25] iwlwifi: bump API to 31

2017-04-18 Thread Luca Coelho
From: Emmanuel Grumbach Omit 7265D and 3168 since those are now stuck on 30. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-8000.c | 4 ++-- drivers/net/wireless/intel/iwlwifi/iwl-9000.c | 2 +- drivers/net/wireless/intel/iwlwifi/iwl

[PATCH 22/25] iwlwifi: mvm: support changing band for phy context

2017-04-18 Thread Luca Coelho
Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c | 21 - 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h b/drivers/net/wireless

[PATCH 11/25] iwlwifi: mvm: provide the actual number of frames for the SP len

2017-04-18 Thread Luca Coelho
From: Emmanuel Grumbach In the end, the firmware doesn't want the SP len as present in the WMM IE, but rather the actual number of frames. Fixes: bd3c6cf901a8 ("iwlwifi: mvm: tell the firmware about the U-APSD parameters") Signed-off-by: Emmanuel Grumbach Signed-off-

[PATCH 14/25] iwlwifi: support a000 CDB product

2017-04-18 Thread Luca Coelho
From: Sara Sharon Identify and load FW for a000 CDB product. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-a000.c | 20 drivers/net/wireless/intel/iwlwifi/iwl-config.h | 5 - drivers/net/wireless/intel/iwlwifi

[PATCH 19/25] iwlwifi: mvm: dump frames early on invalid rate

2017-04-18 Thread Luca Coelho
From: Sara Sharon Currently when rate isn't found (invalid rate or CCK rate in high band) driver is assigning rate -1, which causes mac80211 to dump it later with the cryptic rate value of 0xFF. Instead, warn early and dump the frame in mvm. Signed-off-by: Sara Sharon Signed-off-by:

[PATCH 10/25] iwlwifi: mvm: ignore BAID for SN smaller than SSN

2017-04-18 Thread Luca Coelho
: mvm: add reorder buffer per queue") Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 ++ drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 30 +-- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 1 + 3 fi

[PATCH 20/25] iwlwifi: split the handler and the wake parts of the notification infra

2017-04-18 Thread Luca Coelho
schedule_work(async_handlers_wk); iwl_notification_notify() iwl_mvm_wait_for_async_handlers() This way, the waiter is guaranteed that all the handlers have been run (if SYNC), or at least enqueued (if ASYNC) by the time it wakes up. Signed-off-by: Emmanuel Grumbach Signed-

[PATCH 21/25] iwlwifi: mvm: flip address 4 of AMSDU frames

2017-04-18 Thread Luca Coelho
From: Sara Sharon Address 4 is reversed as well. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net

[PATCH 13/25] iwlwifi: mvm: support change to a000 smem API

2017-04-18 Thread Luca Coelho
From: Sara Sharon API was changed once more to support 2 LMACs. Adapt to change while preserving current functionality. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 2 + drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | 41

[PATCH 23/25] iwlwifi: a000: fix memory offsets and lengths

2017-04-18 Thread Luca Coelho
From: Liad Kaufman Memory offsets and lengths for A000 HW is different than currently specified. Fixes: e34d975e40ff ("iwlwifi: Add a000 HW family support") Signed-off-by: Liad Kaufman Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-a000.c | 6 +++--- 1 file

[PATCH 25/25] iwlwifi: mvm: allow block ack response without data

2017-04-18 Thread Luca Coelho
From: Sara Sharon When FW fails to get block ack, it will send the notification with 0 items in the TFD queue elements. Allow this and handle accordingly. Fixes: c46e7724bfe9 ("iwlwifi: mvm: support new BA notification response") Signed-off-by: Sara Sharon Signed-off-by: L

pull-request: iwlwifi-next 2017-04-19

2017-04-19 Thread Luca Coelho
g write in iwl_mvm_up() iwlwifi: a000: fix memory offsets and lengths Luca Coelho (5): iwlwifi: mvm: spin off SAR profile selection function iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table iwlwifi: mvm: remove unnecessary debugging from UMAC scan iwlwifi: m

Re: pull-request: iwlwifi-next 2017-04-19

2017-04-19 Thread Luca Coelho
On Wed, 2017-04-19 at 22:34 +0300, Luca Coelho wrote: > Hi Kalle, > > Here's my second pull-request intended for v4.12. It includes the last > two patch series I sent out, namely 2017-04-13 and 2017-04-19. > > This pull request has a small difference from the patch sets

[PATCH 0/2] iwlwifi: a couple of fixes intended for 4.12

2017-04-19 Thread Luca Coelho
From: Luca Coelho Hi, These two patches by Johannes fix one patch that was included in my pull-req with tag iwlwifi-next-for-kalle-2017-04-13 (which you already pulled). I'll include them in my new pull-req. Cheers, Luca. Johannes Berg (2): iwlwifi: pcie: fix mutex leak in gen2

[PATCH 1/2] iwlwifi: pcie: fix mutex leak in gen2 start

2017-04-19 Thread Luca Coelho
From: Johannes Berg If the context info fails to be allocated, the mutex isn't unlocked properly, fix that. Fixes: eda50cde58de ("iwlwifi: pcie: add context information support") Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pc

[PATCH 2/2] iwlwifi: pcie: free context info in case of failures

2017-04-19 Thread Luca Coelho
rg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c b/drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c index 854d61888f4d..1d95512361b2 10

pull-request: iwlwifi-next 2017-04-19-2

2017-04-19 Thread Luca Coelho
offsets and lengths Luca Coelho (5): iwlwifi: mvm: spin off SAR profile selection function iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table iwlwifi: mvm: remove unnecessary debugging from UMAC scan iwlwifi: mvm: remove unnecessary label in iwl_mvm_handle_rx_statis

Re: pull-request: iwlwifi-next 2017-04-19-2

2017-04-19 Thread Luca Coelho
On Thu, 2017-04-20 at 07:59 +0300, Luca Coelho wrote: > Here's v2 of my second pull-request intended for v4.12. It includes the > last three patch series I sent out, namely 2017-04-13, 2017-04-19 and > the 2 fixes by Johannes that I sent a few minutes ago. > > I also removed

Re: pull-request: iwlwifi-next 2017-04-19-2

2017-04-20 Thread Luca Coelho
On Thu, 2017-04-20 at 09:55 +0300, Kalle Valo wrote: > Luca Coelho writes: > diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-a000.c > > b/drivers/net/wireless/intel/iwlwifi/iwl-a000.c > > index 6d745c36f1d8..097cb45c8ad9 100644 > > --- a/drivers/net/wireless/intel/iwlw

Re: 4.11-rc* iwlwifi instable

2017-04-23 Thread Luca Coelho
On Sun, 2017-04-23 at 17:54 -0700, Andi Kleen wrote: > Hi, Hi Andi, > Since I updated my laptop to 4.11-rc* the wireless is fairly instable > (I think it was already less stable with 4.10 than with 4.8, but no > clear data) > > For example it locked up (no more wireless) with a warn on while c

Re: 4.11-rc* iwlwifi instable

2017-04-24 Thread Luca Coelho
On Mon, 2017-04-24 at 05:40 -0700, Andi Kleen wrote: > > > Any fixes/workarounds? > > > > It seems that you are using an old firmware version: > > > > > [70585.074356] iwlwifi :03:00.0: Loaded firmware version: 21.302800.0 > > > > We have already published version -27 for 4.11 and you're sti

Re: 4.11-rc* iwlwifi instable

2017-04-25 Thread Luca Coelho
On Mon, 2017-04-24 at 12:05 -0700, Andi Kleen wrote: > On Mon, Apr 24, 2017 at 09:52:28PM +0300, Luca Coelho wrote: > > On Mon, 2017-04-24 at 05:40 -0700, Andi Kleen wrote: > > > > > Any fixes/workarounds? > > > > > > > > It

[PATCH 07/25] iwlwifi: mvm: avoid variable shadowing

2017-04-25 Thread Luca Coelho
From: Johannes Berg Remove an extra variable 'queue' that already exists. Also, since there are no code paths that use 'queue' without intializing it, remove the unnecessary zero initialization. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wi

[PATCH 09/25] iwlwifi: mvm: don't reserve queue in TVQM mode

2017-04-25 Thread Luca Coelho
From: Sara Sharon The reserved queue is never used, save the trouble. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 6 +- drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 7 --- 2 files changed, 9 insertions(+), 4 deletions

[PATCH 01/25] iwlwifi: mvm: support new rate flags

2017-04-25 Thread Luca Coelho
From: Sara Sharon Rates were changed to adapt to HE. Change is backward compatible. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rs.h | 28 +- drivers/net/wireless/intel/iwlwifi/mvm/rs.c| 11

[PATCH 02/25] iwlwifi: mvm: make iwl_run_unified_mvm_ucode() static

2017-04-25 Thread Luca Coelho
From: Johannes Berg There's no need to have iwl_run_unified_mvm_ucode() be exposed to other parts of the code since the logic to pick it over the normal code in iwl_run_init_mvm_ucode() can just be done in that function itself. Signed-off-by: Johannes Berg Signed-off-by: Luca C

[PATCH 06/25] iwlwifi: mvm: freeze 7265D and 3168 on API version 29

2017-04-25 Thread Luca Coelho
From: Dor Shaish iwl7265D and iwl3168 are frozen on API version 29. Set the MAX API allowed level to 29 from now on. Signed-off-by: Dor Shaish Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-7000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 03/25] iwlwifi: mvm: check if returned value is NULL

2017-04-25 Thread Luca Coelho
From: Sharon Dvir While freeing inactive queue, check mvmsta to be valid before dereferencing it. Found by Klocwork. Signed-off-by: Sharon Dvir Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net

[PATCH 00/25] iwlwifi: updates intended for v4.12 2017-04-25

2017-04-25 Thread Luca Coelho
From: Luca Coelho Hi, One more patch set intended for v4.12. These are the changes: * The firmware for 7265D and 3168 NICs is frozen at version 29; * Sari continues working heavily on support for A000 series; * A bunch of fixes; * Some cleanups here and there; As usual, I'm pushing

[PATCH 08/25] iwlwifi: pcie: support debug applying on a000 hw

2017-04-25 Thread Luca Coelho
From: Liad Kaufman Allow configuring debug destination on a000 HW. Signed-off-by: Liad Kaufman Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c | 4 drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 1 + drivers/net/wireless/intel/iwlwifi/pcie

[PATCH 05/25] iwlwifi: mvm: handle possible BIOS bug

2017-04-25 Thread Luca Coelho
From: Sharon Dvir In iwl_mvm_sar_get_ewrd_table() In case of a BIOS bug, n_profiles might be 0 thus we need to return an error value. Found by Klocwork. Signed-off-by: Sharon Dvir Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 6 ++ 1 file changed, 6

[PATCH 04/25] iwlwifi: mvm: scan: avoid "big" prints

2017-04-25 Thread Luca Coelho
From: Mordechai Goodstein Delete the scanned channel results. No need in it we get it any way when logging. The print only clogs up the ftrace print buffer. Signed-off-by: Mordechai Goodstein Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 31

[PATCH 15/25] iwlwifi: pcie: remove superfluous trans->dev assignment

2017-04-25 Thread Luca Coelho
From: Johannes Berg This struct member is already assigned in the previous call to iwl_trans_alloc(), so assigning the same value again is superfluous - remove it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 1 - 1 file

[PATCH 14/25] iwlwifi: mvm: use defines instead of variables for shared dwell times

2017-04-25 Thread Luca Coelho
From: Sara Sharon Most of the dwells are constant across different scan types. Use defines instead of depending on scan type. This is needed as preparation to having different scan type per band. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm

[PATCH 21/25] iwlwifi: move to 512 queues

2017-04-25 Thread Luca Coelho
From: Sara Sharon Avoid using the old define since it will enlarge necessary structs for previous HW. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-a000.c | 2 +- drivers/net/wireless/intel/iwlwifi/iwl-config.h| 2 +- drivers/net

[PATCH 13/25] iwlwifi: mvm: remove color definition

2017-04-25 Thread Luca Coelho
From: Sara Sharon We use the full station field as sta_id, and never use the color. FW are about to clean the color out, so those defines are incorrect now (and were redundant before). Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api

[PATCH 18/25] iwlwifi: gen2: support nmi triggering from host

2017-04-25 Thread Luca Coelho
From: Liad Kaufman For gen2 there is a new register. Signed-off-by: Liad Kaufman Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-io.c | 3 +++ drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/net/wireless

[PATCH 17/25] iwlwifi: remove module loading failure message

2017-04-25 Thread Luca Coelho
ter causes a deadlock instead, so that's not an option. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net/wirele

[PATCH 16/25] iwlwifi: don't leak memory on allocation failure

2017-04-25 Thread Luca Coelho
actually have been) use it for various reasons. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-drv.c b/drivers/net

[PATCH 11/25] iwlwifi: mvm: map cab_queue to different txq_id

2017-04-25 Thread Luca Coelho
-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 5 + drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 ++ drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 4 ++-- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 ++ 4 files

[PATCH 20/25] iwlwifi: mvm: support station type API

2017-04-25 Thread Luca Coelho
er of adding and removing the stations according to FW requirements. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h | 2 + .../net/wireless/intel/iwlwifi/mvm/fw-api-mac.h| 5 +- .../net/wireless/intel/iwlwifi/mvm/fw-api-sta.h

[PATCH 23/25] iwlwifi: mvm: memset binding before setting values

2017-04-25 Thread Luca Coelho
From: Sara Sharon The changes in commit 9415af7f306b ("iwlwifi: mvm: support new binding API") assigned values that were later memset to 0. Move the memset earlier. Fixes: 9415af7f306b ("iwlwifi: mvm: support new binding API") Signed-off-by: Sara Sharon Signed

[PATCH 19/25] iwlwifi: mvm: remove references to queue_info in new TX path

2017-04-25 Thread Luca Coelho
paths that shouldn't be hit. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 4 +- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 4 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 96 +++--- drivers/ne

[PATCH 24/25] iwlwifi: pcie: apply no-reclaim logic only to group 0

2017-04-25 Thread Luca Coelho
her groups. Reported-by: Sharon Dvir Reported-by: Shaul Triebitz Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c b/drivers/ne

[PATCH 12/25] iwlwifi: mvm: move internally to use bigger INVALID_TXQ

2017-04-25 Thread Luca Coelho
ff-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 ++ drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 12 ++-- drivers/net/wireless/intel/iwlwifi/mvm/tx.c

[PATCH 10/25] iwlwifi: mvm: Ignore wifi mcc update in the driver while associated

2017-04-25 Thread Luca Coelho
, depends on the association state. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 1 + drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 9 ++-- drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 29 ++ 3

[PATCH 22/25] iwlwifi: rename wait_for_tx_queues_empty

2017-04-25 Thread Luca Coelho
From: Sara Sharon Rename current wait_tx_queue_empty to wait_tx_queues_empty since it waits for multiple queues (up to 32). Next patch will add a wait for single TX queue which is needed for gen2 to be scalable for 512. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho --- drivers/net

[PATCH 25/25] iwlwifi: adjust NVM parsing APIs for new a000 method

2017-04-25 Thread Luca Coelho
-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 32 +- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h | 16 ++- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b

Re: 4.11-rc* iwlwifi instable

2017-04-25 Thread Luca Coelho
On Wed, 2017-04-26 at 09:10 +0300, Kalle Valo wrote: > Luca Coelho writes: > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/iwlwifi-7265D-27.ucode > > > > > > > > We have loads of fixes and improvements in t

[PATCH 0/9] cfg80211/mac80211 patches from our internal tree 2017-04-26

2017-04-26 Thread Luca Coelho
From: Luca Coelho Hi, Here are some mac80211 and cfg80211 patches from our internal tree. * New AKM suite selectors in the ieee80211 header; * Some improvements in the roaming API in cfg80211; * Support for max BSS idle period in mac80211; * Some cleanups and an optimization; Please

[PATCH 3/9] ieee80211: add FT-802.1X AKM suite selector

2017-04-26 Thread Luca Coelho
From: Luca Coelho Add the definition for FT-8021.1X AKM selector as defined in IEEE Std 802.11-2016, table 9-133. Signed-off-by: Luca Coelho --- include/linux/ieee80211.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index

[PATCH 6/9] mac80211: don't parse encrypted management frames in ieee80211_frame_acked

2017-04-26 Thread Luca Coelho
Signed-off-by: Luca Coelho --- net/mac80211/status.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 83b8b11f24ea..fac191d6dcb7 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -200,6 +200,7 @@ static void

[PATCH 4/9] cfg80211: unify cfg80211_roamed() and cfg80211_roamed_bss()

2017-04-26 Thread Luca Coelho
or the bss entry can be passed as an argument to the unified function. Signed-off-by: Avraham Stern [modified the ath6k, brcm80211, rndis and wlan-ng drivers accordingly] Signed-off-by: Luca Coelho --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 10 ++- .../broadcom/brcm80211/brcmfmac

[PATCH 1/9] ieee80211: add SUITE_B AKM selectors

2017-04-26 Thread Luca Coelho
From: Luca Coelho Add the definitions for SUITE_B and SUITE_B_192 AKM selectors as defined in IEEE802.11REVmc_D5.0, table 9-132. Signed-off-by: Luca Coelho --- include/linux/ieee80211.h | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/include

[PATCH 9/9] mac80211: make multicast variable a bool in ieee80211_accept_frame()

2017-04-26 Thread Luca Coelho
From: Luca Coelho The multicast variable in the ieee80211_accept_frame() function is treated as a boolean, but defined as int. Fix that. Signed-off-by: Luca Coelho --- net/mac80211/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c

[PATCH 8/9] mac80211: disentangle iflist_mtx and chanctx_mtx

2017-04-26 Thread Luca Coelho
From: Johannes Berg At least on iwlwifi, sometimes lockdep complains that we can lock chanctx_mtx -> mvm.mutex -> iflist_mtx (due to iterate_interfaces) and iflist_mtx -> chanctx_mtx Remove the latter dependency in mac80211 by using the RTNL that we already hold in one case, and can relativel

[PATCH 5/9] cfg80211/nl80211: add authorized flag to roaming event

2017-04-26 Thread Luca Coelho
Signed-off-by: Luca Coelho --- include/net/cfg80211.h | 4 include/uapi/linux/nl80211.h | 14 ++ net/wireless/nl80211.c | 4 +++- net/wireless/sme.c | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/include/net/cfg80211.h b/include/net

[PATCH 2/9] mac80211: Add support for BSS max idle period element

2017-04-26 Thread Luca Coelho
IEEE802.11-2016, section 9.4.2.79 Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- include/linux/ieee80211.h | 28 +++- include/net/mac80211.h | 14 +- net/mac80211/ieee80211_i.h | 1 + net/mac80211/mlme.c| 14 +- net/mac80211

[PATCH 7/9] ieee80211: fix kernel-doc parsing errors

2017-04-26 Thread Luca Coelho
From: Johannes Berg Some of the enum definitions are unnamed but there's still an attempt at documenting them - that doesn't work. Name them to make that work. Signed-off-by: Johannes Berg --- include/linux/ieee80211.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --

Re: [PATCH 0/9] cfg80211/mac80211 patches from our internal tree 2017-04-26

2017-04-26 Thread Luca Coelho
On Wed, 2017-04-26 at 10:08 +0200, Johannes Berg wrote: > > Avraham Stern (3): > >   mac80211: Add support for BSS max idle period element > >   cfg80211: unify cfg80211_roamed() and cfg80211_roamed_bss() > >   cfg80211/nl80211: add authorized flag to roaming event > > I'm going to let these get a

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

2017-04-26 Thread Luca Coelho
Hi Kalle, Here's another pull-request intended for v4.12.  This is generic development work, nothing really stands out.  More details in the tag description. I have sent this out before, and kbuildbot reported success. Please let me know if there are any issues. Cheers, Luca. The following ch

Re: iwlwifi 8260 crash (4.11rc6)

2017-05-08 Thread Luca Coelho
Hi, On Sat, 2017-05-06 at 08:39 +0200, Janusz Dziedzic wrote: > 4.11.0-rc6-next-20170413+ > 04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) > iwlwifi :04:00.0: loaded firmware version 21.302800.0 op_mode iwlmvm > > Scenario: > - iwlwifi configured in monitor mode - up > -

[PATCH] iwlwifi: fix merge damage in iwl_req_fw_callback()

2017-05-08 Thread Luca Coelho
From: Luca Coelho A merge damage happened when applying commit 06a1e85e66ba ("iwlwifi: remove module loading failure message") from our internal tree to iwlwifi-next.git. Fix it. Fixes: 06a1e85e66ba ("iwlwifi: remove module loading failure message") Reported-by: Pavel R

pull-request: iwlwifi firmwares update 2017-05-10

2017-05-10 Thread Luca Coelho
Hi Kyle, The last time we pushed new -22 firmwares, we forgot to update the relevant version for 3168 devices. This pull-request contains only this update. Please pull or let me know if there are any issues. Cheers, Luca. The following changes since commit ade8332383e228cbdcfc605b5e5ef3aa5121

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
e firmware 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): iwlwi

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

2018-03-02 Thread Luca Coelho
From: Luca Coelho 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 platforms; As usual, I'm pushing this

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

2018-03-02 Thread Luca Coelho
ew TX API") Signed-off-by: Beni Lev Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/s

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

2018-03-02 Thread Luca Coelho
From: Luca Coelho 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 element to the device configuration and OR

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

2018-03-02 Thread Luca Coelho
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 Signed-off-by: Luca Coelho --- drivers/net/wireles

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

2018-03-02 Thread Luca Coelho
hadn't any queue mapped that that tid. Fixes: e340c1a6ef4b ("iwlwifi: mvm: Correctly set the tid for mcast queue") Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions

pull-request: iwlwifi 2018-03-16

2018-03-16 Thread Luca Coelho
ohannes Berg (1): iwlwifi: mvm: fix error checking for multi/broadcast sta Luca Coelho (1): iwlwifi: add shared clock PHY config flag for some devices drivers/net/wireless/intel/iwlwifi/cfg/9000.c | 62 ++ drivers/net/wireless/i

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

2018-03-16 Thread Luca Coelho
referenced anymore. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c b/drivers/net/wireless

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

2018-03-16 Thread Luca Coelho
station if it does not have a valid id even in the case of fw restart. Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b

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

2018-03-16 Thread Luca Coelho
From: Luca Coelho 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 will send a pull-request later. P

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

2018-03-16 Thread Luca Coelho
) 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 Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c

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

2018-03-16 Thread Luca Coelho
unreachable code (a condition that is already handled earlier) and remove all the non-DQA comments since non-DQA mode is no longer supported. Fixes: cf961e16620f ("iwlwifi: mvm: support dqa-mode agg on non-shared queue") Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho --- drivers/ne

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

2018-03-16 Thread Luca Coelho
ver waiting for iwl_mvm_post_channel_switch() to be called. Fix this by increasing the protection time to be 3 beacon intervals and in addition drop the connection if the time event ends before we got any beacon. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- drivers/net

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 writes: > > > From: Avraham Stern > > > > When starting aggregation, the code checks the status of the queue > > allocated to the aggregation tid, which might not yet be allocated >

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

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:

[PATCH v3 3/3] cfg80211: Add API to allow querying regdb for wmm_rule

2018-03-28 Thread Luca Coelho
These values are stored in the regulatory database. There are self managed devices which can't maintain these values on their own. Add API to allow self managed regulatory devices to query the regulatory database for high band wmm rule. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --

[PATCH v3 2/3] mac80211: limit wmm params to comply with ETSI requirements

2018-03-28 Thread Luca Coelho
accordingly. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- net/mac80211/cfg.c | 3 +++ net/mac80211/ieee80211_i.h | 4 net/mac80211/mlme.c| 1 + net/mac80211/util.c| 44 net/wireless/reg.c | 4 ++-- 5

[PATCH v3 0/3] cfg80211/mac80211: ETSI requirements patches

2018-03-28 Thread Luca Coelho
From: Luca Coelho Hi, Here are Haim's 3 patches for the new ETSI requirements that have been pending due to fixes we had in our internl tree. All the fixes have been squased. Please review and let me know if there are any issues. Cheers, Luca. Haim Dreyfuss (3): cfg80211: read wmm

[PATCH v3 1/3] cfg80211: read wmm rules from regulatory database

2018-03-28 Thread Luca Coelho
standard, we add wmm_rule into regulatory rule and add the option to read its value from the regulatory database. Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho --- include/net/regulatory.h | 28 + net/wireless/reg.c | 146

<    1   2   3   4   5   6   7   8   9   10   >