mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto
[deliverable/linux.git] / net / mac80211 / wext.c
index f47d13bdf7f70806b94c768b54aeac1d84663d14..3cbaf5301d00e4cc4091178fbf76ad3a344961bb 100644 (file)
@@ -721,6 +721,9 @@ static int ieee80211_ioctl_siwrts(struct net_device *dev,
 
        if (rts->disabled)
                local->rts_threshold = IEEE80211_MAX_RTS_THRESHOLD;
+       else if (!rts->fixed)
+               /* if the rts value is not fixed, then take default */
+               local->rts_threshold = IEEE80211_MAX_RTS_THRESHOLD;
        else if (rts->value < 0 || rts->value > IEEE80211_MAX_RTS_THRESHOLD)
                return -EINVAL;
        else
This page took 0.025794 seconds and 5 git commands to generate.