From c585507798db8549842b286b2731feabcfb67a5b Mon Sep 17 00:00:00 2001 From: br1 Date: Tue, 22 Jan 2008 07:04:39 +0000 Subject: [PATCH] beacon backoff configuration like the 802.11 standard describes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit in "11.1.2.2 Beacon generation in an IBSS" the IEEE802.11 standard says, each STA should... "b) Calculate a random delay uniformly distributed in the range between zero and twice aCWmin × aSlotTime," git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3232 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index f00dbaa..7a413af 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -4328,8 +4328,8 @@ ath_beaconq_config(struct ath_softc *sc) * Adhoc mode; important thing is to use 2x cwmin. */ qi.tqi_aifs = wmep->wmep_aifsn; - qi.tqi_cwmin = 2 * ATH_EXPONENT_TO_VALUE(wmep->wmep_logcwmin); - qi.tqi_cwmax = ATH_EXPONENT_TO_VALUE(wmep->wmep_logcwmax); + qi.tqi_cwmin = 0; + qi.tqi_cwmax = 2 * ATH_EXPONENT_TO_VALUE(wmep->wmep_logcwmin); } DPRINTF(sc, ATH_DEBUG_BEACON_PROC, -- 2.35.1