Re: [ath9k-devel] switching from minstrel to ath9k's native rate control

2011-04-10 Thread Sujith Manoharan
Larry Vaden va...@texoma.net wrote: 71 2011-01-01T00:00:12+00:00 jv-2400-ap1 kernel - - -  ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Is there a run time option to set rate control algorithm or must we compile (certainly not a problem)? Currently, there is no runtime

[ath9k-devel] ath9k_htc: RX memory allocation error, swapper: page allocation failure: order:3, mode:0x20

2012-01-01 Thread Sujith Manoharan
David Purdy wrote: Any idea what the cause and/or solution is for this ath9k_htc: RX memory allocation error swap problem? The most probable explanation is a memory leak in the driver. I'm running Debian armel on a Dockstation/Kirkwood: Linux AirDisk2 3.1.0-1-kirkwood #1 Tue Nov 15

[ath9k-devel] Question about duration of data frame in ath9k_htc

2012-01-06 Thread Sujith Manoharan
李刚 wrote: From wireshark, I noticed that when send an data frame , the duration of frame control is fixed at 60 , no matter the frame length is 100 bytes or 1000 bytes. It seems this value is calculated in firmware and should be correct. But I don't know why. And this value can

[ath9k-devel] ath9k_htc makes my TL-WN821N get too hot to hang

2012-01-10 Thread Sujith Manoharan
Mulong Chen wrote: I am using ath9k_htc with my TL-WN821N. The problem is when it transfers with max speed (should be 300Mbps but not with ath9k_htc, this could be another story) for some while (eg. 10 mins), the dongle gets really hot and it hangs with no blinked LED. At this time, there is

[ath9k-devel] [PATCH] ath9k_htc: Load firmware asynchronously

2012-01-30 Thread Sujith Manoharan
This patch modifies ath9k_htc to load the needed firmware in an asynchronous manner, fixing timeouts that were introduced with the new udev changes. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/hif_usb.c | 154

[ath9k-devel] [PATCH 1/7] ath9k: Remove redundant max_streams assignment

2012-02-12 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/init.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 53a005d..a625c9a 100644 --- a/drivers

[ath9k-devel] [PATCH 2/7] ath9k: Remove unnecessary variable initialization

2012-02-12 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 68d972b..dc45cf9 100644

[ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-12 Thread Sujith Manoharan
in a subsequent patch (in a new debugfs file). Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 224 +--- 1 files changed, 64 insertions(+), 160 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net

[ath9k-devel] [PATCH 4/7] ath9k: Add a debugfs file to display reset statistics

2012-02-12 Thread Sujith Manoharan
Location: debugfs_path/ieee80211/phy#/ath9k/reset Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 41 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c

[ath9k-devel] [PATCH 5/7] ath9k: Prettify recv debugfs file output

2012-02-12 Thread Sujith Manoharan
Dumping the RSSI information in the middle of error statistics is a bit misleading. Move them to the end. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 97 +++- 1 files changed, 45 insertions(+), 52 deletions

[ath9k-devel] [PATCH 6/7] ath9k: Fix phyerr debug statistics

2012-02-12 Thread Sujith Manoharan
Validate the phyerr value against the max. size of the statistics array properly. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH 7/7] ath9k: Remove unused initvals

2012-02-12 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- .../net/wireless/ath/ath9k/ar9462_1p0_initvals.h | 394 - .../net/wireless/ath/ath9k/ar9462_2p0_initvals.h | 465 2 files changed, 0 insertions(+), 859 deletions(-) diff --git a/drivers/net

Re: [ath9k-devel] [PATCH 1/7] ath9k: Remove redundant max_streams assignment

2012-02-13 Thread Sujith Manoharan
Felix Fietkau wrote: I think AR9462 is also matched by AR_SREV_9300_20_OR_LATER(ah), so that one may not be redundant. Ah, nice catch. John, can you please drop this patch ? Sujith ___ ath9k-devel mailing list ath9k-devel@lists.ath9k.org

Re: [ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-13 Thread Sujith Manoharan
Ben Greear wrote: It is nice to be able to see what the driver/NIC thinks it is set to as well. It is always possible that the stack and the NIC are out of sync for some reason. I'd rather those values be left in the debugfs unless there is a good reason for getting rid of them. The 'wiphy'

Re: [ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-13 Thread Sujith Manoharan
Ben Greear wrote: What if there is some bug that causes the NIC to be in a state different than mac80211 thinks it is? If you leave this in, then maybe someone will notice. Well, if we are not operating in the channel that mac80211 tells us, then we are screwed in a major, non-obvious way. :)

Re: [ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-14 Thread Sujith Manoharan
Peter Stuge wrote: It is not very wise for ath9k to reduce debug output with the motivation that some users leave it enabled even if they deploy into limited systems and they would actually prefer to have less debugging. If ath9k users have an issue with debugging being too big then THEY

[ath9k-devel] [PATCH 1/4] ath9k: Initialize NF values properly

2012-02-14 Thread Sujith Manoharan
Using AR_SREV_* macros for setting up the chip-specific NF values will make adding support for new chips hard. Use separate macros for each chip. Currently, AR9462 has the same value for all NF limits. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH 2/4] ath9k: Fix programming SYNTH4 for AR9462

2012-02-14 Thread Sujith Manoharan
The LONG_SHIFT_SELECT offset is different for AR9462 from the other chip families. Fix this. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_phy.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless

[ath9k-devel] [PATCH 3/4] ath9k: Modify CCK spur mitigation for AR9462

2012-02-14 Thread Sujith Manoharan
This improves sensitivity for CCK at specific channels. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_phy.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b

[ath9k-devel] [PATCH 4/4] ath9k: Fix descriptor length for AR9462

2012-02-14 Thread Sujith Manoharan
The TX descriptor length is 24 for AR9462. Fix this. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net

Re: [ath9k-devel] [PATCH 3/4] ath9k: Modify CCK spur mitigation for AR9462

2012-02-14 Thread Sujith Manoharan
Mohammed Shafi wrote: i saw this some time back ,the check will not take care of this logic if (AR_SREV_9462(ah) (i == 0 || i == 3)) continue; Yep, looks like this is already handled. Thanks for catching this. Sujith ___

[ath9k-devel] [PATCH v2] ath9k: Fix descriptor length for AR9462

2012-02-14 Thread Sujith Manoharan
Change the descriptor length to 24 and explicitly set the control field 23 to zero. Not doing so would result in dropping of frames. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c |6 +- drivers/net/wireless/ath/ath9k

Re: [ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-14 Thread Sujith Manoharan
Ben Greear wrote: I was thinking about adding a method that grabbed as many registers as I have info for and dumping them with printk when DMA errors hit. This would make kernel splats more useful. And also have a debugfs file called 'registers' or similar that one could cat out and get

Re: [ath9k-devel] [PATCH 3/7] ath9k: Merge wiphy and misc debugfs files

2012-02-15 Thread Sujith Manoharan
Sujith Manoharan wrote: Ben Greear wrote: I was thinking about adding a method that grabbed as many registers as I have info for and dumping them with printk when DMA errors hit. This would make kernel splats more useful. And also have a debugfs file called 'registers' or similar

[ath9k-devel] [PATCH v2 0/9] ath9k patches

2012-02-15 Thread Sujith Manoharan
John, Here is a consolidated set of all the pending patches for ath9k, rebased over current -wl. A couple of patches from the last series have been dropped. Sujith Sujith Manoharan (9): ath9k: Remove unnecessary variable initialization ath9k: Merge wiphy and misc debugfs files ath9k: Add

[ath9k-devel] [PATCH v2 1/9] ath9k: Remove unnecessary variable initialization

2012-02-15 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 68d972b..dc45cf9 100644

[ath9k-devel] [PATCH v2 2/9] ath9k: Merge wiphy and misc debugfs files

2012-02-15 Thread Sujith Manoharan
in a subsequent patch (in a new debugfs file). Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 224 +--- 1 files changed, 64 insertions(+), 160 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net

[ath9k-devel] [PATCH v2 3/9] ath9k: Add a debugfs file to display reset statistics

2012-02-15 Thread Sujith Manoharan
Location: debugfs_path/ieee80211/phy#/ath9k/reset Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 41 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c

[ath9k-devel] [PATCH v2 4/9] ath9k: Prettify recv debugfs file output

2012-02-15 Thread Sujith Manoharan
Dumping the RSSI information in the middle of error statistics is a bit misleading. Move them to the end. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c | 97 +++- 1 files changed, 45 insertions(+), 52 deletions

[ath9k-devel] [PATCH v2 5/9] ath9k: Fix phyerr debug statistics

2012-02-15 Thread Sujith Manoharan
Validate the phyerr value against the max. size of the statistics array properly. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH v2 6/9] ath9k: Remove unused initvals

2012-02-15 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- .../net/wireless/ath/ath9k/ar9462_1p0_initvals.h | 394 - .../net/wireless/ath/ath9k/ar9462_2p0_initvals.h | 465 2 files changed, 0 insertions(+), 859 deletions(-) diff --git a/drivers/net

[ath9k-devel] [PATCH v2 7/9] ath9k: Initialize NF values properly

2012-02-15 Thread Sujith Manoharan
Using AR_SREV_* macros for setting up the chip-specific NF values will make adding support for new chips hard. Use separate macros for each chip. Currently, AR9462 has the same value for all NF limits. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH v2 8/9] ath9k: Fix programming SYNTH4 for AR9462

2012-02-15 Thread Sujith Manoharan
The LONG_SHIFT_SELECT offset is different for AR9462 from the other chip families. Fix this. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_phy.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless

[ath9k-devel] [PATCH v2 9/9] ath9k: Fix descriptor length for AR9462

2012-02-15 Thread Sujith Manoharan
Change the descriptor length to 24 and explicitly set the control field 23 to zero. Not doing so would result in dropping of frames. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c |6 +- drivers/net/wireless/ath/ath9k

[ath9k-devel] [RFC/WIP 00/22] ath9k/ath9k_htc BTCOEX cleanup

2012-02-21 Thread Sujith Manoharan
Sujith Manoharan (22): ath9k: Remove AR9462 v1.0 support ath9k: Cleanup MCI init/deinit routines ath9k: Initialize MCI params using a helper ath9k: Move BTCOEX init/deinit functions to gpio.c ath9k: Use proper start/stop routines for BTCOEX ath9k: Process BTCOEX interrupts using a helper

[ath9k-devel] [RFC/WIP 03/22] ath9k: Initialize MCI params using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 24 drivers/net/wireless/ath/ath9k/btcoex.h |1 + drivers/net/wireless/ath/ath9k/init.c | 23 ++- 3 files changed, 27 insertions(+), 21

[ath9k-devel] [RFC/WIP 04/22] ath9k: Move BTCOEX init/deinit functions to gpio.c

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |2 + drivers/net/wireless/ath/ath9k/gpio.c | 51 drivers/net/wireless/ath/ath9k/init.c | 48 +- 3 files changed, 54

[ath9k-devel] [RFC/WIP 05/22] ath9k: Use proper start/stop routines for BTCOEX

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |3 ++- drivers/net/wireless/ath/ath9k/gpio.c | 31 ++- drivers/net/wireless/ath/ath9k/main.c | 19 ++- 3 files changed, 34 insertions(+), 19

[ath9k-devel] [RFC/WIP 06/22] ath9k: Process BTCOEX interrupts using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 + drivers/net/wireless/ath/ath9k/gpio.c | 12 drivers/net/wireless/ath/ath9k/main.c |7 +-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers

[ath9k-devel] [RFC/WIP 07/22] ath9k: Calculate ampdu limit using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 + drivers/net/wireless/ath/ath9k/gpio.c | 14 ++ drivers/net/wireless/ath/ath9k/xmit.c | 19 +-- 3 files changed, 24 insertions(+), 10 deletions(-) diff

[ath9k-devel] [RFC/WIP 08/22] ath9k: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
This patch uses CONFIG_ATH9K_BTCOEX_SUPPORT to conditionally compile btcoex-related code in the driver core. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/Makefile |4 ++-- drivers/net/wireless/ath/ath9k/ath9k.h | 28

[ath9k-devel] [RFC/WIP 09/22] ath9k: Initialize BTCOEX scheme using a helper

2012-02-21 Thread Sujith Manoharan
Setting up the required scheme can be done as part of the BTCOEX initialization path and it doesn't belong in ath9k_hw_fill_cap_info() anyway. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 34 +++ drivers/net

[ath9k-devel] [RFC/WIP 10/22] ath9k_hw: Use a helper function to get MCI ISR

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c | 29 +- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 25 +++ drivers/net/wireless/ath/ath9k/hw.h |1 + 3 files changed, 28

[ath9k-devel] [RFC/WIP 11/22] ath9k_hw: Handle MCI power state using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 17 + drivers/net/wireless/ath/ath9k/hw.c | 17 ++--- drivers/net/wireless/ath/ath9k/hw.h |1 + 3 files changed, 20 insertions(+), 15

[ath9k-devel] [RFC/WIP 12/22] ath9k_hw: Setup MCI calibration using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_calib.c | 42 ++--- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 48 + drivers/net/wireless/ath/ath9k/hw.h |2 + 3 files changed, 54

[ath9k-devel] [RFC/WIP 13/22] ath9k_hw: Cleanup MCI bits from ath9k_hw_reset()

2012-02-21 Thread Sujith Manoharan
This patch moves all the MCI-specific code in the main reset function to helper functions. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 142 +++ drivers/net/wireless/ath/ath9k/hw.c | 129

[ath9k-devel] [RFC/WIP 14/22] ath9k_hw: Cleanup MCI bits from hw.h

2012-02-21 Thread Sujith Manoharan
This patch moves all the MCI-specific declarations that have been dumped unceremoniously in hw.h to ar9003_mci.h Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c |1 + drivers/net/wireless/ath/ath9k/ar9003_mci.h | 195

[ath9k-devel] [RFC/WIP 15/22] ath9k_hw: Cleanup MCI function declarations

2012-02-21 Thread Sujith Manoharan
This patch converts a few functions to static variants and removes extraneous declarations. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 508 +- drivers/net/wireless/ath/ath9k/ar9003_mci.h | 13 - 2 files

[ath9k-devel] [RFC/WIP 16/22] ath9k_hw: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
Make use of CONFIG_ATH9K_BTCOEX_SUPPORT in ath9k_hw to provide a clean way of compilation without BTCOEX support. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/Makefile |6 +- drivers/net/wireless/ath/ath9k/ar9003_mci.h | 63

[ath9k-devel] [RFC/WIP 17/22] ath9k_htc: Start/stop btcoex using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h |2 ++ drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 24 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 15 +++ 3 files changed, 29

[ath9k-devel] [RFC/WIP 18/22] ath9k_htc: Init BTCOEX inside htc_drv_gpio.c

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h |1 + drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 32 + drivers/net/wireless/ath/ath9k/htc_drv_init.c | 32 + 3 files changed, 34

[ath9k-devel] [RFC/WIP 19/22] ath9k_htc: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
ath9k_htc can also make use of CONFIG_ATH9K_BTCOEX_SUPPORT to be compiled without BTCOEX support. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h | 18 +++--- drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 10

[ath9k-devel] [RFC/WIP 20/22] ath9k: Remove ATH_BTCOEX_CFG_NONE checks

2012-02-21 Thread Sujith Manoharan
Since BTCOEX code can be compiled out cleanly now, remove these checks. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 21 - drivers/net/wireless/ath/ath9k/gpio.c |9 - drivers/net/wireless

[ath9k-devel] [RFC/WIP 21/22] ath9k: Remove ATH9K_HW_CAP_MCI checks

2012-02-21 Thread Sujith Manoharan
With the ability to remove BTCOEX support at compile time, these checks are no longer needed. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 54 --- drivers/net/wireless/ath/ath9k/gpio.c |2

[ath9k-devel] [RFC/WIP 22/22] ath9k: Modify ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
ATH9K_BTCOEX_SUPPORT is now used by both ath9k and ath9k_htc to enable BT coexistence. Fix Kbuild to allow this. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/Kconfig | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff

Re: [ath9k-devel] [RFC/WIP 09/22] ath9k: Initialize BTCOEX scheme using a helper

2012-02-21 Thread Sujith Manoharan
Mohammed Shafi wrote: is it possible to move it to gpio.c, except we are initializing btcoex related GPIO pins so logically gpio.c could be a good idea. pls let me know if i had missed something The coex parameters in ath_hw are initialized, so btcoex.c is okay. Sujith

Re: [ath9k-devel] [RFC/WIP 14/22] ath9k_hw: Cleanup MCI bits from hw.h

2012-02-21 Thread Sujith Manoharan
Mohammed Shafi wrote: we did put all those stuff in ar9003_mci.h, but then it caused lot of compilation errors. we fixed it overnight. would including ar9003_mci.h in mci.h won't be a problem. i thought mci.h is part of ath9k(non-hw related stuff). please let me know if i had missed

Re: [ath9k-devel] [RFC/WIP 16/22] ath9k_hw: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
Julian Calaby wrote: If I recall correctly, the recommended form here is to create a inline function that returns false, rather than the #define - this way the type checking of the function's arguments still happens when CONFIG_ATH9K_BTCOEX_SUPPORT is disabled. Right, that would be more

Re: [ath9k-devel] [RFC/WIP 01/22] ath9k: Remove AR9462 v1.0 support

2012-02-21 Thread Sujith Manoharan
Peter Stuge wrote: Sujith Manoharan wrote: v1.0 chips are not available in the market. Maybe delete the macro as well then. Thanks for catching this, I'll fix it. Sujith ___ ath9k-devel mailing list ath9k-devel@lists.ath9k.org https

[ath9k-devel] [PATCH 00/26] ath9k/ath9k_htc BTCOEX cleanup

2012-02-21 Thread Sujith Manoharan
over the last RFC series cleaning up MCI in the driver core. If you would like a single mbox file of all the pending patches, please use: http://sujith.github.com/patches/wl/wl-ath9k-Feb-22-2012.patch Sujith Sujith Manoharan (26): ath9k: Remove AR9462 v1.0 support ath9k: Cleanup MCI init

[ath9k-devel] [PATCH 02/26] ath9k: Cleanup MCI init/deinit routines

2012-02-21 Thread Sujith Manoharan
] [81436edd] ? retint_swapgs+0x13/0x1b [ 1263.788446] [812483be] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 1263.788450] [814378e9] system_call_fastpath+0x16/0x1b [ 1263.788453] ---[ end trace 3ab4d030ffde40d4 ]--- Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com

[ath9k-devel] [PATCH 03/26] ath9k: Initialize MCI params using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 24 drivers/net/wireless/ath/ath9k/btcoex.h |1 + drivers/net/wireless/ath/ath9k/init.c | 23 ++- 3 files changed, 27 insertions(+), 21

[ath9k-devel] [PATCH 04/26] ath9k: Move BTCOEX init/deinit functions to gpio.c

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |2 + drivers/net/wireless/ath/ath9k/gpio.c | 51 drivers/net/wireless/ath/ath9k/init.c | 48 +- 3 files changed, 54

[ath9k-devel] [PATCH 05/26] ath9k: Use proper start/stop routines for BTCOEX

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |3 ++- drivers/net/wireless/ath/ath9k/gpio.c | 31 ++- drivers/net/wireless/ath/ath9k/main.c | 19 ++- 3 files changed, 34 insertions(+), 19

[ath9k-devel] [PATCH 06/26] ath9k: Process BTCOEX interrupts using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 + drivers/net/wireless/ath/ath9k/gpio.c | 12 drivers/net/wireless/ath/ath9k/main.c |7 +-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers

[ath9k-devel] [PATCH 07/26] ath9k: Calculate ampdu limit using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 + drivers/net/wireless/ath/ath9k/gpio.c | 14 ++ drivers/net/wireless/ath/ath9k/xmit.c | 19 +-- 3 files changed, 24 insertions(+), 10 deletions(-) diff

[ath9k-devel] [PATCH 09/26] ath9k: Initialize BTCOEX scheme using a helper

2012-02-21 Thread Sujith Manoharan
Setting up the required scheme can be done as part of the BTCOEX initialization path and it doesn't belong in ath9k_hw_fill_cap_info() anyway. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 34 +++ drivers/net

[ath9k-devel] [PATCH 11/26] ath9k_hw: Handle MCI power state using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 17 + drivers/net/wireless/ath/ath9k/hw.c | 17 ++--- drivers/net/wireless/ath/ath9k/hw.h |1 + 3 files changed, 20 insertions(+), 15

[ath9k-devel] [PATCH 12/26] ath9k_hw: Setup MCI calibration using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_calib.c | 42 ++--- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 48 + drivers/net/wireless/ath/ath9k/hw.h |2 + 3 files changed, 54

[ath9k-devel] [PATCH 13/26] ath9k_hw: Cleanup MCI bits from ath9k_hw_reset()

2012-02-21 Thread Sujith Manoharan
This patch moves all the MCI-specific code in the main reset function to helper functions. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 142 +++ drivers/net/wireless/ath/ath9k/hw.c | 129

[ath9k-devel] [PATCH 14/26] ath9k_hw: Cleanup MCI bits from hw.h

2012-02-21 Thread Sujith Manoharan
This patch moves all the MCI-specific declarations that have been dumped unceremoniously in hw.h to ar9003_mci.h Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mac.c |1 + drivers/net/wireless/ath/ath9k/ar9003_mci.h | 195

[ath9k-devel] [PATCH 15/26] ath9k_hw: Cleanup MCI function declarations

2012-02-21 Thread Sujith Manoharan
This patch converts a few functions to static variants and removes extraneous declarations. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 508 +- drivers/net/wireless/ath/ath9k/ar9003_mci.h | 13 - 2 files

[ath9k-devel] [PATCH 16/26] ath9k_hw: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
Make use of CONFIG_ATH9K_BTCOEX_SUPPORT in ath9k_hw to provide a clean way of compilation without BTCOEX support. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/Makefile |6 +- drivers/net/wireless/ath/ath9k/ar9003_mci.h | 63

[ath9k-devel] [PATCH 17/26] ath9k_htc: Start/stop btcoex using a helper

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h |2 ++ drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 24 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 15 +++ 3 files changed, 29

[ath9k-devel] [PATCH 18/26] ath9k_htc: Init BTCOEX inside htc_drv_gpio.c

2012-02-21 Thread Sujith Manoharan
Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h |1 + drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 32 + drivers/net/wireless/ath/ath9k/htc_drv_init.c | 32 + 3 files changed, 34

[ath9k-devel] [PATCH 19/26] ath9k_htc: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
ath9k_htc can also make use of CONFIG_ATH9K_BTCOEX_SUPPORT to be compiled without BTCOEX support. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc.h | 18 +++--- drivers/net/wireless/ath/ath9k/htc_drv_gpio.c | 10

[ath9k-devel] [PATCH 20/26] ath9k: Remove ATH_BTCOEX_CFG_NONE checks

2012-02-21 Thread Sujith Manoharan
Since BTCOEX code can be compiled out cleanly now, remove these checks. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/btcoex.c | 21 - drivers/net/wireless/ath/ath9k/gpio.c |9 - drivers/net/wireless

[ath9k-devel] [PATCH 21/26] ath9k: Remove ATH9K_HW_CAP_MCI checks

2012-02-21 Thread Sujith Manoharan
With the ability to remove BTCOEX support at compile time, these checks are no longer needed. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 54 --- drivers/net/wireless/ath/ath9k/gpio.c |2

[ath9k-devel] [PATCH 22/26] ath9k: Modify ATH9K_BTCOEX_SUPPORT

2012-02-21 Thread Sujith Manoharan
ATH9K_BTCOEX_SUPPORT is now used by both ath9k and ath9k_htc to enable BT coexistence. Fix Kbuild to allow this. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/Kconfig | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff

[ath9k-devel] [PATCH 23/26] ath9k_hw: Cleanup MCI reset routine

2012-02-21 Thread Sujith Manoharan
* Use a separate function to enable/disable OneStepLookAhead. * Remove unnecessary hardware SREV checks. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 91 ++- 1 files changed, 47 insertions(+), 44

[ath9k-devel] [PATCH 24/26] ath9k_hw: Remove HW revision checks

2012-02-21 Thread Sujith Manoharan
They are not needed since MCI will be enabled only for AR9462 v2.0 Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 34 --- 1 files changed, 10 insertions(+), 24 deletions(-) diff --git a/drivers/net/wireless

[ath9k-devel] [PATCH 25/26] ath9k_hw: MCI whitespace/debug cleanup

2012-02-21 Thread Sujith Manoharan
This patch fixes indentation and the general coding style in ar9003_mci.c. Also, minimize the amount of debug log output generated by MCI. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ar9003_mci.c | 362 +-- 1 files changed

[ath9k-devel] [PATCH 26/26] ath9k: Cleanup mci.c

2012-02-21 Thread Sujith Manoharan
Cleanup whitespace, fix indentation and coding style. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/mci.c | 213 ++ 1 files changed, 59 insertions(+), 154 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH 26/26 v2] ath9k: Cleanup mci.c

2012-02-22 Thread Sujith Manoharan
Cleanup whitespace, fix indentation and coding style. Also remove debug messages that were flooding the log. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- v2 - Mention debug message cleanup in commit log. drivers/net/wireless/ath/ath9k/mci.c | 213

Re: [ath9k-devel] [PATCH 25/26] ath9k_hw: MCI whitespace/debug cleanup

2012-02-22 Thread Sujith Manoharan
Joe Perches wrote: A for loop with a test/continue would reduce indentation. Might fix a bug too if timeout is ever negative. for (; timeout 0; udelay(10), timeout -= 10) { if (!(REG_READ(ah, address) bit_position)) continue; etc...

Re: [ath9k-devel] [PATCH 16/26] ath9k_hw: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-22 Thread Sujith Manoharan
Julian Calaby wrote: -static inline bool ar9003_mci_is_ready(struct ath_hw *ah) +#else + +#define ar9003_mci_is_ready(...) false You missed one =) Heh, I did fix this, but messed up the git-rebase foo. :) Sujith ___ ath9k-devel mailing list

[ath9k-devel] [PATCH v2 16/26] ath9k_hw: Use CONFIG_ATH9K_BTCOEX_SUPPORT

2012-02-22 Thread Sujith Manoharan
Make use of CONFIG_ATH9K_BTCOEX_SUPPORT in ath9k_hw to provide a clean way of compilation without BTCOEX support. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- v2 : Fix ar9003_mci_is_ready() drivers/net/wireless/ath/ath9k/Makefile |6 +- drivers/net/wireless/ath/ath9k

[ath9k-devel] logging the number of retransmissions at mac layer

2012-02-28 Thread Sujith Manoharan
abhinav narain wrote: hi, I am working on openwrt main trunk (frozen in ~aug) I am trying to get the stats about number of retransmissions at mac layer from ath9k drivers but I can't get where to look for.. The information is not given by debugfs. I looked at iw code which uses netlink

Re: [ath9k-devel] Failed to stop Tx DMA and Could not stop RX with AR9485

2012-03-01 Thread Sujith Manoharan
Peter Stuge wrote: I think you may be misunderstanding what I write. I don't think anyone is misunderstanding anything about you, or what you write. Sujith ___ ath9k-devel mailing list ath9k-devel@lists.ath9k.org

[ath9k-devel] [PATCH 1/6] ath9k: Remove unnecessary initialization

2012-03-14 Thread Sujith Manoharan
There is no need to mask out SWBA/BMISS from the interrupt mask in start(). Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/main.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless

[ath9k-devel] [PATCH 3/6] ath9k: Remove 'other' VIF count

2012-03-14 Thread Sujith Manoharan
It is not needed and will not be used anyway since unsupported interfaces are not allowed to be created. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 - drivers/net/wireless/ath/ath9k/debug.c |4 ++-- drivers/net/wireless/ath

[ath9k-devel] [PATCH 4/6] ath9k_hw: Cleanup FastChannelChange

2012-03-14 Thread Sujith Manoharan
The logic to determine whether to use FCC is a bit convoluted. Use a small helper function to decide whether FCC is to be used. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/hw.c | 104 +++-- drivers/net/wireless/ath

[ath9k-devel] [PATCH 5/6] ath9k: Remove aggregation flags

2012-03-14 Thread Sujith Manoharan
SC_OP_TXAGGR and SC_OP_RXAGGR are not really needed. The HT capabilities of the station and HW can be used instead. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h | 24 +++- drivers/net/wireless/ath/ath9k/init.c |9

[ath9k-devel] [PATCH 6/6] ath9k: Fix multi-VIF BSS handling

2012-03-14 Thread Sujith Manoharan
mac80211 provides short preamble information and ERP protection information on a per-BSS basis, which can be used. Remove flags stored in the driver, which was incorrect since they were being used in a global manner. Signed-off-by: Sujith Manoharan c_man...@qca.qualcomm.com --- drivers/net

Re: [ath9k-devel] Panasonic N5HBZ0000055 802.11abgn Wireless Adapter Not Working

2012-03-15 Thread Sujith Manoharan
Please keep the mailing list in CC. Ryan Roper wrote: And here is the output of modinfo ath9k_htc: filename: /lib/modules/3.2.9-1-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko.gz You probably failed to do a 'make install'. modinfo -n ath9k_htc should show:

Re: [ath9k-devel] Panasonic N5HBZ0000055 802.11abgn Wireless Adapter Not Working

2012-03-15 Thread Sujith Manoharan
Ryan Roper wrote: I installed using the Arch User Repository (https://aur.archlinux.org/packages.php?ID=16829) and modified the PKGBUILD as needed. modinfo -n ath9k_htc does show: /lib/modules/3.2.9-1-ARCH/updates/drivers/net/wireless/ath/ath9k/ath9k_htc.ko Ok. So what does dmesg show

[ath9k-devel] need help with TP-Link TP-WN821NC

2012-03-22 Thread Sujith Manoharan
Oleksandr Yeremko wrote: Hi Everyone, I have TP-Link TP-WN821NC v3. When I insert it into my USB I get the next message in dmesg: [ 1134.704223] usb 2-2: new high speed USB device using ehci_hcd and address 7 [ 1134.823707] usb 2-2: New USB device found, idVendor=0cf3, idProduct=7015 [

Re: [ath9k-devel] need help with TP-Link TP-WN821NC

2012-03-23 Thread Sujith Manoharan
Oleksandr Yeremko wrote: Sujith, thank you very much for your answer. It helped - I am happy with new compat drivers now. Great. :) Sujith ___ ath9k-devel mailing list ath9k-devel@lists.ath9k.org

Re: [ath9k-devel] AR3012 + AR9485 combination?

2012-03-26 Thread Sujith Manoharan
Adrian Chadd wrote: I believe it's under active development and debugging at the present moment. That's what all of the recent btcoex MCI work is for. AR9485 is supported by ath9k. The MCI stuff is for AR9462. Sujith ___ ath9k-devel mailing list

Re: [ath9k-devel] AR3012 + AR9485 combination?

2012-03-26 Thread Sujith Manoharan
Adrian Chadd wrote: On 26 March 2012 20:32, Sujith Manoharan c_man...@qca.qualcomm.com wrote: Adrian Chadd wrote: I believe it's under active development and debugging at the present moment. That's what all of the recent btcoex MCI work is for. AR9485 is supported by ath9k. The MCI

  1   2   3   4   5   >