Search Linux Wireless

Re: [PATCH v2] nl80211: add Guard Interval support for set_bitrate_mask

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

 



On Sat, 2013-12-21 at 20:14 +0100, Janusz Dziedzic wrote:

> @@ -7474,6 +7475,9 @@ static int nl80211_set_tx_bitrate_mask(struct sk_buff *skb,
>  					mask.control[band].vht_mcs))
>  				return -EINVAL;
>  		}
> +		if (tb[NL80211_TXRATE_GI])
> +			mask.control[band].gi =
> +				nla_get_u8(tb[NL80211_TXRATE_GI]);

I think you need to sanity check the value, otherwise userspace can set
it to 42 and things would get rather confusing in the kernel.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux