diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-09-05 08:20:55 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-09 23:27:22 +0400 |
commit | a402764452672dfe119e68edf7a21f1739b71f76 (patch) | |
tree | 6854362b9cb04ca42b0e405b368fdc635624c2d0 /drivers/net/wireless/ath/ath9k/init.c | |
parent | ca529c9373bbcabf55a12e4225d625ee26fc8abb (diff) | |
download | linux-a402764452672dfe119e68edf7a21f1739b71f76.tar.xz |
ath9k: Use a subroutine to assign HW queues
Reduces code duplication.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 1950c04a292f..156a944134dc 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -811,7 +811,7 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) /* allow 4 queues per channel context + * 1 cab queue + 1 offchannel tx queue */ - hw->queues = 10; + hw->queues = ATH9K_NUM_TX_QUEUES; /* last queue for offchannel */ hw->offchannel_tx_hw_queue = hw->queues - 1; hw->max_rates = 4; |