This patch series cleans up the existing BTCOEX code in ath9k/ath9k_htc.
Proper abstraction is added and a facility (CONFIG_ATH9K_BTCOEX_SUPPORT)
to optionally disable BTCOEX support at compile time is properly used.
Both ath9k and ath9k_htc make use of the same config option.
MCI, which is an
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
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
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
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
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
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
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 +++
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
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
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
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
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
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
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
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
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_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 +++---
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 -
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_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
Hi Sujith,
On Tue, Feb 21, 2012 at 2:52 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
This patch simplifies the buffer allocation functions
for MCI and removes unneeded memset calls. Also, a couple
of unused variables are removed and a memory leak in DMA
allocation is fixed.
[
Hi Sujith,
On Tue, Feb 21, 2012 at 2:52 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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 +
On Tue, Feb 21, 2012 at 2:53 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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
On Tue, Feb 21, 2012 at 2:53 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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 ++---
On Tue, Feb 21, 2012 at 2:52 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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
---
On Tue, Feb 21, 2012 at 2:53 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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
On Tue, Feb 21, 2012 at 2:53 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
This patch moves all the MCI-specific declarations that have been
dumped unceremoniously in hw.h to ar9003_mci.h
Sujith,
we did put all those stuff in ar9003_mci.h, but then it caused lot of
compilation errors.
On Tue, Feb 21, 2012 at 2:53 PM, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
This patch converts a few functions to static variants
and removes extraneous declarations.
thanks, with the help of new functions which you had introduced in
your previous patchs, which take care of calling few
Hi Sujith,
On Tue, Feb 21, 2012 at 20:23, Sujith Manoharan
c_man...@qca.qualcomm.com wrote:
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
---
Sujith Manoharan wrote:
v1.0 chips are not available in the market.
Maybe delete the macro as well then.
//Peter
___
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
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
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
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
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
hi,
I am working on ath9k device driver.
I want to pass some driver data to the userspace
the most crucial point is transferring skbuff from ath_rx_tasklet() to
ieee80211_rx() using struct ath_hw.
But there is no way to pass any extra information ... is there any void *
variable where I can
This patch series cleans up the existing BTCOEX code in ath9k/ath9k_htc.
Proper abstraction is added and a facility (CONFIG_ATH9K_BTCOEX_SUPPORT)
to optionally disable BTCOEX support at compile time is properly used.
Both ath9k and ath9k_htc make use of the same config option.
MCI, which is an
This patch simplifies the buffer allocation functions
for MCI and removes unneeded memset calls. Also, a couple
of unused variables are removed and a memory leak in DMA
allocation is fixed.
[ 1263.788267] WARNING: at
/home/sujith/dev/wireless-testing/lib/dma-debug.c:875 check_unmap+0x173/0x7e0()
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
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
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
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
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
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 +++
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
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
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
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
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
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
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
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_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 +++---
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 -
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_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
* 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
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
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
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
60 matches
Mail list logo