Setting retry limit using ioctl


From: Seng Oon Toh (gte746m_at_mail.gatech.edu)
Date: 2002-10-18 16:58:24 UTC



Hi,

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?

Thanks

Seng Oon Toh
Georgia Institute of Technology, Atlanta Georgia, 30332 Email: gte746m_at_prism.gatech.edu



This archive was generated by hypermail 2.1.4.