[PATCH 09/11] mt76x0: trace and debugfs files

2018-07-04 Thread Stanislaw Gruszka
Add trace and debugfs files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- .../net/wireless/mediatek/mt76/mt76x0/debugfs.c| 166 ++ drivers/net/wireless/mediatek/mt76/mt76x0/trace.c | 21 ++ drivers/net/wireless/mediatek/mt76/mt76x0/trace.h | 366 + 3 f

[PATCH 10/11] mt76x0: dma and tx files

2018-07-04 Thread Stanislaw Gruszka
Add dma and tx files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/dma.c | 522 drivers/net/wireless/mediatek/mt76/mt76x0/dma.h | 126 ++ drivers/net/wireless/mediatek/mt76/mt76x0/tx.c | 270 3 files ch

[PATCH 11/11] mt76: Kconfig and Makefile for mt76x0 driver

2018-07-04 Thread Stanislaw Gruszka
Add Kconfig and Makefiles for mt76x0 driver. Now the driver can be build. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/Kconfig | 7 +++ drivers/net/wireless/mediatek/mt76/Makefile| 1 + drivers/net/wireless/mediatek/mt76/mt76x0/Makefile | 7 +++

[PATCH 07/11] mt76x0: init files

2018-07-04 Thread Stanislaw Gruszka
Add init files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/init.c | 720 + .../net/wireless/mediatek/mt76/mt76x0/initvals.h | 282 2 files changed, 1002 insertions(+) create mode 100644 drivers/net/wireless/me

[PATCH 06/11] mt76x0: phy files

2018-07-04 Thread Stanislaw Gruszka
Add phy files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- .../wireless/mediatek/mt76/mt76x0/initvals_phy.h | 772 +++ drivers/net/wireless/mediatek/mt76/mt76x0/phy.c| 1007 drivers/net/wireless/mediatek/mt76/mt76x0/phy.h| 81 ++ 3 files ch

[PATCH 08/11] mt76x0: eeprom files

2018-07-04 Thread Stanislaw Gruszka
Add eeprom files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c | 445 + drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.h | 149 +++ 2 files changed, 594 insertions(+) create mode 100644 drivers/net/wireless/me

[PATCH 05/11] mt76x0: mcu files

2018-07-04 Thread Stanislaw Gruszka
Add mcu files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c | 650 drivers/net/wireless/mediatek/mt76/mt76x0/mcu.h | 101 2 files changed, 751 insertions(+) create mode 100644 drivers/net/wireless/mediatek/mt

[PATCH 03/11] mt76x0: mac files

2018-07-04 Thread Stanislaw Gruszka
Add mac files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/mac.c | 661 drivers/net/wireless/mediatek/mt76/mt76x0/mac.h | 154 ++ 2 files changed, 815 insertions(+) create mode 100644 drivers/net/wireless/mediatek/

[PATCH 02/11] mt76x0: core files

2018-07-04 Thread Stanislaw Gruszka
Core files of mt76x0 driver. mt76x0 driver adds support for Mediatek MT7610U based USB Wi-Fi dongles. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/core.c | 34 ++ drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h | 376 drivers/net/wireless/med

[PATCH 01/11] mt76: add more states

2018-07-04 Thread Stanislaw Gruszka
Add states needed for mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h index 96e9798bb8a0..7b50d4b7f40e 1006

[PATCH 04/11] mt76x0: usb files

2018-07-04 Thread Stanislaw Gruszka
Add usb files of mt76x0 driver. Signed-off-by: Stanislaw Gruszka --- drivers/net/wireless/mediatek/mt76/mt76x0/usb.c | 377 drivers/net/wireless/mediatek/mt76/mt76x0/usb.h | 61 2 files changed, 438 insertions(+) create mode 100644 drivers/net/wireless/mediatek/mt

[PATCH 00/11] Add mt76x0 driver

2018-07-04 Thread Stanislaw Gruszka
Add mt76x0 driver for MT7610U based USB dongles. Currently driver support only STA mode. mt76x0 is based on Jakub's mt7601u driver already included in the kernel. I would like the driver be integrated as part of mt76 (instead of separate driver in mediatek dir like mt7601u) to utilize mt76 code fo

[PATCH] staging: wilc1000: fix static checker warning to unlock mutex in wilc_deinit()

2018-07-04 Thread Ajay Singh
Fix for static checker warning inconsistent returns of 'hif_deinit_lock'(more details [1]). "drivers/staging/wilc1000/host_interface.c:3390 wilc_deinit() warn: inconsistent returns 'hif_deinit_lock'." Introduced in "ff52a57a7a42: staging: wilc1000: move the allocation of cmd out of

[PATCH] brcmfmac: specify some features per firmware version

2018-07-04 Thread Rafał Miłecki
From: Rafał Miłecki Some features supported by firmware aren't advertised and there is no way for a driver to query them. This includes e.g. monitor mode details. Most firmwares support monitor interface but only the latest ones /announce/ it with a "monitor" flag in the "cap" iovar. There isn't

Re: [PATCH 1/7] wireless: Change single cqm_config to rssi config list

2018-07-04 Thread Tamizh chelvam
On 2018-06-29 14:56, Johannes Berg wrote: On Wed, 2018-06-13 at 16:15 +0530, Tamizh chelvam wrote: diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 5fbfe61..3e123a3 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4139,7 +4139,7 @@ static inline struct wiph

Re: [v2,1/4] mt76: introduce mt76_{incr,decr} utility routines

2018-07-04 Thread Kalle Valo
Lorenzo Bianconi wrote: > Add mt76_{incr,decr} utility routines to increment/decrement a value > with wrap-around (they will be used by mt76x2 DFS sw detector) > > Signed-off-by: Lorenzo Bianconi 4 patches applied to wireless-drivers-next.git, thanks. ee8aa945e4ae mt76: introduce mt76_{incr,d

Re: [v2] libertas: fix suspend and resume for SDIO connected cards

2018-07-04 Thread Kalle Valo
Daniel Mack wrote: > Prior to commit 573185cc7e64 ("mmc: core: Invoke sdio func driver's PM > callbacks from the sdio bus"), the MMC core used to call into the power > management functions of SDIO clients itself and removed the card if the > return code was non-zero. IOW, the mmc handled errors g

Re: brcmfmac: update STA info struct to the v5

2018-07-04 Thread Kalle Valo
Rafał Miłecki wrote: > From: Rafał Miłecki > > That struct is used when querying firmware for the STA. It seem is has > been changing during the time. Luckily its format seems to be backward > compatible starting with v2 (the only breakage was v1 -> v2). > > The version that was supported by br

Re: brcmfmac: define more bits for the flags of struct brcmf_sta_info_le

2018-07-04 Thread Kalle Valo
Rafał Miłecki wrote: > From: Rafał Miłecki > > That struct is passed by a firmware when querying for STA info. Flags > are used to indicate what info could be obtained. > > These new defines may allow passing more info to the cfg80211 in the > future. They had been obtained from Broadcom's SDK

Re: [V4,1/3] brcmfmac: detect firmware support for monitor interface

2018-07-04 Thread Kalle Valo
Rafał Miłecki wrote: > From: Rafał Miłecki > > Many/most of firmwares support creating monitor interface but only the > most recent ones explicitly /announce/ it using a "monitor" entry in the > list of capabilities. > > Check for that entry and store internally info about monitor mode > suppor

Re: [ANN] mt76x0 usb driver

2018-07-04 Thread Stanislaw Gruszka
Hi On Tue, Jul 03, 2018 at 05:31:04PM +0200, Hans Ulli Kroll wrote: > > On Mon, Jun 25, 2018 at 02:55:51PM +0200, Lorenzo Bianconi wrote: > > > > Not sure why many integration commits in upstream is a problem. I think > > > having patches posted on mailing list is better than doing them in my > >

Re: [PATCH 5/7] mac80211: Implement functionality to monitor station's rssi cross event

2018-07-04 Thread Tamizh chelvam
On 2018-06-29 15:06, Johannes Berg wrote: On Wed, 2018-06-13 at 16:15 +0530, Tamizh chelvam wrote: + if (sta->rssi_thold && bss_conf->enable_beacon) { + int last_event = sta->last_sta_mon_event_signal; + int thold = sta->rssi_thold; + int hyst = s

Re: [PATCH] mac80211: don't put null-data frames on the normal TXQ

2018-07-04 Thread Toke Høiland-Jørgensen
Johannes Berg writes: > On Wed, 2018-07-04 at 09:26 +0200, Toke Høiland-Jørgensen wrote: >> Johannes Berg writes: >> >> > I see no evidence of ath9k doing this correctly, so this might fix a >> > bug there, but I may have missed it. >> >> ath9k does check for this, in ath_tx_sched_aggr() and i

Re: [PATCH] mac80211: don't put null-data frames on the normal TXQ

2018-07-04 Thread Johannes Berg
On Wed, 2018-07-04 at 09:26 +0200, Toke Høiland-Jørgensen wrote: > Johannes Berg writes: > > > I see no evidence of ath9k doing this correctly, so this might fix a > > bug there, but I may have missed it. > > ath9k does check for this, in ath_tx_sched_aggr() and in > ath_tx_form_aggr(); it'll ch

Re: [PATCH] mac80211: don't put null-data frames on the normal TXQ

2018-07-04 Thread Toke Høiland-Jørgensen
Johannes Berg writes: > I see no evidence of ath9k doing this correctly, so this might fix a > bug there, but I may have missed it. ath9k does check for this, in ath_tx_sched_aggr() and in ath_tx_form_aggr(); it'll check for the IEEE80211_TX_CTL_AMPDU flag, and stop building the current aggregat

Re: [PATCH] mac80211: don't put null-data frames on the normal TXQ

2018-07-04 Thread Johannes Berg
On Tue, 2018-07-03 at 21:24 -0700, Ben Greear wrote: > > ath10k appears to not do aggregation in the host, and I guess the data > > isn't split over multiple queues so the firmware has to determine/buffer > > it some other way. No idea how that would work. > > This is my current understanding of