Fixed copy-paste error in retry configuration (incorrect ioctl used)
authorJouni Malinen <j@w1.fi>
Tue, 13 Jan 2009 17:14:38 +0000 (19:14 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Jan 2009 17:14:38 +0000 (19:14 +0200)
hostapd/driver_nl80211.c

index 6c01d26..a2d537a 100644 (file)
@@ -609,14 +609,14 @@ static int i802_set_retry(void *priv, int short_retry, int long_retry)
 
        iwr.u.retry.value = short_retry;
        iwr.u.retry.flags = IW_RETRY_LIMIT | IW_RETRY_MIN;
-       if (ioctl(drv->ioctl_sock, SIOCSIWFRAG, &iwr) < 0) {
+       if (ioctl(drv->ioctl_sock, SIOCSIWRETRY, &iwr) < 0) {
                perror("ioctl[SIOCSIWRETRY(short)]");
                return -1;
        }
 
        iwr.u.retry.value = long_retry;
        iwr.u.retry.flags = IW_RETRY_LIMIT | IW_RETRY_MAX;
-       if (ioctl(drv->ioctl_sock, SIOCSIWFRAG, &iwr) < 0) {
+       if (ioctl(drv->ioctl_sock, SIOCSIWRETRY, &iwr) < 0) {
                perror("ioctl[SIOCSIWRETRY(long)]");
                return -1;
        }