diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-11-24 12:08:35 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 09:47:49 -0500 |
commit | 99405f930fda280c9114b15e178902cd204f967f (patch) | |
tree | d7950d3aa154803280c091b3c5331a7ca96c8678 /drivers/net/wireless/ath9k/xmit.c | |
parent | ff37e337beb838d4c2540fa93b2c4c632ee17750 (diff) | |
download | kernel_samsung_smdk4412-99405f930fda280c9114b15e178902cd204f967f.zip kernel_samsung_smdk4412-99405f930fda280c9114b15e178902cd204f967f.tar.gz kernel_samsung_smdk4412-99405f930fda280c9114b15e178902cd204f967f.tar.bz2 |
ath9k: Use proper TX channel width for setting channels
The TX channel width of the BSS can be obtained only after association.
In all cases, default to HT20 if HT is enabled, and set
chan width to HT40 only if the BSS supports it.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index 3de60c5..413fbdd 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c @@ -1148,7 +1148,7 @@ static void ath_drain_txdataq(struct ath_softc *sc, bool retry_tx) spin_lock_bh(&sc->sc_resetlock); if (!ath9k_hw_reset(ah, sc->sc_ah->ah_curchan, - sc->sc_ht_info.tx_chan_width, + sc->tx_chan_width, sc->sc_tx_chainmask, sc->sc_rx_chainmask, sc->sc_ht_extprotspacing, true, &status)) { |