On 2010-09-20 2:31 PM, Rajkumar Manoharan wrote: > This patch ensures fair beacon distribution in IBSS mode > by configuring proper CWmin based on slot time. > > Signed-off-by: Rajkumar Manoharan <rmanoharan@xxxxxxxxxxx> > --- > drivers/net/wireless/ath/ath9k/htc_drv_beacon.c | 9 +++++- > drivers/net/wireless/ath/ath9k/hw.c | 32 +++++++++++++++++++++++ > drivers/net/wireless/ath/ath9k/hw.h | 1 + > 3 files changed, 41 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c > index bd1506e..3e699a5 100644 > --- a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c > +++ b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c > @@ -235,7 +235,14 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv) > ath9k_hw_get_txq_props(ah, qnum, &qi_be); > > qi.tqi_aifs = qi_be.tqi_aifs; > - qi.tqi_cwmin = 4*qi_be.tqi_cwmin; > + /* For WIFI Beacon Distribution > + * Long slot time : 2x cwmin > + * Short slot time : 4x cwmin > + */ > + if (ath9k_hw_getslottime(ah) == ATH9K_SLOT_TIME_20) I'd recommend using ah->slottime here and dropping all of those ath9k_hw changes. - Felix -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html