]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: set correct AC to swq_id for aggregation
authorShanyu Zhao <shanyu.zhao@intel.com>
Wed, 14 Apr 2010 22:35:14 +0000 (15:35 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 30 Apr 2010 22:34:31 +0000 (15:34 -0700)
commit7b27ed63fd43c0eea5530d9d780612f2f6d975ef
tree5de6bdcc3a716e92143e0902de95d3073885f122
parentb3165decbf6f66db98746c97f7f02dab7e831b26
iwlwifi: set correct AC to swq_id for aggregation

When starting an aggregation session, the swq_id is generated in function
iwl_virtual_agg_queue_num() where the first parameter is supposed to be
the Access Class, but it used the tx fifo ID instead. This means the AC
value stored in swq_id is incorrect. To test this, look at the tx_queue
file in debugfs while transmitting Best Effort flow (ac=2), it shows:
hwq 10: read=0 write=0 stop=0 swq_id=0xa9 (ac 1/hwq 10)
After this fix, it will show:
hwq 10: read=0 write=0 stop=0 swq_id=0xaa (ac 2/hwq 10)

Signed-off-by: Shanyu Zhao <shanyu.zhao@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c