[PATCH] lib80211: don't use skcipher

2018-10-01 Thread Johannes Berg
From: Johannes Berg Using skcipher just makes the code longer, and mac80211 also "open-codes" the WEP encrypt/decrypt. Signed-off-by: Johannes Berg --- net/wireless/lib80211_crypt_tkip.c | 59 +- net/wireless/lib80211_crypt_wep.c | 52

[PATCH] mt76x2: move mt76x2 source files to mt76x2 folder

2018-10-01 Thread Lorenzo Bianconi
Move mt76x2 and mt76x2u drivers to mt76x2 subfolder and leave just shared code in mt76 root folder Acked-by: Stanislaw Gruszka Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Kconfig| 43 +-- drivers/net/wireless/mediatek/mt76/Makefile | 22

Re: [PATCH] rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h

2018-10-01 Thread Kalle Valo
writes: > From: Rick Veens > > The following: > bool efuse_re_pg_sec1flag; > u8 efuse_re_pg_data[8]; > are not referenced anywhere in the rtlwifi code. > > This patch is originally created by Rick Veens , > and Joe Perches reminded to apply it to rtlwifi. > > Signed-off-by: Ping-Ke Shih

Re: [PATCH] mt76x0: init: intrduce MT_H2M_* definitions

2018-10-01 Thread Lorenzo Bianconi
> On Sat, Sep 29, 2018 at 07:30:32PM +0200, Lorenzo Bianconi wrote: > > Add MT_H2M_BBP_AGENT, MT_H2M_MAILBOX_CSR and MT_H2M_INT_SRC and > > remove magic numbers > > > > > > /* TODO: Probably not needed */ > > - mt76_wr(dev, 0x7028, 0); > > - mt76_wr(dev, 0x7010, 0); > > - mt76_wr(dev,

[PATCH] nl80211: add error messages to nl80211_parse_chandef()

2018-10-01 Thread Johannes Berg
From: Johannes Berg Add some error messages to nl80211_parse_chandef() to make failures here - especially with disabled channels - easier to diagnose. Signed-off-by: Johannes Berg --- net/wireless/nl80211.c | 62 -- 1 file changed, 40

Re: [PATCH] mt76x0: pci: add mt76x0e_cleanup routine

2018-10-01 Thread Lorenzo Bianconi
On Oct 01, Stanislaw Gruszka wrote: > Hi > > On Sat, Sep 29, 2018 at 07:26:41PM +0200, Lorenzo Bianconi wrote: > > Add mt76x0e_cleanup routine to tidy up the device > > during netdevice removal > > > > Signed-off-by: Lorenzo Bianconi > > + mt76_wr(dev, MT_H2M_MAILBOX_CID, ~0); > > +

[PATCH v2] mt76x0: pci: add mt76x0e_cleanup routine

2018-10-01 Thread Lorenzo Bianconi
Add mt76x0e_cleanup routine to tidy up the device during device removal Signed-off-by: Lorenzo Bianconi --- Changes since v1: - remove H2M_MAILBOX_* configurations --- .../net/wireless/mediatek/mt76/mt76x0/pci.c | 26 ++- 1 file changed, 20 insertions(+), 6 deletions(-) diff

[PATCH v2] rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h

2018-10-01 Thread pkshih
From: Ping-Ke Shih The following: bool efuse_re_pg_sec1flag; u8 efuse_re_pg_data[8]; are not referenced anywhere in the rtlwifi code. This patch is originally created by Rick Veens , and Joe Perches reminded to apply it to rtlwifi. Signed-off-by: Ping-Ke Shih --- v2: change author to me

Re: [RFC 4/5] mt76: move mt76x02_mac_write_txwi in mt76x02-lib module

2018-10-01 Thread Lorenzo Bianconi
> On Sat, Sep 29, 2018 at 07:44:55PM +0200, Lorenzo Bianconi wrote: > > + if (dev->drv->get_tx_txpwr_adj) { > > + txpwr_adj = dev->drv->get_tx_txpwr_adj(dev, dev->txpower_conf, > > + max_txpwr_adj); > > + txwi->ctl2 =

Re: [PATCH] rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h

2018-10-01 Thread Pkshih
On Mon, 2018-10-01 at 12:10 +0300, Kalle Valo wrote: > writes: > > > From: Rick Veens > > > > The following: > >  bool efuse_re_pg_sec1flag; > >  u8 efuse_re_pg_data[8]; > > are not referenced anywhere in the rtlwifi code. > > > > This patch is originally created by Rick Veens , > > and Joe

[PATCH] cfg80211: regulatory: make initialization more robust

2018-10-01 Thread Johannes Berg
From: Johannes Berg Since my change to split out the regulatory init to occur later, any issues during earlier cfg80211_init() or errors during the platform device allocation would lead to crashes later. Make this more robust by checking that the earlier initialization succeeded. Fixes:

[PATCH] cfg80211: move cookie_counter out of wiphy

2018-10-01 Thread Johannes Berg
From: Johannes Berg There's no reason for drivers to be able to access the cfg80211 internal cookie counter; move it out of the wiphy into the rdev structure. While at it, also make it never assign 0 as a cookie (we consider that invalid in some places), and warn if we manage to do that for

Re: [RFC 4/5] mt76: move mt76x02_mac_write_txwi in mt76x02-lib module

2018-10-01 Thread Felix Fietkau
On 2018-10-01 07:48, Stanislaw Gruszka wrote: > On Sat, Sep 29, 2018 at 07:44:55PM +0200, Lorenzo Bianconi wrote: >> +spin_lock_bh(>lock); >> +if (wcid && (rate->idx < 0 || !rate->count)) { >> +txwi->rate = wcid->tx_rate; >> +max_txpwr_adj = wcid->max_txpwr_adj; >>

Re: [PATCH v3 00/29] staging: wilc1000: avoid static variables and cleanup changes

2018-10-01 Thread Dan Carpenter
On Tue, Sep 25, 2018 at 11:53:15AM +0530, Ajay Singh wrote: > This patch series contains changes to avoid the use of static variables. > Cleanup changes to fix some checkpatch issues and return void for > function if their return value is not used. > Also deleted 'wilc_debugfs.c' file as it's not

Re: [PATCH v3 00/29] staging: wilc1000: avoid static variables and cleanup changes

2018-10-01 Thread Ajay Singh
Hi Dan, On Mon, 1 Oct 2018 10:47:34 +0300 Dan Carpenter wrote: > On Tue, Sep 25, 2018 at 11:53:15AM +0530, Ajay Singh wrote: > > This patch series contains changes to avoid the use of static > > variables. Cleanup changes to fix some checkpatch issues and return > > void for function if their

[PATCH] rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h

2018-10-01 Thread pkshih
From: Rick Veens The following: bool efuse_re_pg_sec1flag; u8 efuse_re_pg_data[8]; are not referenced anywhere in the rtlwifi code. This patch is originally created by Rick Veens , and Joe Perches reminded to apply it to rtlwifi. Signed-off-by: Ping-Ke Shih ---

Re: [PATCH 1/5] rt2800: move usb specific txdone/txstatus routines to rt2800lib

2018-10-01 Thread Kalle Valo
Stanislaw Gruszka wrote: > In order to reuse usb txdone/txstatus routines for mmio, move them > to common rt2800lib.c file. > > Signed-off-by: Stanislaw Gruszka 5 patches applied to wireless-drivers-next.git, thanks. 5c656c71b1bf rt2800: move usb specific txdone/txstatus routines to

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

2018-10-01 Thread Kalle Valo
Luca Coelho writes: > 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.

Re: [PATCH V2 01/11] qtnfmac_pcie: do not store FW name in driver state structure

2018-10-01 Thread Kalle Valo
Igor Mitsyanko wrote: > Firmware name is only needed at probe stage, no point in keeping it in > driver state structure. > > Signed-off-by: Igor Mitsyanko 11 patches applied to wireless-drivers-next.git, thanks. 4059afc6bd17 qtnfmac_pcie: do not store FW name in driver state structure

Re: [RFC 4/5] mt76: move mt76x02_mac_write_txwi in mt76x02-lib module

2018-10-01 Thread Stanislaw Gruszka
On Mon, Oct 01, 2018 at 12:06:56PM +0200, Lorenzo Bianconi wrote: > > All above looks mt76x2 specific, maybe would be beter to place this in > > in setup_txwi() calback i.e: > > > > if (dev->drv->setup_txwi) > > drv->drv->setup_txwi(...) > > > > or maybe you plan to implement

[PATCH 07/10] mt76x0: merge mt76x0_dev in mt76x02_dev

2018-10-01 Thread Lorenzo Bianconi
Merge mt76x0_dev data structure in mt76x02_dev one and remove duplicated code. Remove unused definition in mt76x0.h. Moreover merge mt76x0_caldata and mt76x02_rx_freq_cal data structures. This is a preliminary patch for rxwi unification. Signed-off-by: Lorenzo Bianconi ---

[PATCH 1/3] mt76: move txrx shared routines in mt76x02_txrx.c

2018-10-01 Thread Lorenzo Bianconi
Add mt76x02_txrx.c source file in order to contain tx/rx shared routines for mt76x0 and mt76x2 drivers Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 3 +- .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 162 ++

[PATCH 2/3] mt76: rename mt76x02_util.h in mt76x02.h

2018-10-01 Thread Lorenzo Bianconi
Rename mt76x02_util.h header file in mt76x02.h since now contains all mt76x02 related definitions and not just utility routines declarations Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 3 --- drivers/net/wireless/mediatek/mt76/mt76x0/mac.c

[PATCH 3/3] mt76x2: remove leftover function declatarions

2018-10-01 Thread Lorenzo Bianconi
Remove following function declarations since they have been moved to mt76x02-lib module: - mt76x2_sta_add - mt76x2_sta_remove - mt76x2_remove_interface - mt76x2_conf_tx - mt76x2_txq_init Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h | 10 -- 1

[PATCH 0/3] split code in mt76x02_util.{c,h}

2018-10-01 Thread Lorenzo Bianconi
Move shared tx/rx code in mt76x02_txrx.c. Moreover rename mt76x02_util.h in mt76x02.h since now it contains most relevant mt76x02 data structures Lorenzo Bianconi (3): mt76: move txrx shared routines in mt76x02_txrx.c mt76: rename mt76x02_util.h in mt76x02.h mt76x2: remove leftover function

[PATCH 04/10] mt76x0: remove unused variable in mt76x0_dev

2018-10-01 Thread Lorenzo Bianconi
Remove no longer used mac_lock spinlock and data array in mt76x0_dev data structure Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 1 - drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h | 5 - 2 files changed, 6 deletions(-) diff --git

[PATCH 05/10] mt76x0: remove hw_atomic_mutex mutex in mt76x0_dev

2018-10-01 Thread Lorenzo Bianconi
Remove hw_atomic_mutex mutex in mt76x0_dev data structure since mt76x0_phy_set_channel is already protected by mt76_dev mutex while mt76x0_chip_onoff is used just at device probe or cleanup Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x0/init.c| 5 -

[PATCH 06/10] mt76x2: move mt76x2_dev in mt76x02_util.h

2018-10-01 Thread Lorenzo Bianconi
Move mt76x2_dev in mt76x02_util.h and rename it in mt76x02_dev in order to be shared between mt76x2 and mt76x0 driver Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x02_dfs.h | 140 + .../net/wireless/mediatek/mt76/mt76x02_util.h | 71 +

[PATCH 00/10] unify rxwi parsing between mt76x0 and mt76x2 drivers

2018-10-01 Thread Lorenzo Bianconi
Merge mt76x0_dev and mt76x2_dev in mt76x02_dev and remove duplicated code. Move mt76x02_mac_process_rx routine in mt76x02-lib module in order to unify rxwi parsing between mt76x0 and mt76x2 drivers. Move mt76x02_tx in mt76x02-lib module and remove duplicated code Lorenzo Bianconi (10): mt76:

[PATCH 01/10] mt76: move mt76x02_phy_get_min_avg_rssi in mt76x02_phy.c

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_phy_get_min_avg_rssi in mt76x02-lib module since it will be used by mt76x0 driver in order to unify rxwi parsing Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x02_phy.c | 48 +++ .../net/wireless/mediatek/mt76/mt76x02_phy.h | 1 +

[PATCH 10/10] mt76: move mt76x02_tx in mt76x02-lib module

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_tx shared routine in mt76x02-lib module and remove duplicated code. Moreover remove mt76x0/tx.c since it is an empty file Signed-off-by: Lorenzo Bianconi --- .../wireless/mediatek/mt76/mt76x0/Makefile| 2 +- .../wireless/mediatek/mt76/mt76x0/mt76x0.h| 4 --

[PATCH 09/10] mt76: unify rxwi parsing between mt76x2 and mt76x0 drivers

2018-10-01 Thread Lorenzo Bianconi
Unify rxwi parsing between mt76x2 and mt76x0. Remove the following routines: - mt76x0_phy_get_rssi - mt76x0_queue_rx_skb - mt76x0_mac_process_rx Moreover remove mt76x2/common.c and mt76x0/mac.h since are empty files Enable CCMP PN sw validation Signed-off-by: Lorenzo Bianconi ---

[PATCH 08/10] mt76: move mt76x02_mac_process_rx in mt76x02-lib module

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_mac_process_rx utility routine in mt76x02-lib in order to by reused by mt76x0 driver for rxwi parsing. Add stream number check in mt76x02_mac_process_rx since mt76x0 chipsets are 1x1:1 Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x02_mac.c | 105

[PATCH 02/10] mt76: move mt76x02_rx_get_sta and mt76x02_rx_get_sta_wcid in mt76x02_util.c

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_rx_get_sta and mt76x02_rx_get_sta_wcid utility routines in mt76x02-lib module since it will be used by mt76x0 driver in order to unify rxwi parsing Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x02_util.c | 29 +

[PATCH 03/10] mt76x0: mac: use sta ewma estimation for rssi tracking

2018-10-01 Thread Lorenzo Bianconi
Use shared mt76x02 utility routines for rssi tracking. Moreover remove no longer used con_mon_lock spinlock and following variable: - ap_bssid - bcn_freq_off - bcn_phy_mode - avg_rssi Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x0/init.c | 1 -

[PATCH] cfg80211: combine wdev/netdev unregister code

2018-10-01 Thread Johannes Berg
From: Johannes Berg We currently have two places that do similar things, depending on whether it's a wdev with or without netdev. Combine the code to avoid having to duplicate all new additions. Signed-off-by: Johannes Berg --- net/wireless/core.c | 38 +-

[PATCH] mt76: mt76x2: fix multi-interface beacon configuration

2018-10-01 Thread Felix Fietkau
If the first virtual interface is a station (or an AP with beacons temporarily disabled), the beacon of the second interface needs to occupy hardware beacon slot 0. For some reason the beacon index was incorrectly masked with the virtual interface beacon mask, which prevents the secondary

[PATCH v2 2/4] dts: arm64/sdm845: Add WCN3990 WLAN module device node

2018-10-01 Thread Govind Singh
Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on SDM845 soc. Signed-off-by: Govind Singh --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 7 +++ arch/arm64/boot/dts/qcom/sdm845.dtsi| 26 + 2 files changed, 33

[PATCH v2 1/4] dt: bindings: add missing dt properties for WCN3990 wifi node

2018-10-01 Thread Govind Singh
Add missing optional properties in WCN3990 wifi node. Signed-off-by: Govind Singh --- .../bindings/net/wireless/qcom,ath10k.txt | 28 ++- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt

Re: [PATCH v2] mt76x0: pci: add mt76x0e_cleanup routine

2018-10-01 Thread Felix Fietkau
On 2018-10-01 10:55, Lorenzo Bianconi wrote: > Add mt76x0e_cleanup routine to tidy up the device > during device removal > > Signed-off-by: Lorenzo Bianconi Merged, thanks. - Felix

Re: [PATCH] New functionality for aborting ongoing CAC.

2018-10-01 Thread Enrique Giraldo
You are right, it is possible to do it as you comment (NL80211_CMD_STOP_AP and then NL80211_CMD_START_AP). It is therefore not necessary a specific command to abort the CAC. Thank you very much for the clarification and the time spent. PS: If you use OpenWRT you have to control the STOP and the

Re: [PATCH] mt76x2: move mt76x2 source files to mt76x2 folder

2018-10-01 Thread Felix Fietkau
On 2018-10-01 10:18, Lorenzo Bianconi wrote: > Move mt76x2 and mt76x2u drivers to mt76x2 subfolder and > leave just shared code in mt76 root folder > > Acked-by: Stanislaw Gruszka > Signed-off-by: Lorenzo Bianconi Merged, thanks. - Felix

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

2018-10-01 Thread Luca Coelho
From: Johannes Berg If we use the iwl_pcie_gen2_set_tb() return value for BIT(), we should validate that it's not going to be negative, so do the check and bail out if we hit an error. We shouldn't, as we check if it'll fit beforehand, but better be safe. Fixes: ab6c644539e9 ("iwlwifi: pcie:

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

2018-10-01 Thread Luca Coelho
From: Shahar S Matityahu Add debugfs to send host command in mvm and fmac op modes. Allows to send host command at runtime via send_hcmd debugfs file. The command is received as a string that represents hex values. The struct of the command is as follows: [cmd_id][flags][length][data] cmd_id

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

2018-10-01 Thread Luca Coelho
From: Johannes Berg When the info type is MU, we still have the data from the TSF overload words, so should decode that. When it's MU_EXT_INFO we additionally have the SIG-B common 0/1/2 fields. Also document the validity depending on the info type and fix the name of the regular TB PPDU info

[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

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

[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 01/16] iwlwifi: pcie: avoid empty free RB queue

2018-10-01 Thread Luca Coelho
From: Shaul Triebitz If all free RB queues are empty, the driver will never restock the free RB queue. That's because the restocking happens in the Rx flow, and if the free queue is empty there will be no Rx. Although there's a background worker (a.k.a. allocator) allocating memory for RBs so

[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/iwl-drv.c

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

2018-10-01 Thread Luca Coelho
From: Johannes Berg For trigger-based PPDUs, most values aren't part of the HE-SIG-A because they're preconfigured by the trigger frame. However, we still have this information since we used the trigger frame to configure the hardware, so we can (and do) read it back out and can thus show it in

[PATCH 15/16] iwlwifi: dbg: decrement occurrences for all triggers

2018-10-01 Thread Luca Coelho
From: Sara Sharon iwl_fw_dbg_collect can be called by any function that already has the error string ready. iwl_fw_dbg_collect_trig, on the other hand, does string formatting. The occurrences decrement is at iwl_fw_dbg_collect_trig, instead of iwl_fw_dbg_collect, which causes it to sometimes be

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

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

2018-10-01 Thread Luca Coelho
From: Naftali Goldstein With NICs that don't read the NVM directly and instead rely on getting the relevant data from the firmware, the number of reserved MAC addresses was not added to the API. This caused the driver to assume there is only one address which results in all interfaces getting

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

2018-10-01 Thread Luca Coelho
From: Johannes Berg If we use the iwl_pcie_txq_build_tfd() return value for BIT(), we should validate that it's not going to be negative, so do the check and bail out if we hit an error. We shouldn't, as we check if it'll fit beforehand, but better be safe. Signed-off-by: Johannes Berg

[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 bug fixes; *

Re: [PATCH] nl80211: Add per peer statistics to compute FCS error rate

2018-10-01 Thread Johannes Berg
On Thu, 2018-09-27 at 18:01 +0300, Jouni Malinen wrote: > From: Ankita Bajaj > > Add support for drivers to report the total number of MPDUs received > and the number of MPDUs received with an FCS error from a specific > peer. These counters will be incremented only when the TA of the > frame

[PATCH] mt76x0: init: remove unnecessary configurations

2018-10-01 Thread Lorenzo Bianconi
Remove leftover configuration for legacy devices in mt76x0_init_mac_registers routine. Moreover substitute msleep function with usleep_range routine Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-)

[PATCH] cfg80211: unify sending NL80211_CMD_NEW_INTERFACE

2018-10-01 Thread Johannes Berg
From: Johannes Berg There isn't really any need for us to be sending this from two different places - move cfg80211_init_wdev() later and send the notification from there, removing it from the non- netdev case. Signed-off-by: Johannes Berg --- net/wireless/core.c| 5 +++--

pull request: mt76 2018-10-01

2018-10-01 Thread Felix Fietkau
Hi Kalle, Here's another large batch of mt76 code cleanup / deduplication / fixes - Felix The following changes since commit 93ed990e3a6e722b7b1e1d59b3ceb8d91e36e682: qtnfmac: remove set but not used variable 'vif' (2018-09-20 15:12:13 +0300) are available in the Git repository at:

[PATCH 0/4] unify txwi parsing between mt76x0 and mt76x2 drivers

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_mac_write_txwi routine in mt76x02-lib module in order to unify txwi parsing between mt76x0 and mt76x2 drivers. For rxwi unification we need to merge mt76x2_dev and mt76x0_dev in mt76x02_dev and remove duplicated code Changes since RFC: - drop patch 1/5 ("mt76: introduce is_mt76x2

[PATCH 4/4] mt76: usb: use mt76x02u_tx_prepare_skb to fill txwi

2018-10-01 Thread Lorenzo Bianconi
Use mt76x02u_tx_prepare_skb routine to fill txwi in mt76x2u and mt76x0u driver and remove duplicated code. Moreover add static qualifier to mt76x02_mac_tx_rate_val and mt76x02_mac_fill_txwi routines Signed-off-by: Lorenzo Bianconi --- .../wireless/mediatek/mt76/mt76x0/mt76x0.h| 5 --

[PATCH 1/4] mt76: move mt76x02_tx_get_max_txpwr_adj in mt76x02_util.c

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_tx_get_max_txpwr_adj routine in mt76x02-lib module since now both mt76x0 and mt76x2 drivers read rate tx power gain from rate_power data structure. Moreover remove get_max_txpwr_adj function pointer from mt76_driver_ops data structure Signed-off-by: Lorenzo Bianconi ---

[PATCH 3/4] mt76: move mt76x02_mac_write_txwi in mt76x02-lib module

2018-10-01 Thread Lorenzo Bianconi
Move mt76x02_mac_write_txwi in mt76x02_mac.c since it is shared between mt76x0 and mt76x2 drivers. This is a preliminary patch to unify txwi configuration between mt76x0 and mt76x2 drivers Signed-off-by: Lorenzo Bianconi --- .../net/wireless/mediatek/mt76/mt76x02_mac.c | 63 +++

[PATCH 2/4] mt76: add get_tx_txpwr_adj function pointer to mt76_driver_ops

2018-10-01 Thread Lorenzo Bianconi
Add get_tx_txpwr_adj function pointer to mt76_driver_ops data structure as a preliminary patch to unify txwi configuration between mt76x0 and mt76x2 drivers since tpc is currently supported just by mt76x2 driver Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76.h

Re: [PATCH] ath9k: add back support for using active monitor interfaces for tx99

2018-10-01 Thread Kalle Valo
Felix Fietkau wrote: > Various documented examples on how to set up tx99 with ath9k rely > on setting up a regular monitor interface for setting the channel. > My previous patch "ath9k: fix tx99 with monitor mode interface" made > it possible to set it up this way again. However, it was removing

Re: [PATCH 02/10] mt76: move mt76x02_rx_get_sta and mt76x02_rx_get_sta_wcid in mt76x02_util.c

2018-10-01 Thread Felix Fietkau
On 2018-10-02 00:19, Lorenzo Bianconi wrote: > Move mt76x02_rx_get_sta and mt76x02_rx_get_sta_wcid utility routines in > mt76x02-lib module since it will be used by mt76x0 driver in order to > unify rxwi parsing > > Signed-off-by: Lorenzo Bianconi > --- >

Re: [PATCH 1/5] ath9k: add counters for good and errorneous FFT/spectral frames

2018-10-01 Thread Kalle Valo
Simon Wunderlich wrote: > This is helpful to see whether spectral samples get discarded. > > Signed-off-by: Simon Wunderlich > Signed-off-by: Kalle Valo 5 patches applied to ath-next branch of ath.git, thanks. 03224678c013 ath9k: add counters for good and errorneous FFT/spectral frames

[PATCH] cfg80211: sort tracing properly

2018-10-01 Thread Johannes Berg
From: Johannes Berg There were supposed to be two blocks - one for each direction cfg80211 <-> driver, clean up the code to restore that. Signed-off-by: Johannes Berg --- net/wireless/trace.h | 268 +-- 1 file changed, 134 insertions(+), 134

Re: [PATCH 5/5] ath9k: fix reporting calculated new FFT upper max

2018-10-01 Thread Simon Wunderlich
On Monday, October 1, 2018 5:31:42 PM CEST Kalle Valo wrote: > Simon Wunderlich writes: > > On Monday, October 1, 2018 2:07:55 PM CEST Kalle Valo wrote: > >> Simon Wunderlich wrote: > >> > Cc: Nick Kossifidis > >> > Signed-off-by: Simon Wunderlich > >> > Signed-off-by: Kalle Valo > >> > >>

Re: [PATCH 5/5] ath9k: fix reporting calculated new FFT upper max

2018-10-01 Thread Kalle Valo
Simon Wunderlich writes: > On Monday, October 1, 2018 2:07:55 PM CEST Kalle Valo wrote: >> Simon Wunderlich wrote: >> > Cc: Nick Kossifidis >> > Signed-off-by: Simon Wunderlich >> > Signed-off-by: Kalle Valo >> >> No empty commit logs, please. But I can add that, just tell me what to add. >

Re: pull-request mwifiex-firmware 2018-09-26

2018-10-01 Thread Josh Boyer
On Wed, Sep 26, 2018 at 12:07 PM Ganapathi Bhat wrote: > > The following changes since commit 0ced724f6ed564a5e1602808163db7cfa4697f39: > > linux-firmware: update Marvell USB8801 B0 firmware image (2018-07-20 > 11:00:29 +0530) > > are available in the git repository at: > >

Re: [PATCH 5/5] ath9k: fix reporting calculated new FFT upper max

2018-10-01 Thread Simon Wunderlich
On Monday, October 1, 2018 2:07:55 PM CEST Kalle Valo wrote: > Simon Wunderlich wrote: > > Cc: Nick Kossifidis > > Signed-off-by: Simon Wunderlich > > Signed-off-by: Kalle Valo > > No empty commit logs, please. But I can add that, just tell me what to add. How about: Since the debug print

[RFC v2] cfg80211: add peer measurement with FTM API

2018-10-01 Thread Johannes Berg
From: Johannes Berg Add a new "peer measurement" API, that can be used to measure certain things related to a peer. Right now, only implement FTM (flight time measurement) over it, but the idea is that it'll be extensible to also support measuring the necessary things to calculate e.g.

Re: [PATCH 5/5] ath9k: fix reporting calculated new FFT upper max

2018-10-01 Thread Kalle Valo
Simon Wunderlich wrote: > Cc: Nick Kossifidis > Signed-off-by: Simon Wunderlich > Signed-off-by: Kalle Valo No empty commit logs, please. But I can add that, just tell me what to add. -- https://patchwork.kernel.org/patch/10605615/

[PATCH v2] mt76x0: init: remove unnecessary configurations

2018-10-01 Thread Lorenzo Bianconi
Remove leftover configuration for legacy devices in mt76x0_init_mac_registers routine. Moreover remove unnecessary msleep delay Signed-off-by: Lorenzo Bianconi --- Changes since v1 - remove msleep delay --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 6 -- 1 file changed, 6

[PATCH] wlcore: Fix BUG with clear completion on timeout

2018-10-01 Thread Tony Lindgren
We do not currently clear wl->elp_compl on ELP timeout and we have bogus lingering pointer that wlcore_irq then will try to access after recovery is done: BUG: spinlock bad magic on CPU#1, irq/255-wl12xx/580 ... (spin_dump) from [] (do_raw_spin_lock+0xc8/0x124) (do_raw_spin_lock) from []

[PATCH] wlcore: Add support for optional wakeirq

2018-10-01 Thread Tony Lindgren
Now with wlcore using PM runtime, we can also add support for Linux generic wakeirq handling for it if configured in the dts file. The wakeirq can be configured as the second interrupt in the dts file with interrupts-extended property where it is the padconf irq of the OOB GPIO pin used for