inject mode send same frames more than once

Joshua Wright Joshua.Wright at
Fri May 23 14:21:17 EDT 2003

I had a similar problem, I think I resolved it by changing the retry value before transmitting the frames:

int hostap_set_retry(char *iface, int limit) {
  struct iwreq iwr;
  memset(&iwr, 0, sizeof(iwr));
  strncpy(iwr.ifr_name, iface, IFNAMSIZ);

  iwr.u.retry.flags = IW_RETRY_LIMIT;
  iwr.u.retry.value = limit;
  iwr.u.retry.disabled = 0;

  if (ioctl(harj->ioctl_sock , SIOCSIWRETRY, &iwr) < 0) {
    printf("Failed to set retry limit to %d\n", limit);
  } else 

-Joshua Wright
Senior Network and Security Architect
Johnson & Wales University
Joshua.Wright at

fingerprint: FDA5 12FC F391 3740 E0AE BDB6 8FE2 FC0A D44B 4A73

-----Original Message-----
From: hostap-admin at [mailto:hostap-admin at]On Behalf Of Kevin Wang
Sent: Friday, May 23, 2003 1:28 PM
To: hostap at
Subject: inject mode send same frames more than once

Hi list:
  I am using inject mode to send frames, but for each frames, it send out more than once which means I capture the same packet in the air for more than 4 or 5 times. Is there any configuration that I can change to send each frame only once.
  thank you.

More information about the HostAP mailing list