Search Linux Wireless

Re: [PATCH] cfg80211: allow RSSI compensation

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

 



On Sun, 2014-05-18 at 10:15 +0300, Emmanuel Grumbach wrote:

> -	res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp,
> -				  rx_channel == channel);
> +	signal_valid = abs(rx_channel->center_freq - channel->center_freq) <=
> +		wiphy->max_adj_channel_rssi_comp;
> +	res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid);
>  	if (!res)
>  		return NULL;

I'm getting a bit worried now that rx_channel might be NULL for some
drivers?

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