tools/80211: correct array index

wh->i_dur is a two byte value; not a single byte set twice

Reported by:	swildner@DragonFlyBSD.org
This commit is contained in:
Eitan Adler 2018-02-19 19:01:46 +00:00
parent 7a16dacdfa
commit 1983a2326b

View File

@ -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);