On Tue, 2016-01-26 at 14:06 +0100, Arend van Spriel wrote:
>
> +static u8 nl80211_band_to_fwil(enum nl80211_band band)
> +{
> + switch (band) {
> + case NL80211_BAND_2GHZ:
> + return WLC_BAND_2G;
> + case NL80211_BAND_5GHZ:
> + return WLC_BAND_5G;
> + default:
> + WARN_ON(1);
>
This, btw, is trivially triggerable - you need to check in nl80211 that
the specified band is actually supported by the driver, otherwise even
non-sense like "17" can be specified.
johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html