Search Linux Wireless

Re: [PATCH 1/4] mac80211: don't return -EINVAL upon iwconfig wlan0 rts auto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-06-24 at 13:37 +0300, Tomas Winkler wrote:
> From: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> 
> This patch avoids returning -EINVAL upon iwconfig wlan0 rts auto. If
> rts->fixed is 0, then we should choose a default value instead of failing.
> 
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> ---
>  net/mac80211/wext.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
> index 5af3862..53f8767 100644
> --- a/net/mac80211/wext.c
> +++ b/net/mac80211/wext.c
> @@ -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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux