Setting retry limit using ioctl

From: Seng Oon Toh (
Date: 2002-10-18 16:58:24 UTC


I modified hostapd.c to try to set the retry limit to 0 using these liens

struct iwreq iwr;

iwr.u.retry.flags = IW_RETRY_LIMIT;
iwr.u.retry.value = 0;
iwr.u.retry.disabled = 0;
if (ioct(hapd.sock, SIOCGISWRETRY, &iwr) < 0) {
	perror("ioctl SIOCGISWRETRY");
	return -1;


When I run it I get a
ioctl SIOCGISWRETRY: No such device

What is the proper way to do this?


Seng Oon Toh
Georgia Institute of Technology, Atlanta Georgia, 30332 Email:

This archive was generated by hypermail 2.1.4.