[ath9k-devel] [PATCH v2 10/11] ath9k: Handle MCI_STATE_AIC_CAL

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan Add the main AIC calibration function to handle MCI_STATE_AIC_CAL. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 28 ++-- drivers/net/wireless/ath/ath9k/ar9003_aic.h | 1 + drivers/net/wireless/ath/ath9k/ar9003

[ath9k-devel] [PATCH v2 11/11] ath9k: Start AIC calibration during MCI reset

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan When a MCI reset is done, make sure that AIC is started. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/a

[ath9k-devel] [PATCH v2 08/11] ath9k: Handle MCI_STATE_AIC_CAL_RESET

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan Add a routine to handle the MCI_STATE_AIC_CAL_RESET message. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 8 drivers/net/wireless/ath/ath9k/ar9003_aic.h | 1 + drivers/net/wireless/ath/ath9k/ar9003_mci.c | 4 3 files cha

[ath9k-devel] [PATCH v2 09/11] ath9k: Handle MCI_STATE_AIC_START

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan This patch adds a function to handle the MCI message MCI_STATE_AIC_START. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 33 + drivers/net/wireless/ath/ath9k/ar9003_aic.h | 1 + drivers/net/wireless/ath/ath9

[ath9k-devel] [PATCH v2 07/11] ath9k: Disable AIC by default

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan Since various MCI messages need to be handled, along with driver-level support in upper layers, disable AIC for now. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 6 ++ drivers/net/wireless/ath/ath9k/ar9003_mci.c | 3 ++- 2 files c

[ath9k-devel] [PATCH v2 05/11] ath9k: Finish AIC calibration

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan Set the appropriate bits in the HW after AIC calibration is done. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 78 - 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/at

[ath9k-devel] [PATCH v2 06/11] ath9k: Process the AIC calibration results

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan This patch adds support for post-processing the AIC calibration results. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 245 1 file changed, 245 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/ar9

[ath9k-devel] [PATCH v2 01/11] ath9k: Add initial structures for AIC

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan These are necessary for implementing AIC, supported by chips like WB222. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.h | 49 + drivers/net/wireless/ath/ath9k/btcoex.h | 11 +++ 2 files changed, 60 inse

[ath9k-devel] [PATCH v2 04/11] ath9k: Handle MCI_STATE_AIC_CAL_SINGLE

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan This patch adds routines to handle the MCI message AIC_CAL_SINGLE, starting the required HW calibration. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 169 drivers/net/wireless/ath/ath9k/ar9003_aic.h | 9

[ath9k-devel] [PATCH v2 02/11] ath9k: Register private AIC ops

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan AIC can be disabled or enabled on a per-card basis using MCI configuration, so register a function to check its status. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/Makefile | 3 ++- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 37

[ath9k-devel] [PATCH v2 03/11] ath9k: Add register definitions for AIC

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan Various registers to control and check AIC status. Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath9k/ar9003_aic.c | 1 + drivers/net/wireless/ath/ath9k/ar9003_phy.h | 25 - drivers/net/wireless/ath/ath9k/reg_aic.h| 168

[ath9k-devel] [PATCH v2 00/11] ath9k patches

2015-03-13 Thread Sujith Manoharan
From: Sujith Manoharan AIC support, for -next. v2 : Address warning reported by Kalle: ar9003_aic.c: In function 'ar9003_aic_cal_post_process': ar9003_aic.c:431:1: warning: the frame size of 1312 bytes is larger than 1024 bytes [-Wframe-larger-than=] Sujith Manoharan (11): ath9k: A

Re: [ath9k-devel] [PATCH] ath9k: Configure beacons for AP vif if this has not happened yet

2015-03-13 Thread Ben Greear
Any idea how far back this needs to be backported for stable? Just to 4.0? Thanks, Ben On 03/13/2015 07:27 AM, Felix Fietkau wrote: > On 2015-03-13 14:33, Benjamin Berg wrote: >> Right now there is a bug where beaconing might not be enabled correctly >> if the user has configuring multiple VIFs.

Re: [ath9k-devel] [PATCH] ath9k: Configure beacons for AP vif if this has not happened yet

2015-03-13 Thread Benjamin Berg
On Fr, 2015-03-13 at 15:27 +0100, Felix Fietkau wrote: > I sent the following patch yesterday - I think it addresses the exact > same issue. Please test it to see if it works for you as well. The patch looks a lot better. I just backported it and it is working just fine for me. Benjamin > Subje

Re: [ath9k-devel] [PATCH] ath9k: Configure beacons for AP vif if this has not happened yet

2015-03-13 Thread Felix Fietkau
On 2015-03-13 14:33, Benjamin Berg wrote: > Right now there is a bug where beaconing might not be enabled correctly > if the user has configuring multiple VIFs. > The issue surfaces if the userspace first creates the AP devices and > only then configures the first VIF (ath9k_bss_info_changed is cal

Re: [ath9k-devel] [PATCH] ath9k: Configure beacons for AP vif if this has not happened yet

2015-03-13 Thread Kalle Valo
Benjamin Berg writes: > Right now there is a bug where beaconing might not be enabled correctly > if the user has configuring multiple VIFs. > The issue surfaces if the userspace first creates the AP devices and > only then configures the first VIF (ath9k_bss_info_changed is called). > In this ca

Re: [ath9k-devel] [next] ath9k: make ath_frame_info fit into reduced-sizerate_driver_data

2015-03-13 Thread Kalle Valo
> pre-requisite to shrink size of ieee80211_tx_info which in turn is > needed to shrink skb->cb to 40 bytes again. > > Signed-off-by: Florian Westphal Thanks, applied to wireless-drivers-next.git. Kalle Valo ___ ath9k-devel mailing list ath9k-devel@l

[ath9k-devel] [PATCH] ath9k: Configure beacons for AP vif if this has not happened yet

2015-03-13 Thread Benjamin Berg
Right now there is a bug where beaconing might not be enabled correctly if the user has configuring multiple VIFs. The issue surfaces if the userspace first creates the AP devices and only then configures the first VIF (ath9k_bss_info_changed is called). In this case the current ath9k_allow_beacon_

Re: [ath9k-devel] ath9k (Atheros 802.11n) data rate fluctuation problem

2015-03-13 Thread Santosh Dubey
Hi Thomas, Thank you so much for your quick response. I'll try to solve the problem using these two commands. 1) ah->config.cwm_ignore_extcca = 1; in ath9k_hw_init_config() 2) #echo 1 > /sys/kernel/debug/ath9k/ignore_extcca Thomas is it possible for you explain me the reason of data rate fluctu

[ath9k-devel] ath9k channel switch

2015-03-13 Thread Saurabh Pal
Hi all, Just wanted to know whether it is possible to switch the channel without resetting the chip. Also if possible can anybody tell me how much time it takes to switch the channel by resetting the chip? Quoting from the driver: >/* Set/change channels. If the channel is really being changed,

[ath9k-devel] [PATCH] ath9k_htc: check seq number instead of cmd id for timeout

2015-03-13 Thread Fred Chou
From: Fred Chou As the driver may send multiple wmi commands with identical cmd id, it is more robust to check seq number for timeout instead. Signed-off-by: Fred Chou --- drivers/net/wireless/ath/ath9k/wmi.c | 12 ++-- drivers/net/wireless/ath/ath9k/wmi.h | 2 +- 2 files changed, 7 i