[PATCH] MAINTAINERS: wil6210: new maintainer - Maya Erez

2015-11-08 Thread Vladimir Kondratiev
Maya Erez will maintain the wil6210 driver Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 27b27c0..54f6e9c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH 1/4] wil6210: ignore selected WMI events

2015-10-25 Thread Vladimir Kondratiev
Some events are ignored for purpose; such events should not be treated as "unhandled events". Replace info message saying "unhandled" with debug one saying "ignore", to reduce dmesg pollution Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> -

[PATCH 4/4] wil6210: handle failure in Tx vring config

2015-10-25 Thread Vladimir Kondratiev
When configuring Tx vring for new connection, WMI call to the firmware may fail. In this case, need to clean up properly. In particular, need to call cfg80211_del_sta() in case of AP like interface. Perform full "disconnect" procedure for proper clean up Signed-off-by: Vladimir

[PATCH 3/4] wil6210: fix device ready detection

2015-10-25 Thread Vladimir Kondratiev
EADY event with some data - driver stores relevant data marks FW is operational Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/interrupt.c | 6 +++--- drivers/net/wireless/ath/wil6210/wil6210.h | 4 ++-- drivers/net/wireless/a

[PATCH 0/4] wil6210 patches

2015-10-25 Thread Vladimir Kondratiev
Collection of small fixes Hamad Kadmany (1): wil6210: Fix TSO overflow handling Vladimir Kondratiev (3): wil6210: ignore selected WMI events wil6210: fix device ready detection wil6210: handle failure in Tx vring config drivers/net/wireless/ath/wil6210/interrupt.c | 6 +++--- drivers

[PATCH 2/4] wil6210: Fix TSO overflow handling

2015-10-25 Thread Vladimir Kondratiev
ackets and retry transmission of the packets when ring is emptied. Signed-off-by: Hamad Kadmany <qca_hkadm...@qca.qualcomm.com> Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/txrx.c | 30 +++--- 1 file c

[PATCH 00/10] wil6210 patches

2015-10-04 Thread Vladimir Kondratiev
New features: - BlockAckReq support - firmware crashdump using devcoredump - capture all frames with sniffer The rest of patches are fixes Hamad Kadmany (1): wil6210: Do no schedule firmware recovery during reset flow Vladimir Kondratiev (8): wil6210: fix warning in system power management

[PATCH 05/10] wil6210: treat broadcast bssid as "disconnect all"

2015-10-04 Thread Vladimir Kondratiev
Hostapd request disconnect for broadcast bssid when it wants to disconnect all stations from the AP. Detect this and really disconnect all connected stations. Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/main.c | 6 --

[PATCH 06/10] wil6210: support BAR (BlockAck Req)

2015-10-04 Thread Vladimir Kondratiev
BAR frames delivered to the host via Rx path; whole BAR frame get delivered. Advance sequence in the reorder buffer and release old frames, as per IEEE802.11 spec. Firmware will reply to BAR, driver responsibility is only reorder buffer management. Signed-off-by: Vladimir Kondratiev <qca_vk

[PATCH 03/10] wil6210: log firmware crash information

2015-10-04 Thread Vladimir Kondratiev
Print firmware and ucode assert codes when firmware crashed. Signed-off-by: Lior David <li...@qti.qualcomm.com> Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/interrupt.c | 7 ++- drivers/net/wireless/ath/wil6210/wil

[PATCH 08/10] wil6210: ratelimit Tx error message

2015-10-04 Thread Vladimir Kondratiev
Situations observed when IP stack schedules lots of frames for Tx while no connection (connection lost, for example). In this case, dmesg bloated with error message "FW not connected", printed for every frame. Ratelimit this error message to avoid dmesg pollution. Signed-off-by

[PATCH 09/10] wil6210: dump firmware memory when firmware crashes

2015-10-04 Thread Vladimir Kondratiev
When firmware crashes, just before firmware recovery, dump the firmware memory to a devcoredump device. The resulting dump can be read from user space to be used in offline crash analysis. Signed-off-by: Lior David <li...@codeaurora.org> Signed-off-by: Vladimir Kondratiev <

[PATCH 07/10] wil6210: capture all frames in sniffer mode

2015-10-04 Thread Vladimir Kondratiev
For the sniffer (monitor) mode, capture either control only or both control and data PHY. It used to be control only or data only PHY due to firmware issues with configuration for PHY auto-detection; but now it is resolved. Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.

[PATCH 02/10] wil6210: Add proper handling for invalid frames on Rx

2015-10-04 Thread Vladimir Kondratiev
frames and continue to reap Rx packets when such frames are encountered, and add statistics for such frames for debug. Signed-off-by: Hamad Kadmany <qca_hkadm...@qca.qualcomm.com> Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/de

[PATCH 04/10] wil6210: pmc logger bug fix

2015-10-04 Thread Vladimir Kondratiev
in pmc mechanism malfunctioning. Signed-off-by: Vladimir Shulman <qca_shulm...@qca.qualcomm.com> Signed-off-by: Vladimir Kondratiev <qca_vkond...@qca.qualcomm.com> --- drivers/net/wireless/ath/wil6210/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wi

[PATCH 10/10] wil6210: Do no schedule firmware recovery during reset flow

2015-10-04 Thread Vladimir Kondratiev
From: Hamad Kadmany <qca_hkadm...@qca.qualcomm.com> During reset flow, ignore firmware errors detected prior to the actual hardware reset as the recovery flow would make additional unnecessary reset. Signed-off-by: Hamad Kadmany <qca_hkadm...@qca.qualcomm.com> Signed-off-by: Vladimi

[PATCH 01/10] wil6210: fix warning in system power management code

2015-10-04 Thread Vladimir Kondratiev
gt; drivers/net/wireless/ath/wil6210/pcie_bus.c:291:12: warning: >> 'wil6210_resume' defined but not used [-Wunused-function] static int wil6210_resume(struct device *dev, bool is_runtime) ^ Reported-by: kbuild test robot <fengguang...@intel.com> Signed-of

[PATCH] fixup! wil6210: system power management

2015-09-01 Thread Vladimir Kondratiev
gt; drivers/net/wireless/ath/wil6210/pcie_bus.c:291:12: warning: >> 'wil6210_resume' defined but not used [-Wunused-function] static int wil6210_resume(struct device *dev, bool is_runtime) ^ Reported-by: kbuild test robot <fengguang...@intel.com> Signed-of

[PATCH v3 04/19] wil6210: use vs. for global include

2015-07-30 Thread Vladimir Kondratiev
linux/device.h should be included using , not since it is not local include Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wil_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH v3 01/19] wil6210: support boot loader struct v0 v1

2015-07-30 Thread Vladimir Kondratiev
-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/boot_loader.h | 56 + drivers/net/wireless/ath/wil6210/main.c| 85 -- drivers/net/wireless/ath/wil6210/wil6210.h | 10 --- 3 files changed, 124 insertions

[PATCH v3 00/19] wil6210 patches

2015-07-30 Thread Vladimir Kondratiev
managing vrings, logical issue found with this patch and it should be redesigned Added couple of minor patches for the boot loader Dedy Lansky (1): wil6210: treat unhandled event as warning instead of error Vladimir Kondratiev (17): wil6210: support boot loader struct v0 v1 wil6210: count drops

[PATCH v3 02/19] wil6210: count drops in Rx block ack reorder

2015-07-30 Thread Vladimir Kondratiev
When performing Rx reordering, count skb's dropped per reorder buffer; and print dropped packets count on the stations debugfs entry Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c| 2 +- drivers/net/wireless/ath/wil6210

[PATCH v3 10/19] wil6210: treat unhandled event as warning instead of error

2015-07-30 Thread Vladimir Kondratiev
From: Dedy Lansky qca_dlan...@qca.qualcomm.com FW is allowed to generate WMI events that are not handled by this driver. Treat such case as warning instead of error. Signed-off-by: Dedy Lansky qca_dlan...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH v3 16/19] wil6210: allow to handle Rx on 2 cores

2015-07-30 Thread Vladimir Kondratiev
...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 3 ++- drivers/net/wireless/ath/wil6210/txrx.c | 8 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net

[PATCH v3 17/19] wil6210: system power management

2015-07-30 Thread Vladimir Kondratiev
introduced. Policy: AP-like interface can't be suspended; otherwise suspend is allowed. Hardware brought down if interface was up. Connection, if existed, get lost. Interface will be brought up upon resume if it was up before suspend. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH v3 15/19] wil6210: use inline functions for register access

2015-07-30 Thread Vladimir Kondratiev
Replace macros like R, W, S, C, defined multiple times, with inline functions wil_[rwsc]. Use readl and writel instead of ioread32 and iowrite32 since it is granted that memory transactions are used, not port ones like IN/OUT Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH v3 19/19] wil6210: support future boot loaders

2015-07-30 Thread Vladimir Kondratiev
Boot loader versions as backward compatible, starting from v1 Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 29 +++-- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/drivers/net/wireless/ath

[PATCH v3 06/19] wil6210: use wil_fw_error_recovery()

2015-07-30 Thread Vladimir Kondratiev
Use function wil_fw_error_recovery() instead of inline equivalent code Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH v3 08/19] wil6210: TSO implementation

2015-07-30 Thread Vladimir Kondratiev
from the driver. Driver partitions the data into mss sized descriptors which are then DMAed to the HW. Signed-off-by: Vladimir Shulman qca_shulm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 4 +- drivers/net

[PATCH v3 13/19] wil6210: detailed statistics for Rx reorder drop

2015-07-30 Thread Vladimir Kondratiev
Rx drops may be for 2 reasons: frame is old, or it is duplicate. On the debugfs stations entry, provide counters per reorder buffer for total frames processed, drops for these 2 reasons. Also add debug print for dropped frames. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH v3 03/19] wil6210: print ulong fields in hex format in the debugfs

2015-07-30 Thread Vladimir Kondratiev
In the debugfs, there is ulong attribute printing. It is used for bitmap printing, and more appropriate format would be hexadecimal, not decimal. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 2 +- 1 file changed, 1 insertion

[PATCH v3 11/19] wil6210: sort IEs handling

2015-07-30 Thread Vladimir Kondratiev
sort overall IE's handling prepare code (disabled for now) to add IEs for the beacon Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 78 +++-- 1 file changed, 29 insertions(+), 49 deletions(-) diff --git

[PATCH v3 18/19] wil6210: report boot loader error

2015-07-30 Thread Vladimir Kondratiev
Boot loader reports error starting from the struct v2. Print error info before reset (power up state) in debug mode, and print same info as error if target reset timed out. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/boot_loader.h | 5

[PATCH v3 12/19] wil6210: unify wmi_set_ie() error handling

2015-07-30 Thread Vladimir Kondratiev
When printing error message, provide string describing IE kind. Derive it from IE type This allows removing of error messages printing in callers Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 29

[PATCH v3 05/19] wil6210: wait for del_station to complete

2015-07-30 Thread Vladimir Kondratiev
Multiple del_station requests may be sent to the driver by the supplicant when turning down AP. This may overflow mailbox between the FW and ucode Wait till disconnect of one STA completed before sending next command. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers

[PATCH v3 07/19] wil6210: skip HW version check for chip debugging

2015-07-30 Thread Vladimir Kondratiev
When loading with debug_fw flag, do not bail out on unknown chipId Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH v3 14/19] wil6210: remove 3-MSI support

2015-07-30 Thread Vladimir Kondratiev
int with range [0,1,3] to boolean. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/interrupt.c | 55 +++ drivers/net/wireless/ath/wil6210/pcie_bus.c | 56 ++-- drivers/net/wireless/ath/wil6210

[PATCH v3 09/19] wil6210: improve mgmt frame handling

2015-07-30 Thread Vladimir Kondratiev
Check event length; hex dump both Rx and Tx frames Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wmi.c | 54 +++--- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210

Re: [PATCH 11/13] wil6210: TSO implementation

2015-07-09 Thread Vladimir Kondratiev
On Wednesday, July 08, 2015 10:06:37 PM Emmanuel Grumbach wrote: So your device is able to replicate and update the IP / TCP header? I don't really follow what your device is able to do. You seem to be cutting the frags so that their length sums up to mss. Which hints that your device can't

Re: [PATCH 02/13] wil6210: ACS implementation using QCA vendor command

2015-07-07 Thread Vladimir Kondratiev
On Sunday, July 05, 2015 12:35:16 PM Johannes Berg wrote: On Sun, 2015-07-05 at 10:24 +0300, Vladimir Kondratiev wrote: ACS is implemented by registering to QCA vendor ACS sub command. On receive of the command from hostapd, driver issues passive scan command and block until scan results

[PATCH v2 02/13] wil6210: ACS implementation using QCA vendor command

2015-07-06 Thread Vladimir Kondratiev
qca_shulm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 389 drivers/net/wireless/ath/wil6210/wil6210.h | 6 + drivers/net/wireless/ath/wil6210/wmi.c | 44 +++- drivers/net

[PATCH v2 10/13] wil6210: skip HW version check for chip debugging

2015-07-06 Thread Vladimir Kondratiev
When loading with debug_fw flag, do not bail out on unknown chipId Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH v2 06/13] wil6210: use vs. for global include

2015-07-06 Thread Vladimir Kondratiev
linux/device.h should be included using , not since it is not local include Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wil_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH v2 09/13] wil6210: use wil_fw_error_recovery()

2015-07-06 Thread Vladimir Kondratiev
Use function wil_fw_error_recovery() instead of inline equivalent code Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH v2 11/13] wil6210: TSO implementation

2015-07-06 Thread Vladimir Kondratiev
. Driver partitions the data into mss sized descriptors which are then DMAed to the HW. Signed-off-by: Vladimir Shulman qca_shulm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 4 +- drivers/net/wireless/ath

[PATCH v2 01/13] wil6210: support boot loader struct v0 v1

2015-07-06 Thread Vladimir Kondratiev
-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/boot_loader.h | 57 + drivers/net/wireless/ath/wil6210/main.c| 85 -- drivers/net/wireless/ath/wil6210/wil6210.h | 10 --- 3 files changed, 125 insertions

[PATCH v2 08/13] wil6210: hold wil-mutex while managing vrings

2015-07-06 Thread Vladimir Kondratiev
]Disconnect 04:ce:14:00:07:70, CID=-2, reason=2 7[ 668.742705] wil6210 :01:00.0: wlan0: DBG[MISC]free Tx vring 1 [1024] 0x (null):d962ce08 0x (null) 3[ 668.742736] __dma_free_remap: trying to free invalid coherent area: (null) Signed-off-by: Vladimir Kondratiev qca_vkond

[PATCH v2 03/13] wil6210: debugfs for channel survey

2015-07-06 Thread Vladimir Kondratiev
Print channel survey results on the debugfs. New entry named survey Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH v2 07/13] wil6210: wait for del_station to complete

2015-07-06 Thread Vladimir Kondratiev
Multiple del_station requests may be sent to the driver by the supplicant when turning down AP. This may overflow mailbox between the FW and ucode Wait till disconnect of one STA completed before sending next command. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers

[PATCH v2 13/13] wil6210: treat unhandled event as warning instead of error

2015-07-06 Thread Vladimir Kondratiev
From: Dedy Lansky qca_dlan...@qca.qualcomm.com FW is allowed to generate WMI events that are not handled by this driver. Treat such case as warning instead of error. Signed-off-by: Dedy Lansky qca_dlan...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH v2 04/13] wil6210: count drops in Rx block ack reorder

2015-07-06 Thread Vladimir Kondratiev
When performing Rx reordering, count skb's dropped per reorder buffer; and print dropped packets count on the stations debugfs entry Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c| 2 +- drivers/net/wireless/ath/wil6210

[PATCH v2 12/13] wil6210: improve mgmt frame handling

2015-07-06 Thread Vladimir Kondratiev
Check event length; hex dump both Rx and Tx frames Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wmi.c | 54 +++--- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH v2 05/13] wil6210: print ulong fields in hex format in the debugfs

2015-07-06 Thread Vladimir Kondratiev
In the debugfs, there is ulong attribute printing. It is used for bitmap printing, and more appropriate format would be hexadecimal, not decimal. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 00/13] wil6210 patches

2015-07-06 Thread Vladimir Kondratiev
and improvements V2: found bug in the commit for TSO - by mistake, reported was NETIF_F_IP_CSUM and NETIF_F_IPV6_CSUM. Re-sending whole series to avoid confusion Dedy Lansky (1): wil6210: treat unhandled event as warning instead of error Vladimir Kondratiev (12): wil6210: support boot loader

[PATCH 02/13] wil6210: ACS implementation using QCA vendor command

2015-07-05 Thread Vladimir Kondratiev
qca_shulm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 389 drivers/net/wireless/ath/wil6210/wil6210.h | 6 + drivers/net/wireless/ath/wil6210/wmi.c | 44 +++- drivers/net

[PATCH 01/13] wil6210: support boot loader struct v0 v1

2015-07-05 Thread Vladimir Kondratiev
-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/boot_loader.h | 57 + drivers/net/wireless/ath/wil6210/main.c| 85 -- drivers/net/wireless/ath/wil6210/wil6210.h | 10 --- 3 files changed, 125 insertions

[PATCH 06/13] wil6210: use vs. for global include

2015-07-05 Thread Vladimir Kondratiev
linux/device.h should be included using , not since it is not local include Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wil_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH 03/13] wil6210: debugfs for channel survey

2015-07-05 Thread Vladimir Kondratiev
Print channel survey results on the debugfs. New entry named survey Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH 05/13] wil6210: print ulong fields in hex format in the debugfs

2015-07-05 Thread Vladimir Kondratiev
In the debugfs, there is ulong attribute printing. It is used for bitmap printing, and more appropriate format would be hexadecimal, not decimal. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 2 +- 1 file changed, 1 insertion

[PATCH 04/13] wil6210: count drops in Rx block ack reorder

2015-07-05 Thread Vladimir Kondratiev
When performing Rx reordering, count skb's dropped per reorder buffer; and print dropped packets count on the stations debugfs entry Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c| 2 +- drivers/net/wireless/ath/wil6210

[PATCH 13/13] wil6210: treat unhandled event as warning instead of error

2015-07-05 Thread Vladimir Kondratiev
From: Dedy Lansky qca_dlan...@qca.qualcomm.com FW is allowed to generate WMI events that are not handled by this driver. Treat such case as warning instead of error. Signed-off-by: Dedy Lansky qca_dlan...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com

[PATCH 10/13] wil6210: skip HW version check for chip debugging

2015-07-05 Thread Vladimir Kondratiev
When loading with debug_fw flag, do not bail out on unknown chipId Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH 11/13] wil6210: TSO implementation

2015-07-05 Thread Vladimir Kondratiev
from the driver. Driver partitions the data into mss sized descriptors which are then DMAed to the HW. Signed-off-by: Vladimir Shulman qca_shulm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 5 +- drivers/net

[PATCH 00/13] wil6210 patches

2015-07-05 Thread Vladimir Kondratiev
and improvements Dedy Lansky (1): wil6210: treat unhandled event as warning instead of error Vladimir Kondratiev (12): wil6210: support boot loader struct v0 v1 wil6210: ACS implementation using QCA vendor command wil6210: debugfs for channel survey wil6210: count drops in Rx block ack

[PATCH 09/13] wil6210: use wil_fw_error_recovery()

2015-07-05 Thread Vladimir Kondratiev
Use function wil_fw_error_recovery() instead of inline equivalent code Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/main.c b

[PATCH 12/13] wil6210: improve mgmt frame handling

2015-07-05 Thread Vladimir Kondratiev
Check event length; hex dump both Rx and Tx frames Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wmi.c | 54 +++--- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210

[PATCH 07/13] wil6210: wait for del_station to complete

2015-07-05 Thread Vladimir Kondratiev
Multiple del_station requests may be sent to the driver by the supplicant when turning down AP. This may overflow mailbox between the FW and ucode Wait till disconnect of one STA completed before sending next command. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers

[PATCH 08/13] wil6210: hold wil-mutex while managing vrings

2015-07-05 Thread Vladimir Kondratiev
]Disconnect 04:ce:14:00:07:70, CID=-2, reason=2 7[ 668.742705] wil6210 :01:00.0: wlan0: DBG[MISC]free Tx vring 1 [1024] 0x (null):d962ce08 0x (null) 3[ 668.742736] __dma_free_remap: trying to free invalid coherent area: (null) Signed-off-by: Vladimir Kondratiev qca_vkond

[PATCH] wil6210: restart AP upon change in privacy settings

2015-06-15 Thread Vladimir Kondratiev
...@qca.qualcomm.com Signed-off-by: Hamad Kadmany qca_hkadm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 217 +--- drivers/net/wireless/ath/wil6210/wil6210.h | 2 + 2 files changed

[PATCH 6/6] wil6210: reorder init sequence

2015-06-07 Thread Vladimir Kondratiev
-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 3 +- drivers/net/wireless/ath/wil6210/pcie_bus.c | 77 ++--- drivers/net/wireless/ath/wil6210/wil6210.h | 2 +- drivers/net/wireless/ath/wil6210

[PATCH 5/6] wil6210: platform hooks for modile init/exit

2015-06-07 Thread Vladimir Kondratiev
Provide platform hooks for module init/exit. If platform require to perform some specific actions in global context, this is where to do so. Example may be turning on power for the PCIE based on DT information. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net

[PATCH 4/6] wil6210: Support hidden SSID

2015-06-07 Thread Vladimir Kondratiev
-by: Hamad Kadmany qca_hkadm...@qca.qualcomm.com Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 46 +++-- drivers/net/wireless/ath/wil6210/wil6210.h | 3 +- drivers/net/wireless/ath/wil6210/wmi.c | 4

[PATCH 0/6] wil6210 patches

2015-06-07 Thread Vladimir Kondratiev
Small fixes here and there; save for hidden SSID Hamad Kadmany (1): wil6210: Support hidden SSID Vladimir Kondratiev (5): wil6210: modparam for bcast ring size wil6210: add NIC memory region mac_rgf_ext wil6210: add per-MCS Rx stats wil6210: platform hooks for modile init/exit

[PATCH 2/6] wil6210: add NIC memory region mac_rgf_ext

2015-06-07 Thread Vladimir Kondratiev
Firmware defines new memory region, mac_rgf_ext that need to be accessed from the host for debug purposes. Add corresponded mapping Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wil6210.h | 2 +- drivers/net/wireless/ath/wil6210/wmi.c

[PATCH 3/6] wil6210: add per-MCS Rx stats

2015-06-07 Thread Vladimir Kondratiev
Provide detailed statistics for the Rx frames per MCS Statistics printed in stations debugfs entry Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/debugfs.c | 8 +++- drivers/net/wireless/ath/wil6210/txrx.c| 2 ++ drivers/net/wireless

[PATCH 1/6] wil6210: modparam for bcast ring size

2015-06-07 Thread Vladimir Kondratiev
Control Bcast ring size in similar way as Rx and Tx ones, through bcast_ring_order modparam, actual ring size is 1 order Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net

[PATCH] wireless-regdb: Add 60GHz regulatory rules for Russia (RU)

2015-06-02 Thread Vladimir Kondratiev
Source is document named Changes to NLA 124_Order №129_22042015.pdf Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- db.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.txt b/db.txt index f361030..79dac92 100644 --- a/db.txt +++ b/db.txt @@ -978,6 +978,8

[PATCH v3 2/2] wireless-regdb: Add 60GHz regulatory rules for Russia (RU)

2015-06-02 Thread Vladimir Kondratiev
Source is document named Changes to NLA 124_Order №129_22042015.pdf Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- db.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.txt b/db.txt index af3aaca..809cd3c 100644 --- a/db.txt +++ b/db.txt @@ -998,6 +998,8

[PATCH v3 1/2] wireless-regdb: Add 60GHz regulatory rules for Japan (JP)

2015-06-02 Thread Vladimir Kondratiev
Source is ARIB STD-T74, available at: http://www.arib.or.jp/english/html/overview/doc/1-STD-T74v1_1.pdf Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- db.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db.txt b/db.txt index 37b6c39..af3aaca 100644 --- a/db.txt

[PATCH] wireless-regdb: Add 60GHz regulatory rules for Japan (JP)

2015-06-01 Thread Vladimir Kondratiev
Source is ARIB STD-T74, available at: http://www.arib.or.jp/english/html/overview/doc/1-STD-T74v1_1.pdf Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- db.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db.txt b/db.txt index df7f7b1..7157ae8 100644 --- a/db.txt

[PATCH v2] wireless-regdb: Add 60GHz regulatory rules for Japan (JP)

2015-06-01 Thread Vladimir Kondratiev
Source is ARIB STD-T74, available at: http://www.arib.or.jp/english/html/overview/doc/1-STD-T74v1_1.pdf Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- db.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db.txt b/db.txt index df7f7b1..f361030 100644 --- a/db.txt

[PATCH v2 7/7] wil6210: support WSC for STA mode

2015-04-30 Thread Vladimir Kondratiev
-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index

[PATCH 1/7] wil6210: increase timeout for the echo command

2015-04-29 Thread Vladimir Kondratiev
Sometimes it takes for the firmware more than 20ms to react on echo command after reset. Increase timeout from 20 to 50ms Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 5/5] wil6210: update FW file name

2015-03-30 Thread Vladimir Kondratiev
Firmware board file name has changed from wil6210.board to wil6210.brd by the FW generation tools. Reflect this in the driver. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/wil6210.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/5] wil6210: fw debug mode

2015-03-30 Thread Vladimir Kondratiev
refactor module parameter debug_fw to act as fw debug mode, where driver do nothing but allow card memory access. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 15 +++ drivers/net/wireless/ath/wil6210/netdev.c

[PATCH 0/5] wil6210 patches

2015-03-30 Thread Vladimir Kondratiev
Small bits here and there. Cosmetic but visible is firmware name change Vladimir Kondratiev (5): wil6210: fw debug mode wil6210: debug [add|del]_key operations wil6210: trace disconnect source wil6210: stop_ap to leave interface closed wil6210: update FW file name drivers/net/wireless

[PATCH 2/5] wil6210: debug [add|del]_key operations

2015-03-30 Thread Vladimir Kondratiev
Provide info for [add|del]_key. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c

[PATCH 4/5] wil6210: stop_ap to leave interface closed

2015-03-30 Thread Vladimir Kondratiev
cfg80211_ops.stop_ap supposed to have interface closed as post condition. Fulfill this requirement. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/ath

[PATCH 3/5] wil6210: trace disconnect source

2015-03-30 Thread Vladimir Kondratiev
Trace where wil6210_disconnect() is called from. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath

Re: [PATCH 4/5] wil6210: stop_ap to leave interface closed

2015-03-30 Thread Vladimir Kondratiev
On Monday, March 30, 2015 10:45:56 AM Johannes Berg wrote: On Mon, 2015-03-30 at 11:28 +0300, Vladimir Kondratiev wrote: cfg80211_ops.stop_ap supposed to have interface closed as post condition. Fulfill this requirement. closed is rather misleading, since you most certainly should *not* do

Re: [PATCH 5/5] wil6210: update FW file name

2015-03-30 Thread Vladimir Kondratiev
On Monday, March 30, 2015 12:38:08 PM Kalle Valo wrote: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com writes: Firmware board file name has changed from wil6210.board to wil6210.brd by the FW generation tools. Reflect this in the driver. -#define WIL_FW2_NAME wil6210.board

[PATCH 3/3] wil6210: support AP isolation

2015-03-15 Thread Vladimir Kondratiev
For the AP, configuration may say not to bridge traffic between wireless clients. This is conveyed from user space (ex: hostapd has ap_isolate parameter) with NL80211_CMD_SET_BSS, to the driver's cfg80211 ops method change_bss Add support for this setting. Signed-off-by: Vladimir Kondratiev

[PATCH 2/7] wil6210: fix check for FW responsiveness

2015-03-15 Thread Vladimir Kondratiev
echo used to be called when no firmware loaded to the NIC, this causes error output. Probe firmware with echo only after it returned ready event. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/main.c | 2 ++ drivers/net/wireless/ath

[PATCH 1/7] wil6210: optimize index manipulation in wil_vring_reap_rx

2015-03-15 Thread Vladimir Kondratiev
Use temporal variable for often used vring-swhead; and use proper index in debug printing - vring-swhead used before was modified in wil_vring_advance_head and then increased value was used in debug print Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless

[PATCH 4/7] wil6210: Prefer ether_addr_copy() over memcpy()

2015-03-15 Thread Vladimir Kondratiev
Fix checkpatch warning: WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/cfg80211.c | 7 --- drivers/net/wireless/ath/wil6210/wmi.c | 11

[PATCH 1/3] wil6210: NAPI completion refactor

2015-03-15 Thread Vladimir Kondratiev
It is expected that driver completes NAPI when less than full budget is consumed. Fulfill this requirement. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 0/3] wil6210 patches

2015-03-08 Thread Vladimir Kondratiev
Take care of AP bridging; and fix NAPI behavior Vladimir Kondratiev (3): wil6210: NAPI completion refactor wil6210: re-submit Rx frames to the wireless media if appropriate wil6210: support AP isolation drivers/net/wireless/ath/wil6210/cfg80211.c | 16 +++ drivers/net/wireless/ath

[PATCH 1/3] wil6210: NAPI completion refactor

2015-03-08 Thread Vladimir Kondratiev
It is expected that driver completes NAPI when less than full budget is consumed. Fulfill this requirement. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net/wireless/ath/wil6210/netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] wil6210: re-submit Rx frames to the wireless media if appropriate

2015-03-08 Thread Vladimir Kondratiev
This is for AP only. If Rx data frame targeted to one of associated clients, transmit it back to the wireless media and don't deliver to the host. For the multicast frames, deliver to both host and wireless media. Signed-off-by: Vladimir Kondratiev qca_vkond...@qca.qualcomm.com --- drivers/net

[PATCH 3/3] wil6210: support AP isolation

2015-03-08 Thread Vladimir Kondratiev
For the AP, configuration may say not to bridge traffic between wireless clients. This is conveyed from user space (ex: hostapd has ap_isolate parameter) with NL80211_CMD_SET_BSS, to the driver's cfg80211 ops method change_bss Add support for this setting. Signed-off-by: Vladimir Kondratiev

  1   2   3   >