diff options
author | Vivek Natarajan <vnatarajan@atheros.com> | 2009-11-25 12:01:54 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-28 15:04:52 -0500 |
commit | 94db29368a658b13a088db87c7b0bf59b1a7492d (patch) | |
tree | 5d6a5a2f8d4d31c0ed29d0f464200587b4a05253 /drivers/net/wireless/ath/ath9k/main.c | |
parent | f4709fdf683e1ed37b321c258b614ebe39752bf3 (diff) | |
download | linux-94db29368a658b13a088db87c7b0bf59b1a7492d.tar.gz linux-94db29368a658b13a088db87c7b0bf59b1a7492d.tar.bz2 linux-94db29368a658b13a088db87c7b0bf59b1a7492d.zip |
ath9k: Ensure a fair beacon distribution in IBSS mode.
Update the beacon queue parameters with best effort queue parameters for
IBSS mode. This reduces the number of beacons generated by ath9k and
ensures a fair beacon distribution when there are multiple IBSS stations.
Also CWmin is quadrupled to achieve the expected percentage of
distribution.
Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index cfe710b01d85..b9598148767b 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -2882,6 +2882,10 @@ static int ath9k_conf_tx(struct ieee80211_hw *hw, u16 queue, if (ret) ath_print(common, ATH_DBG_FATAL, "TXQ Update failed\n"); + if (sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC) + if ((qnum == sc->tx.hwq_map[ATH9K_WME_AC_BE]) && !ret) + ath_beaconq_config(sc); + mutex_unlock(&sc->mutex); return ret; |