rt2x00: use helper to check capability/requirement
Use rt2x00_has_cap_flag macro to check rt2x00dev->cap_flags. Signed-off-by: Fred Chou <fred.chou.nd@gmail.com> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -119,7 +119,7 @@ void rt2x00mac_tx(struct ieee80211_hw *hw,
|
||||
* Use the ATIM queue if appropriate and present.
|
||||
*/
|
||||
if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM &&
|
||||
test_bit(REQUIRE_ATIM_QUEUE, &rt2x00dev->cap_flags))
|
||||
rt2x00_has_cap_flag(rt2x00dev, REQUIRE_ATIM_QUEUE))
|
||||
qid = QID_ATIM;
|
||||
|
||||
queue = rt2x00queue_get_tx_queue(rt2x00dev, qid);
|
||||
|
Reference in New Issue
Block a user