* [PATCH 0/4] Enable uAPSD support in AP mode
@ 2012-01-09 7:44 Thirumalai
2012-01-09 8:54 ` Johannes Berg
2012-01-09 11:37 ` Kalle Valo
0 siblings, 2 replies; 5+ messages in thread
From: Thirumalai @ 2012-01-09 7:44 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, Thirumalai
In addition to legacy power save, this series of patch adds
support for uAPSD in AP mode.
When connected station goes into suspend state, the driver will
start queuing pkts in the separate queue (called uapsd queue)
until the station ask for it.
The moment driver starting queuing, it will enable traffic indication
bit for the client connected to indicate data availability.
Once station ask for the data (via Trigger frame), the driver will
dequeue and send pkt one by one to the station.
Thirumalai (4):
ath6kl: Add new WMI functions for uAPSD
ath6kl: Introduce new queue for uAPSD.
ath6kl: Add uAPSD support in rx path.
ath6kl: Add UAPSD support in tx path.
drivers/net/wireless/ath/ath6kl/cfg80211.c | 6 +
drivers/net/wireless/ath/ath6kl/core.h | 6 +-
drivers/net/wireless/ath/ath6kl/main.c | 8 +-
drivers/net/wireless/ath/ath6kl/txrx.c | 258 ++++++++++++++++++++++++----
drivers/net/wireless/ath/ath6kl/wmi.c | 62 ++++++-
drivers/net/wireless/ath/ath6kl/wmi.h | 50 +++++-
6 files changed, 339 insertions(+), 51 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/4] Enable uAPSD support in AP mode
2012-01-09 7:44 [PATCH 0/4] Enable uAPSD support in AP mode Thirumalai
@ 2012-01-09 8:54 ` Johannes Berg
2012-01-09 11:46 ` Kalle Valo
2012-01-09 11:37 ` Kalle Valo
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2012-01-09 8:54 UTC (permalink / raw)
To: Thirumalai; +Cc: kvalo, linux-wireless
On Mon, 2012-01-09 at 13:14 +0530, Thirumalai wrote:
> In addition to legacy power save, this series of patch adds
> support for uAPSD in AP mode.
>
> When connected station goes into suspend state, the driver will
> start queuing pkts in the separate queue (called uapsd queue)
> until the station ask for it.
>
> The moment driver starting queuing, it will enable traffic indication
> bit for the client connected to indicate data availability.
> Once station ask for the data (via Trigger frame), the driver will
> dequeue and send pkt one by one to the station.
The way you describe this sounds incorrect, but I'll leave it to Kalle
to figure out what you're doing and whether it is correct or not ... if
only some ACs are trigger-enabled those don't influence the TIM bit.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/4] Enable uAPSD support in AP mode
2012-01-09 8:54 ` Johannes Berg
@ 2012-01-09 11:46 ` Kalle Valo
2012-01-10 17:38 ` Pachamuthu, Thirumalai
0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2012-01-09 11:46 UTC (permalink / raw)
To: Johannes Berg; +Cc: Thirumalai, linux-wireless, ath6kl-devel
On 01/09/2012 10:54 AM, Johannes Berg wrote:
> On Mon, 2012-01-09 at 13:14 +0530, Thirumalai wrote:
>> In addition to legacy power save, this series of patch adds
>> support for uAPSD in AP mode.
>>
>> When connected station goes into suspend state, the driver will
>> start queuing pkts in the separate queue (called uapsd queue)
>> until the station ask for it.
>>
>> The moment driver starting queuing, it will enable traffic indication
>> bit for the client connected to indicate data availability.
>> Once station ask for the data (via Trigger frame), the driver will
>> dequeue and send pkt one by one to the station.
>
> The way you describe this sounds incorrect, but I'll leave it to Kalle
> to figure out what you're doing and whether it is correct or not ... if
> only some ACs are trigger-enabled those don't influence the TIM bit.
Yeah, that does sound odd. Thirumalai, does the code really this way or
is it just a problem with the description? (I need to study the code in
detail still.)
Johannes, thanks for pointing this out.
Kalle
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 0/4] Enable uAPSD support in AP mode
2012-01-09 11:46 ` Kalle Valo
@ 2012-01-10 17:38 ` Pachamuthu, Thirumalai
0 siblings, 0 replies; 5+ messages in thread
From: Pachamuthu, Thirumalai @ 2012-01-10 17:38 UTC (permalink / raw)
To: Valo, Kalle, Johannes Berg; +Cc: linux-wireless@vger.kernel.org, ath6kl-devel
S2FsbGUsDQoJSXQncyBqdXN0IGEgcHJvYmx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 7:44 [PATCH 0/4] Enable uAPSD support in AP mode Thirumalai
2012-01-09 8:54 ` Johannes Berg
@ 2012-01-09 11:37 ` Kalle Valo
1 sibling, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2012-01-09 11:37 UTC (permalink / raw)
To: Thirumalai; +Cc: linux-wireless, ath6kl-devel
On 01/09/2012 09:44 AM, Thirumalai wrote:
> In addition to legacy power save, this series of patch adds
> support for uAPSD in AP mode.
>
> When connected station goes into suspend state, the driver will
> start queuing pkts in the separate queue (called uapsd queue)
> until the station ask for it.
>
> The moment driver starting queuing, it will enable traffic indication
> bit for the client connected to indicate data availability.
> Once station ask for the data (via Trigger frame), the driver will
> dequeue and send pkt one by one to the station.
I didn't do very thorough review but here are my first comments:
I see that you enable uapsd in patch 2 but add more functionality in
patches 3 and 4. That will break bisect as uapsd will be broken between
patches 2 and 4, no?
It's nice to have small patches, but it's more important to make sure
that bisect works. So you could just fold patches 2-4 into one. You
could even fold patch 1, as it doesn't give any benefit, and just have
one big patch adding the support. Or alternatively you need to enable
uapsd in the last patch so that it won't be used until all the code is
in place.
There are also some sparse warnings:
drivers/net/wireless/ath/ath6kl/wmi.h:232:21: warning: invalid
assignment: |=
drivers/net/wireless/ath/ath6kl/wmi.h:232:21: left side has type
restricted __le16
drivers/net/wireless/ath/ath6kl/wmi.h:232:21: right side has type int
drivers/net/wireless/ath/ath6kl/txrx.c:109:36: warning: incorrect type
in assignment (different base types)
drivers/net/wireless/ath/ath6kl/txrx.c:109:36: expected unsigned
short [unsigned] [usertype] ether_type
drivers/net/wireless/ath/ath6kl/txrx.c:109:36: got restricted __be16
[usertype] h_proto
drivers/net/wireless/ath/ath6kl/txrx.c:110:29: warning: cast to
restricted __be16
drivers/net/wireless/ath/ath6kl/txrx.c:110:29: warning: cast to
restricted __be16
drivers/net/wireless/ath/ath6kl/txrx.c:110:29: warning: cast to
restricted __be16
drivers/net/wireless/ath/ath6kl/txrx.c:110:29: warning: cast to
restricted __be16
drivers/net/wireless/ath/ath6kl/txrx.c:117:44: warning: incorrect type
in assignment (different base types)
drivers/net/wireless/ath/ath6kl/txrx.c:117:44: expected unsigned
short [unsigned] [usertype] ether_type
drivers/net/wireless/ath/ath6kl/txrx.c:117:44: got restricted __be16
[usertype] eth_type
drivers/net/wireless/ath/ath6kl/txrx.c:121:43: warning: restricted
__be16 degrades to integer
drivers/net/wireless/ath/ath6kl/txrx.c:1360:41: warning: restricted
__le16 degrades to integer
And please use your full name in the signed off by line.
Kalle
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-10 17:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09 7:44 [PATCH 0/4] Enable uAPSD support in AP mode Thirumalai
2012-01-09 8:54 ` Johannes Berg
2012-01-09 11:46 ` Kalle Valo
2012-01-10 17:38 ` Pachamuthu, Thirumalai
2012-01-09 11:37 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).