Re: [ath9k-devel] How to set a scan with ath9k driver

2013-05-22 Thread Mohammed Shafi Shajakhan
On Wed, May 22, 2013 at 02:12:13PM +0200, Francisco Cuesta wrote: Hello, I would like to know whether someone might point out where a sta-mode scan in ath9k driver is carried out. I mean, if I want to perform such a scan, I have seen that hostapd or wpa supplicant requests the driver

[ath9k-devel] [PATCH] ath9k_htc: Add PID/VID for a Ubiquiti WiFiStation

2012-10-16 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Roger says, Ubiquiti produce 2 versions of their WiFiStation USB adapter. One has an internal antenna, the other has an external antenna and name suffix EXT. They have separate USB ids and in distribution openSUSE 12.2 (kernel 3.4.6

[ath9k-devel] [PATCH 1/4] ath9k: Ensure we set FTP_STOMP_LOW weight when WLAN is idle

2012-10-08 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com When WLAN is idle ensure we downgrade to FTP_STOMP_LOW weight (from STOMP_LOW) to provide more bandwidth for BT FTP profile. WLAN's idleness can be estimated by taking into account of the rx data packets and just ignore beacons, qos

[ath9k-devel] [PATCH 2/4] ath9k_htc: Advertise interface combinations supported

2012-10-08 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com This will allow us to create virtual interface the driver supports. Also this ensures multivif support and limitation advertised by the driver is taken care in cfg80211 itself. Signed-off-by: Mohammed Shafi Shajakhan moham

[ath9k-devel] [PATCH 3/4] ath9k_htc: Remove interface combination specific checks

2012-10-08 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Once the driver advertizes interface combination logic based on its firmware/hardware limitation, cfg80211 takes care of all the necessary logic such as maximum beaconing vifs, standlone interface etc. Signed-off-by: Mohammed Shafi

[ath9k-devel] [PATCH 4/4] ath9k: Advertize beacon_int_infra_match

2012-10-08 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Currently ath9k need to have beacon interval matched between STA mode and beaconing mode. Advertize this through interface combinations. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k

Re: [ath9k-devel] [PATCH] ath9k: Ensure we set FTP_STOMP_LOW weight when WLAN is idle

2012-09-28 Thread Mohammed Shafi Shajakhan
Hi Holger, On Friday 28 September 2012 02:30 PM, Holger Schurig wrote: We WLAN is idle we can some better bandwidth to FTP by setting STOMP_LOW_FTP where stomping the FTP BT is pretty much reduced when compared to setting STOMP_LOW weight. I understand that english isn't your first language

[ath9k-devel] [PATCH] ath9k: Ensure we set FTP_STOMP_LOW weight when WLAN is idle

2012-09-27 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We WLAN is idle we can some better bandwidth to FTP by setting STOMP_LOW_FTP where stomping the FTP BT is pretty much reduced when compared to setting STOMP_LOW weight. we calculate WLAN is idle by taking into account of the rx data packets

[ath9k-devel] [RFC/RFT] ath9k: Advertize beacon_int_infra_match

2012-09-27 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Currently ath9k need to have beacon interval matched between STA mode and beaconing mode. Advertize this through interface combinations. Need to test this properly. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com

[ath9k-devel] [RFC 2/2] ath9k_htc: Remove interface combination specific checks

2012-09-27 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Once the driver advertizes interface combination logic based on its firmware/hardware limitation, cfg80211 takes care of all the necessary logic such as maximum beaconing vifs, standlone interface etc. Signed-off-by: Antonio Quartulli

[ath9k-devel] [RFC 1/2] ath9k_htc: Advertize allowed vif combinations

2012-09-27 Thread Mohammed Shafi Shajakhan
to be advertized in the combinations allowed. Signed-off-by: Antonio Quartulli or...@autistici.org Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc_drv_init.c | 35 + 1 files changed, 35 insertions(+), 0 deletions(-) diff

Re: [ath9k-devel] [RFC 1/2] ath9k_htc: Advertize allowed vif combinations

2012-09-27 Thread Mohammed Shafi Shajakhan
On Thursday 27 September 2012 09:22 PM, Mohammed Shafi Shajakhan wrote: From: Antonio Quartulli or...@autistici.org Advertize allowed VIFs combinations to the cfg80211 sublayer. Other than that, practical tests shown that ath9k_htc devices allow an IBSS VIF to coexist with VIF set up on other

Re: [ath9k-devel] [RFC 1/2] ath9k_htc: Advertize allowed vif combinations

2012-09-27 Thread Mohammed Shafi Shajakhan
Hi Sujith, On Friday 28 September 2012 07:53 AM, Sujith Manoharan wrote: Mohammed Shafi Shajakhan wrote: From: Antonio Quartulli or...@autistici.org Advertize allowed VIFs combinations to the cfg80211 sublayer. Other than that, practical tests shown that ath9k_htc devices allow an IBSS VIF

[ath9k-devel] [PATCH] ath9k: Fix rx filtering issue for older chips

2012-09-25 Thread Mohammed Shafi Shajakhan
Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/recv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 9b2a8cc..a04028b 100644 --- a/drivers/net/wireless/ath

Re: [ath9k-devel] :

2012-09-23 Thread Mohammed Shafi Shajakhan
On Tue, Aug 21, 2012 at 10:43 AM, Mohammed Shafi Shajakhan moham...@qca.qualcomm.com wrote: Hi, On Friday 17 August 2012 12:42 PM, Sunil Mehta wrote: Hi We are using AR9331 and are currently using the device in - AP mode, and Station mode. We would like to use the device for a P2P

Re: [ath9k-devel] [PATCH v2] ath9k: Fix mesh related rx filtering issue for older chips

2012-09-17 Thread Mohammed Shafi Shajakhan
Hi Tom, On Monday 17 September 2012 10:47 AM, Mohammed Shafi Shajakhan wrote: Hi Tom, + linux-wireless On Saturday 15 September 2012 12:24 AM, Thomas Wagner wrote: Hi, I'm really not sure about this being tied to sc-nvifs. If it's mesh related, how about just adding a check

Re: [ath9k-devel] [PATCH v2] ath9k: Fix mesh related rx filtering issue for older chips

2012-09-16 Thread Mohammed Shafi Shajakhan
Hi Tom, + linux-wireless On Saturday 15 September 2012 12:24 AM, Thomas Wagner wrote: Hi, I'm really not sure about this being tied to sc-nvifs. If it's mesh related, how about just adding a check for the number of mesh interfaces [...] No, it is not mesh related! Several frames where

[ath9k-devel] [PATCH] ath9k: update hw_timer_enabled to false when we stop generic timers

2012-09-14 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Update the 'hw_timer_enabled' to 'false' wherever we are stopping hardware generic timers, excecpt the case where we start them again immediately. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless

[ath9k-devel] [PATCH] ath9k: Fix mesh related filtering issue for older chips

2012-09-14 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We need to have the promiscus mode enabled for older chipset(ie rule out many frames being filtered in the hardware itself)if 'FIF_OTHER_BSS' flag is set, when we start the mesh mode. Fix this by enabling promiscus mode for all chipsets

[ath9k-devel] [PATCH v2] ath9k: Fix mesh related rx filtering issue for older chips

2012-09-14 Thread Mohammed Shafi Shajakhan
-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/recv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 4480c0c..76db0b3 100644 --- a/drivers/net

Re: [ath9k-devel] [PATCH] ath9k: Fix mesh related filtering issue for older chips

2012-09-14 Thread Mohammed Shafi Shajakhan
On Friday 14 September 2012 08:16 PM, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We need to have the promiscus mode enabled for older chipset(ie rule out many frames being filtered in the hardware itself)if 'FIF_OTHER_BSS' flag is set, when we

[ath9k-devel] [RFC] ath9k: Ensure we set FTP_STOMP_LOW weight when WLAN is idle

2012-09-12 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We WLAN is idle we can some better bandwidth to FTP by setting STOMP_LOW_FTP where stomping the FTP BT is pretty much reduced when compared to setting STOMP_LOW weight. we calculate WLAN is idle by taking into account of the rx data packets

[ath9k-devel] [PATCH] ath9k: Add Generic hardware timer interrupt in debugfs

2012-09-07 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Having generic hardware timer interrupt in debugfs would come handy when we are debugging 3 WIRE BTCOEX issues. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/debug.c |3

[ath9k-devel] [PATCH 1/8] ath9k_hw: Fix invalid MCI GPM index access/caching

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com There is a possibility that AR_MCI_GPM_1 register can return 0xdeadbeef and this results in caching of invalid GPM index in ar9003_mci_is_gpm_valid. Ensure we have appropriate checks to avoid this. Cc: xijin luo xi...@qca.qualcomm.com

[ath9k-devel] [PATCH 2/8] ath9k: Fix BTCOEX timer triggering comparision

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Its more correct to convert btcoex_period to 'us' while comparing with btcoex_no_stomp which is in 'us'. Did not find any functionality issues being fixed, as the generic hardware timer triggers are usually refreshed with the newer duty

[ath9k-devel] [PATCH 3/8] ath9k: Make use of ath_stop_ani wrapper

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Additionally it has a neat debug message informing us that we are stopping the ANI algorithm. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/main.c |2 +- 1 files changed, 1

[ath9k-devel] [PATCH 4/8] ath9k: Remove an obselete function declaration

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/ath9k.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net

[ath9k-devel] [PATCH 5/8] ath9k: Cleanup add/change_interface callbacks

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *Remove all the checks that will be handled by cfg80211 based on the interface combination advertised. For instance, driver supports at the maximum 8 beaconing interface, while we advertise maximum 8 beaconing interface in the interface

[ath9k-devel] [PATCH 6/8] ath9k_htc: minor cleanup in ath9k_htc_add_station

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 14 +- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k

[ath9k-devel] [PATCH 7/8] ath9k_htc: Add a modparam to enable BTCOEX rather than default

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Enable BTCOEX for WB193(which seems to be the only supported ath9k_htc BTCOEX chipset)only when it is enabled via modparam, rather than enabling it by default. Cc: Vivek Natarajan natar...@qualcomm.com Signed-off-by: Mohammed Shafi

[ath9k-devel] [PATCH 8/8] ath9k_htc: Cancel BTCOEX related work before disabling BTCOEX

2012-09-04 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Before disabling BTCOEX in the h/w cancel all BTCOEX related works. This is similar to the commit in ath9k(c32cdbd8) ath9k: Stop the BTCOEX timers before disabling BTCOEX Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com

[ath9k-devel] [RFC] ath9k: update hw_timer_enabled to false when we stop generic timers

2012-09-03 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Update the 'hw_timer_enabled' to 'false' wherever we are stopping hardware generic timers, excecpt the case where we start them again immediately. I will just test the case the generic hardware timer is stopped again and again even though

Re: [ath9k-devel] [PATCH] ath9k: Add PID/VID support for AR1111

2012-08-05 Thread Mohammed Shafi Shajakhan
wrote: On Wed, Aug 1, 2012 at 11:28 PM, Mohammed Shafi Shajakhan moham...@qca.qualcomm.com wrote: From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com AR is same as AR9485. The h/w difference between them is quite insignificant, Felix suggests only very few baseband features may

[ath9k-devel] [PATCH] ath9k: Add PID/VID support for AR1111

2012-08-02 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com AR is same as AR9485. The h/w difference between them is quite insignificant, Felix suggests only very few baseband features may not be available in AR. The h/w code for AR9485 is already present, so AR should work fine

[ath9k-devel] [PATCH v4 00/10] Add support for WOW in ath9k

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers, deauth/disassoc patterns (a special case of user pattern) are tested. User pattern needs a bit of investigation on parsing to appropriate 802.11 format. we will do

[ath9k-devel] [PATCH v4 01/10] ath9k_hw: Add register definitions for WoW support

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive frame failure count, beacon fail enable, beacon timeout, keep alive timeout, auto keep alive disable

[ath9k-devel] [PATCH v4 02/10] ath9k: Add definitions and structures to support WoW

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *add structures, macros and variables for WoW, so that the driver can make use of it. *maintain a list for user enabled patterns and masks *track pattern slots for the hardware limitation on the maximum number of patterns that can be stored

[ath9k-devel] [PATCH v4 03/10] ath9k_hw: Add WoW hardware capability flags

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user defined pattern or de-authentication/disassoc pattern *device such AR9280 requires first four bytes for all sort of patterns Cc: Senthil

[ath9k-devel] [PATCH v4 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware

[ath9k-devel] [PATCH v4 05/10] ath9k: advertise supported WoW flags to upper layer

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com currently the code supports WoW triggers due to *magic packet *user defined patterns *deauth and disassoc patterns *disconnect - beacon miss, last beacon received timeout, no ack for keeep alive frames. Cc: Senthil Balasubramanian senth

[ath9k-devel] [PATCH v4 06/10] ath9k_hw: INI changes for WoW for AR9002 chipsets

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com for AR9002 family of chipsets and for WoW sleep, we reprogram the SerDes so that the PLL and CHK REQ are both enabled. this uses more power but in certain cases this is required as otherwise WoW sleep is unstable and chip may disappear. Cc

[ath9k-devel] [PATCH v4 07/10] ath9k_hw: Add hardware code for WoW

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com add a new file wow.c which takes care of the hardware code for WoW. *program the descriptors and data words to periodically send Keep Alive Frames. *program the user defined patterns/masks and pattern length in the hardware registers

[ath9k-devel] [PATCH v4 08/10] ath: Add Wake-on-Wireless debug mask

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com to help the developers and users to debug/know whats happening with WoW Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com Signed-off-by: Mohammed Shafi

[ath9k-devel] [PATCH v4 09/10] ath9k: Add WoW related mac80211 callbacks

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com add suspend/resume/set_wakeup callbacks to the driver *suspend - bail out only if all the conditions for configuring WoW. is fine, currently multivif case is not handled - check for associated state. - map wow triggers from user space

[ath9k-devel] [PATCH v4 10/10] ath9k: do not disable hardware while wow is enabled

2012-07-10 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Hardware needs to be AWAKE and should maintain association with the AP to process WoW triggers any time Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com

Re: [ath9k-devel] [PATCH v2 1/2] ath9k: Fix MCI cleanup

2012-07-08 Thread Mohammed Shafi Shajakhan
Hi Julian, On Monday 09 July 2012 04:57 AM, Julian Calaby wrote: Hi Mohammed, On Sat, Jul 7, 2012 at 12:39 AM, Mohammed Shafi Shajakhan moham...@qca.qualcomm.com wrote: From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We are doing MCI cleanup eventhough BTCOEX is not enabled via

Re: [ath9k-devel] [PATCH v3 00/10] Add support for WOW in ath9k

2012-07-07 Thread Mohammed Shafi Shajakhan
. On Mon, Jun 25, 2012 at 07:42:49PM +0530, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers, deauth/disassoc patterns (a special case of user pattern) are tested with AR9485. User

[ath9k-devel] [PATCH v2 1/2] ath9k: Fix MCI cleanup

2012-07-06 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We are doing MCI cleanup eventhough BTCOEX is not enabled via module parameter. This means we do ath_mci_cleanup though we skipped calling ath_mci_setup. Yet it does not causes any issues now as we free the DMA buffer allocated only when

[ath9k-devel] [PATCH v2 2/2] ath9k: Stop the BTCOEX timers before disabling BTCOEX

2012-07-06 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Its safe to stop the BTCOEX timers 'period_timer' and 'no_stomp_timer' before disabling BTCOEX. These timers can call ath9k_hw_btcoex_enable (or) change the BT stomp type if they seem to be running after we had called

[ath9k-devel] [PATCH 1/2] ath9k: Fix MCI cleanup

2012-07-05 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We are doing MCI cleanup eventhough BTCOEX is not enabled via module parameter. This means we do ath_mci_cleanup though we skipped calling ath_mci_setup. Yet it does not causes any issues now as we free the DMA buffer allocated only when

[ath9k-devel] [RFC] ath9k: Fix MCI cleanup

2012-07-03 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com We are doing MCI cleanup eventhough BTCOEX is not enabled via module parameter. This means we do ath_mci_cleanup though we skipped calling ath_mci_setup. Yet it does not causes any issues now as we free the DMA buffer allocated only when

Re: [ath9k-devel] [RFC] ath9k: Fix MCI cleanup

2012-07-03 Thread Mohammed Shafi Shajakhan
On Tuesday 03 July 2012 08:47 PM, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com We are doing MCI cleanup eventhough BTCOEX is not enabled via module parameter. This means we do ath_mci_cleanup though we skipped calling ath_mci_setup. Yet it does

[ath9k-devel] [RFC] ath9k: Stop the BT timers before disabling BT

2012-07-03 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Stop the BT timers 'period_timer' and 'no_stomp_timer'. Both these timers can change the BT stomp type especially for AR9462 chipsets eventhough we had called ath9k_hw_btcoex_disable. ath9k_hw_btcoex_disable-ath9k_hw_btcoex_bt_stomp(ah

[ath9k-devel] [RFC] ath9k: Fix clearing of BTCOEX flags

2012-06-28 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com BTCOEX flags are set/cleared by atomic operations. We got to do the same in ath9k_btcoex_timer_resume, while clearing those BTCOEX flags. Cc: Sujith Manoharan c_man...@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan moham

[ath9k-devel] [PATCH] ath9k: Fix clearing of BTCOEX flags

2012-06-28 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com BTCOEX flags are set/cleared by atomic operations. We got to do the same in ath9k_btcoex_timer_resume, while clearing those BTCOEX flags. Acked-by: Sujith Manoharan c_man...@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan moham

[ath9k-devel] [PATCH 2/2] ath9k: Fix signedness in a MCI debug message

2012-06-27 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com seems i got a message like this ath: phy0: BT_Status_Update: is_link=0, linkId=2, state=1, SEQ=-2085766476 initially. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/mci.c |2 +- 1

[ath9k-devel] [PATCH 1/2] ath9k_hw: make use of the wrapper to check for MCI init

2012-06-27 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com ath9k_hw_mci_is_enabled wrapper also takes care of ATH9K_HW_CAP_MCI being set for the AR9462 under test. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/gpio.c |2 +- 1 files

Re: [ath9k-devel] [PATCH 2/2] ath9k: Fix signedness in a MCI debug message

2012-06-27 Thread Mohammed Shafi Shajakhan
Hi Felix, On Wednesday 27 June 2012 08:18 PM, Felix Fietkau wrote: On 2012-06-27 4:30 PM, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com seems i got a message like this ath: phy0: BT_Status_Update: is_link=0, linkId=2, state=1, SEQ=-2085766476

Re: [ath9k-devel] [PATCH 2/2] ath9k: Fix signedness in a MCI debug message

2012-06-27 Thread Mohammed Shafi Shajakhan
On Wednesday 27 June 2012 08:30 PM, Mohammed Shafi Shajakhan wrote: Hi Felix, On Wednesday 27 June 2012 08:18 PM, Felix Fietkau wrote: On 2012-06-27 4:30 PM, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com seems i got a message like this ath: phy0

Re: [ath9k-devel] [PATCH v3 09/10] ath9k: Add WoW related mac80211 callbacks

2012-06-26 Thread Mohammed Shafi Shajakhan
Hi Johannes, On Tuesday 26 June 2012 12:20 PM, Johannes Berg wrote: On Tue, 2012-06-26 at 10:54 +0530, Mohammed Shafi Shajakhan wrote: the user pattern needs bit more stuff, we need to convert it to our chip specific format(ie proper 802.11 format), previously there was a logic of duplicate

[ath9k-devel] [RFC] ath9k_hw: make use of the wrapper to check for MCI init

2012-06-26 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com ath9k_hw_mci_is_enabled wrapper also takes care of ATH9K_HW_CAP_MCI being set for the AR9462 under test. Signed-off-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com --- drivers/net/wireless/ath/ath9k/gpio.c |2 +- 1 files

Re: [ath9k-devel] [PATCH v2 09/10] ath9k: Add WoW related mac80211 callbacks

2012-06-25 Thread Mohammed Shafi Shajakhan
Hi John, please wait, i will send a v3 for this. i missed something while rebasing with the latest wireless-testing. On Saturday 23 June 2012 09:29 PM, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com add suspend/resume/set_wakeup callbacks

[ath9k-devel] [PATCH v3 00/10] Add support for WOW in ath9k

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers, deauth/disassoc patterns (a special case of user pattern) are tested with AR9485. User pattern needs a bit of investigation on parsing to appropriate 802.11 format

[ath9k-devel] [PATCH v3 01/10] ath9k_hw: Add register definitions for WoW support

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive frame failure count, beacon fail enable, beacon timeout, keep alive timeout, auto keep alive disable

[ath9k-devel] [PATCH v3 02/10] ath9k: Add definitions and structures to support WoW

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *add structures, macros and variables for WoW, so that the driver can make use of it. *maintain a list for user enabled patterns and masks *track pattern slots for the hardware limitation on the maximum number of patterns that can be stored

[ath9k-devel] [PATCH v3 03/10] ath9k_hw: Add WoW hardware capability flags

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user defined pattern or de-authentication/disassoc pattern *device such AR9280 requires first four bytes for all sort of patterns Cc: Senthil

[ath9k-devel] [PATCH v3 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware

[ath9k-devel] [PATCH v3 05/10] ath9k: advertise supported WoW flags to upper layer

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com currently the code supports WoW triggers due to *magic packet *user defined patterns *deauth and disassoc patterns *disconnect - beacon miss, last beacon received timeout, no ack for keeep alive frames. we need to support other WoW offload

[ath9k-devel] [PATCH v3 06/10] ath9k_hw: INI changes for WoW for AR9002 chipsets

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com for AR9002 family of chipsets and for WoW sleep, we reprogram the SerDes so that the PLL and CHK REQ are both enabled. this uses more power but in certain cases this is required as otherwise WoW sleep is unstable and chip may disappear. Cc

[ath9k-devel] [PATCH v3 07/10] ath9k_hw: Add hardware code for WoW

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com add a new file wow.c which takes care of the hardware code for WoW. *program the descriptors and data words to periodically send Keep Alive Frames. *program the user defined patterns/masks and pattern length in the hardware registers

[ath9k-devel] [PATCH v3 08/10] ath: Add Wake-on-Wireless debug mask

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com to help the developers and users to debug/know whats happening with WoW Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com Signed-off-by: Mohammed Shafi

[ath9k-devel] [PATCH v3 09/10] ath9k: Add WoW related mac80211 callbacks

2012-06-25 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com add suspend/resume/set_wakeup callbacks to the driver *suspend - bail out only if all the conditions for configuring WoW. is fine, currently multivif case is not handled - check for associated state. - map wow triggers from user space

Re: [ath9k-devel] [PATCH v3 01/10] ath9k_hw: Add register definitions for WoW support

2012-06-25 Thread Mohammed Shafi Shajakhan
Hi Sujith, On Monday 25 June 2012 10:49 PM, Sujith Manoharan wrote: Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive

Re: [ath9k-devel] [PATCH v3 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-06-25 Thread Mohammed Shafi Shajakhan
Hi Sujith, On Monday 25 June 2012 10:54 PM, Sujith Manoharan wrote: Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support

Re: [ath9k-devel] [PATCH v3 07/10] ath9k_hw: Add hardware code for WoW

2012-06-25 Thread Mohammed Shafi Shajakhan
Hi Sujith, On Tuesday 26 June 2012 12:14 AM, Sujith Manoharan wrote: Mohammed Shafi Shajakhan wrote: +static void ath9k_hw_set_powermode_wow_sleep(struct ath_hw *ah) +{ +struct ath_common *common = ath9k_hw_common(ah); + +REG_SET_BIT(ah, AR_STA_ID1, AR_STA_ID1_PWR_SAV

[ath9k-devel] [PATCH v2 00/10] Add support for WOW in ath9k

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers, deauth/disassoc patterns (a special case of user pattern) are tested with AR9485. User pattern needs a bit of investigation on parsing to appropriate 802.11 format

[ath9k-devel] [PATCH v2 01/10] ath9k_hw: Add register definitions for WoW support

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive frame failure count, beacon fail enable, beacon timeout, keep alive timeout, auto keep alive disable

[ath9k-devel] [PATCH v2 03/10] ath9k_hw: Add WoW hardware capability flags

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user defined pattern or de-authentication/disassoc pattern *device such AR9280 requires first four bytes for all sort of patterns Cc: Senthil

[ath9k-devel] [PATCH v2 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware

[ath9k-devel] [PATCH v2 06/10] ath9k_hw: INI changes for WoW for AR9002 chipsets

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com for AR9002 family of chipsets and for WoW sleep, we reprogram the SerDes so that the PLL and CHK REQ are both enabled. this uses more power but in certain cases this is required as otherwise WoW sleep is unstable and chip may disappear. Cc

[ath9k-devel] [PATCH v2 10/10] ath9k: do not disable hardware while wow is enabled

2012-06-23 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Hardware needs to be AWAKE and should maintain association with the AP to process WoW triggers any time Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com

[ath9k-devel] [PATCH 00/10] Add support for WOW in ath9k

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers, deauth/disassoc patterns (a special case of user pattern) are tested with AR9485, AR9280. User pattern needs a bit of investigation on parsing to appropriate 802.11

[ath9k-devel] [PATCH 01/10] ath9k_hw: Add register definitions for WoW support

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive frame failure count, beacon fail enable, beacon timeout, keep alive timeout, auto keep alive disable

[ath9k-devel] [PATCH 02/10] ath9k: Add definitions and structures to support WoW

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *add structures, macros and variables for WoW, so that the driver can make use of it. *maintain a list for user enabled patterns and masks *track pattern slots for the hardware limitation on the maximum number of patterns that can be stored

[ath9k-devel] [PATCH 03/10] ath9k_hw: Add WoW hardware capability flags

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user defined pattern or de-authentication/disassoc pattern *device such AR9280 requires first four bytes for all sort of patterns Cc: Senthil

[ath9k-devel] [PATCH 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware

[ath9k-devel] [PATCH 05/10] ath9k: advertise supported WoW flags to upper layer

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com currently the code supports WoW triggers due to *magic packet *user defined patterns *deauth and disassoc patterns *disconnect - beacon miss, last beacon received timeout, no ack for keeep alive frames. we need to support other WoW offload

[ath9k-devel] [PATCH 06/10] ath9k_hw: INI changes for WoW for AR9002 chipsets

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com for AR9002 family of chipsets and for WoW sleep, we reprogram the SerDes so that the PLL and CHK REQ are both enabled. this uses more power but in certain cases this is required as otherwise WoW sleep is unstable and chip may disappear. Cc

[ath9k-devel] [PATCH 08/10] ath: Add Wake-on-Wireless debug mask

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com to help the developers and users to debug/know whats happening with WoW Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com Tested-by: Mohammed Shafi Shajakhan

[ath9k-devel] [PATCH 09/10] ath9k: Add WoW related mac80211 callbacks

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com add suspend/resume/set_wakeup callbacks to the driver *suspend - bail out only if all the conditions for configuring WoW is fine, currently multivif case is not handled - check for associated state - map wow triggers from user space

[ath9k-devel] [PATCH 10/10] ath9k: do not disable hardware while wow is enabled

2012-06-19 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Cc: Senthil Balasubramanian senth...@qca.qualcomm.com Cc: Rajkumar Manoharan rmano...@qca.qualcomm.com Cc: vadi...@qca.qualcomm.com Tested-by: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan moham

Re: [ath9k-devel] [PATCH 02/10] ath9k: Add definitions and structures to support WoW

2012-06-19 Thread Mohammed Shafi Shajakhan
Hi Raj, On Tuesday 19 June 2012 11:08 PM, Rajkumar Manoharan wrote: On Tue, Jun 19, 2012 at 09:17:22PM +0530, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com *add structures, macros and variables for WoW, so that the driver can make use

Re: [ath9k-devel] [PATCH 03/10] ath9k_hw: Add WoW hardware capability flags

2012-06-19 Thread Mohammed Shafi Shajakhan
On Tuesday 19 June 2012 10:50 PM, Rajkumar Manoharan wrote: On Tue, Jun 19, 2012 at 09:17:23PM +0530, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user

Re: [ath9k-devel] [PATCH 05/10] ath9k: advertise supported WoW flags to upper layer

2012-06-19 Thread Mohammed Shafi Shajakhan
Hi Julian, On Wed, Jun 20, 2012 at 1:47 AM, Mohammed Shafi Shajakhan moham...@qca.qualcomm.com wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com currently the code supports WoW triggers due to *magic packet *user defined patterns *deauth and disassoc patterns *disconnect

Re: [ath9k-devel] [PATCH 07/10] ath9k_hw: Add hardware code for WoW

2012-06-19 Thread Mohammed Shafi Shajakhan
Hi Raj, On Tuesday 19 June 2012 11:20 PM, Rajkumar Manoharan wrote: On Tue, Jun 19, 2012 at 09:17:27PM +0530, Mohammed Shafi Shajakhan wrote: From: Mohammed Shafi Shajakhanmoham...@qca.qualcomm.com add a new file wow.c which takes care of the hardware code for WoW. [...] --- 3 files

[ath9k-devel] [RFC 00/10] Add support for WOW in ath9k

2012-06-18 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com Add support for hardware WoW in ath9k. Magic-packet, beacon loss triggers are tested with AR9485, AR9280. Hardware code was cleaned up addressing Rajkumar's comments. User pattern needs a bit of investigation on parsing to appropriate

[ath9k-devel] [RFC 01/10] ath9k_hw: Add register definitions for WoW support

2012-06-18 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *MAC WoW registers back-off shift, MAC interrupt enable, magic packet enable, pattern match enable, aifs, slot wait period, keep alive frame failure count, beacon fail enable, beacon timeout, keep alive timeout, auto keep alive disable

[ath9k-devel] [RFC 02/10] ath9k: Add definitions and structures to support WoW

2012-06-18 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com *add structures, macros and variables for WoW, so that the driver can make use of it. *maintain a list for user enabled patterns and masks *track pattern slots for the hardware limitation on the maximum number of patterns that can be stored

[ath9k-devel] [RFC 03/10] ath9k_hw: Add WoW hardware capability flags

2012-06-18 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com have seperate wow capability flags for *basic wow support *device capable of matching exact user defined pattern or de-authentication/disassoc pattern *device such AR9280 requires first four bytes for all sort of patterns Signed-off

[ath9k-devel] [RFC 04/10] ath9k_hw: advertise WoW support for capable chipsets

2012-06-18 Thread Mohammed Shafi Shajakhan
From: Mohammed Shafi Shajakhan moham...@qca.qualcomm.com support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware

  1   2   3   >