Search Linux Wireless

Re: [PATCH 1/2] wl1271: Prevent ad-hoc and active scanning on 11a DFS frequencies

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

 



On Wed, 2010-11-10 at 11:27 +0100, Oikarinen Juuso (Nokia-MS/Tampere)
wrote:
> From: Juuso Oikarinen <juuso.oikarinen@xxxxxxxxx>
> 
> The wl1271 does not support radar detection. Hence, prevent ad-hoc and
> active scanning on frequencies requiring DFS.
> 
> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@xxxxxxxxx>
> ---

This looks good, except for the typo described below.

Reviewed-by: Luciano Coelho <luciano.coelho@xxxxxxxxx>


> diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
> index f5b1d19..eb9f821 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_main.c
> +++ b/drivers/net/wireless/wl12xx/wl1271_main.c
> @@ -335,6 +335,27 @@ out:
>  	return NOTIFY_OK;
>  }
>  
> +static int wl1271_reg_notify(struct wiphy *wiphy,
> +			     struct regulatory_request *request) {
> +	struct ieee80211_supported_band *band;
> +	struct ieee80211_channel *ch;
> +	int i;
> +
> +	band = wiphy->bands[IEEE80211_BAND_5GHZ];
> +	for (i = 0; i < band->n_channels; i++) {
> +		ch = &band->channels[i];
> +		if (ch->flags % IEEE80211_CHAN_DISABLED)

Typo here, should be & instead of %.  I'll fix it myself before
applying, so no need to resend.

-- 
Cheers,
Luca.

--
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 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