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:  swild...@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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to