Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2018 19:01:46 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329599 - head/tools/tools/net80211/w00t/ap
Message-ID:  <201802191901.w1JJ1kYS081699@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Feb 19 19:01:46 2018
New Revision: 329599
URL: https://svnweb.freebsd.org/changeset/base/329599

Log:
  tools/80211: correct array index
  
  wh->i_dur is a two byte value; not a single byte set twice
  
  Reported by:	swildner@DragonFlyBSD.org

Modified:
  head/tools/tools/net80211/w00t/ap/ap.c

Modified: head/tools/tools/net80211/w00t/ap/ap.c
==============================================================================
--- head/tools/tools/net80211/w00t/ap/ap.c	Mon Feb 19 18:41:56 2018	(r329598)
+++ head/tools/tools/net80211/w00t/ap/ap.c	Mon Feb 19 19:01:46 2018	(r329599)
@@ -389,7 +389,7 @@ void send_cts(struct params *p, char *mac)
 	wh->i_fc[0] |= IEEE80211_FC0_TYPE_CTL;
 	wh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_CTS;
 	wh->i_dur[0] = 0x69;
-	wh->i_dur[0] = 0x00;
+	wh->i_dur[1] = 0x00;
 	memcpy(wh->i_addr1, mac, 6);
 
 	send_frame(p, wh, 10);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802191901.w1JJ1kYS081699>