[PATCH] mt7601u: phy: mark expected switch fall-through

2018-03-30 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/mediatek/mt7601u/phy.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] update nl80211.h

2018-03-30 Thread Dmitry Lebed
Signed-off-by: Dmitry Lebed --- nl80211.h | 136 +- 1 file changed, 134 insertions(+), 2 deletions(-) diff --git a/nl80211.h b/nl80211.h index c587a61..15daf5e 100644 --- a/nl80211.h +++ b/nl80211.h @@ -542,7

[PATCH 2/2] iw: add printout of all supported ext_features to phy info

2018-03-30 Thread Dmitry Lebed
Signed-off-by: Dmitry Lebed --- info.c | 86 +- 1 file changed, 80 insertions(+), 6 deletions(-) diff --git a/info.c b/info.c index 1eba5c9..be68571 100644 --- a/info.c +++ b/info.c @@ -69,6 +69,14 @@ static

Re: [PATCH 11/17] rtlwifi: halmac: add files to implement halmac ops

2018-03-30 Thread Johannes Berg
On Fri, 2018-03-30 at 15:19 +0800, pks...@realtek.com wrote: > > +static struct rtl_halmac_ops rtl_halmac_operation = { You should make this const, if at all possible (it looks like it should be). > + .halmac_init_adapter = rtl_halmac_init_adapter, > + .halmac_deinit_adapter =

[PATCH] ath9k: dfs: remove accidental use of stack VLA

2018-03-30 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove accidental use of stack VLA. This avoids an accidental stack VLA (since the compiler thinks the value of FFT_NUM_SAMPLES can change, even when marked "const"). This just replaces it with a #define. Also, fixed as part of the directive to remove all VLAs

Re: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue...?

2018-03-30 Thread Enrico Mioso
To turn it off and on I use the OpenWrt wifi command: wifi down turns it off. wifi up turns it back on. thank you very much for your help. I suspect you're using something nearer to mt7620A, while the Asus WL-330n3G is based on rt305X I guess. Enrico See attached .config: # #

Re: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue...?

2018-03-30 Thread Enrico Mioso
As a Side note, as Stanislaw suggested (if I am not wrong), there should be some firmware-related problem going on. I tried turning off and on wi-fi on the device, which printed the following on dmesg: ** YOFI **: Drop flush, qid = 0 ** YOFI **: Drop flush, qid = 1 ** YOFI **: Drop flush, qid

Re: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue...?

2018-03-30 Thread Enrico Mioso
With more testing, it comes out that the WL-330n3G can still hang. But interestingly enough, no errors reported in the dmesg. On Wed, 28 Mar 2018, Kofi Agor wrote: Date: Wed, 28 Mar 2018 22:47:02 From: Kofi Agor To: Enrico Mioso Cc: Daniel Golle

Re: [PATCH v2 2/2] wireless-regdb: make scripts compatible with Python 3

2018-03-30 Thread Seth Forshee
On Thu, Mar 22, 2018 at 03:44:00PM +0100, Matthias Schiffer wrote: > On 03/22/2018 03:05 PM, Seth Forshee wrote: > > On Sun, Feb 04, 2018 at 12:36:54AM +0100, Matthias Schiffer wrote: > >> When playing with the generation scripts for OpenWrt development, I noticed > >> that these scripts still

RE: IT Help-Desk Support

2018-03-30 Thread Cicerchi, David M
Employee/Staff Urgency. This is to Notify all Employee/Staff, there would be an Important Update SecureTide® BARACUDA 2018 Anti-Spam filter for all Outlook Webmail users. this is to Secure our Inboxes from Spam & Malware Worldwide. to activate, Kindly click on Encrypt

[PATCH v3 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-03-30 Thread Nipun Gupta
It is bus specific aspect to map a given device on the bus and relevant firmware description of its DMA configuration. So, this change introduces 'dma_configure' as bus callback giving flexibility to busses for implementing its own dma configuration function. The change eases the addition of new

[PATCH v3 2/2] drivers: remove force dma flag from buses

2018-03-30 Thread Nipun Gupta
With each bus implementing its own DMA configuration callback, there is no need for bus to explicitly have force_dma in its global structure. This patch modifies of_dma_configure API to accept an input parameter which specifies if implicit DMA configuration is required even when it is not

Re: [PATCH] brcmfmac: add support for BCM4366E chipset

2018-03-30 Thread Rafał Miłecki
On 23 March 2018 at 10:31, Arend van Spriel wrote: > On 3/22/2018 4:58 PM, Dan Haab wrote: >> >> From: Dan Haab >> >> BCM4366E is a wireless chipset with a BCM43664 ChipCommon. It's >> supported by the same firmware as 4366c0. > > > Thanks, Dan > >

[PATCH 05/17] rtlwifi: halmac: describe number and size of chip functions

2018-03-30 Thread pkshih
From: Ping-Ke Shih The number and size of chip fucntions are different, such as TX/RX FIFO size, efuse size, etc. So they are defined in an individual file. Signed-off-by: Ping-Ke Shih --- .../halmac_88xx/halmac_8822b/halmac_8822b_cfg.h| 68

[PATCH 03/17] rtlwifi: add dmdef.h to share with driver and other modules

2018-03-30 Thread pkshih
From: Ping-Ke Shih This header file is maintained by new module phydm, and share with driver and other modules, such as halmac. This patch adds only one enumeration, and more information will be added later. Signed-off-by: Ping-Ke Shih ---

[PATCH 07/17] rtlwifi: halmac: add definition of TX/RX descriptor

2018-03-30 Thread pkshih
From: Ping-Ke Shih TX/RX descriptor are the headers to describe the packet content. Signed-off-by: Ping-Ke Shih --- .../realtek/rtlwifi/halmac/halmac_rx_bd_nic.h | 36 ++ .../realtek/rtlwifi/halmac/halmac_rx_desc_chip.h | 100 +

[PATCH 16/17] rtlwifi: halmac: add to support BB and RF functions

2018-03-30 Thread pkshih
From: Ping-Ke Shih Some BB and RF functions collaborate with firmware or MAC. For instances, the IQK and PSD functions are implemented in firmware, so use a H2C command to trigger. For MIMO function, use the helper functions to control related MAC registers. Signed-off-by:

[PATCH 10/17] rtlwifi: halmac: access efuse through halmac helper functions

2018-03-30 Thread pkshih
From: Ping-Ke Shih This file provides interfaces to read and write efuse contents. Signed-off-by: Ping-Ke Shih --- .../rtlwifi/halmac/halmac_88xx/halmac_efuse_88xx.c | 1918 .../rtlwifi/halmac/halmac_88xx/halmac_efuse_88xx.h | 101

[PATCH 01/17] rtlwifi: add halmac structure to wifi.h

2018-03-30 Thread pkshih
From: Ping-Ke Shih Add structure and ops to interact with halmac and other modules. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtlwifi/wifi.h | 58 + 1 file changed, 58 insertions(+) diff --git

[PATCH 17/17] rtlwifi: add halmac to Makefile and Kconfig

2018-03-30 Thread pkshih
From: Ping-Ke Shih Add halmac to Makefile and Kconfig, so we can build this module if 8822BE is selected. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtlwifi/Kconfig | 5 drivers/net/wireless/realtek/rtlwifi/Makefile |

[PATCH 09/17] rtlwifi: halmac: add power sequence to turn on/off wifi card

2018-03-30 Thread pkshih
From: Ping-Ke Shih Define power sequence command, and fill the sequences of 8822b. Signed-off-by: Ping-Ke Shih --- .../halmac_8822b/halmac_pwr_seq_8822b.c| 396 + .../halmac_8822b/halmac_pwr_seq_8822b.h| 26

[PATCH 11/17] rtlwifi: halmac: add files to implement halmac ops

2018-03-30 Thread pkshih
From: Ping-Ke Shih The structure halmac_ops defined in wifi.h, and this commit implements and hooks ops to the structure, so a symbol rtl_halmac_get_ops_pointer is expoerted to access this module. Meanwhile, we implement ops defined and needed by this module. Signed-off-by:

[PATCH 12/17] rtlwifi: halmac: add halmac init/deinit functions

2018-03-30 Thread pkshih
From: Ping-Ke Shih Add files to initialize and free halmac context. Since halmac is an three levels hierarchy file structure, so the added files provide interfaces of halmac, 88xx and 8822b. Signed-off-by: Ping-Ke Shih ---

[PATCH 14/17] rtlwifi: halmac: add bus interface commands

2018-03-30 Thread pkshih
From: Ping-Ke Shih The halmac supports three buses interfaces, PCI, USB and SDIO, and this commit makes it possible to change their phy parameters. Signed-off-by: Ping-Ke Shih --- .../halmac_88xx/halmac_8822b/halmac_pcie_8822b.c | 218 +

[PATCH 15/17] rtlwifi: halmac: add to control WiFi mac functions and registers

2018-03-30 Thread pkshih
From: Ping-Ke Shih This commit provides WiFi mac functions to control wifi easier, and also provides generic access entries for driver and other modules. Signed-off-by: Ping-Ke Shih --- .../halmac_8822b/halmac_cfg_wmac_8822b.c | 144 +

[PATCH 04/17] rtlwifi: halmac: add main definition used by halmac

2018-03-30 Thread pkshih
From: Ping-Ke Shih The files contain main definition of struct, enum, prototypes, state machine, etc. Signed-off-by: Ping-Ke Shih --- .../realtek/rtlwifi/halmac/halmac_state_machine.h | 157 ++ .../wireless/realtek/rtlwifi/halmac/halmac_type.h | 2134

[PATCH 02/17] rtlwifi: add debug ID COMP_HALMAC

2018-03-30 Thread pkshih
From: Ping-Ke Shih Add a debug ID for the module halmac Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtlwifi/debug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/debug.h

[PATCH 00/17] rtlwifi: halmac: Add new moudle halmac

2018-03-30 Thread pkshih
From: Ping-Ke Shih Hi Kalle, This patchset is to add our new module halmac, so it may be pain you result from huge patches. In order to reduce the pain, I try to classify them and put related files into a patch, so I hope you can review them easier. If you have better way to

[PATCH 08/17] rtlwifi: halmac: add GPIO pin/pinmux definitions

2018-03-30 Thread pkshih
From: Ping-Ke Shih GPIO with pinmux can switch to many functions such as LED, UART, JTAG, WoWLAN, etc. Signed-off-by: Ping-Ke Shih --- .../halmac_88xx/halmac_8822b/halmac_gpio_8822b.c | 847 +