svn commit: r329599 - head/tools/tools/net80211/w00t/ap
Eitan Adler
eadler at FreeBSD.org
Mon Feb 19 19:01:47 UTC 2018
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 at 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);
More information about the svn-src-head
mailing list