iwlagn: fix station powersave accounting for aggregation
authorJohannes Berg <johannes.berg@intel.com>
Tue, 16 Nov 2010 19:51:38 +0000 (11:51 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 25 Nov 2010 00:58:15 +0000 (16:58 -0800)
commit2e34034e8c9755ff144379d410d5227926e91cce
treedce8a3273b64bc95627d200364617b2466e4cee2
parent67158b67cea0c92dba1dda74cde926d149cc1a2e
iwlagn: fix station powersave accounting for aggregation

Since aggregation queues are station-specific, the
device will not reject packets in them but rather
will stop the appropriate aggregation queues when
a station goes to sleep. I forgot to account for
this in the driver, so if a station went to sleep
that had aggregation enabled, traffic would stop
indefinitely.

Fix this by only accounting frames queued on the
normal AC queues for associated station.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c