Search Linux Wireless

Re: [RFC 12/12] mac80211: return NULL from get_channel in multi-channel

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

 



On Mon, 2012-03-19 at 13:57 +0100, Michal Kazior wrote:
> According to comment on cfg80211_ops/get_channel we should return NULL
> in case of concurrent multi-channel.
> 
> Signed-off-by: Michal Kazior <michal.kazior@xxxxxxxxx>
> ---
>  net/mac80211/cfg.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
> index 88cc128..05f7022 100644
> --- a/net/mac80211/cfg.c
> +++ b/net/mac80211/cfg.c
> @@ -2680,6 +2680,9 @@ ieee80211_wiphy_get_channel(struct wiphy *wiphy)
>  	struct ieee80211_local *local = wiphy_priv(wiphy);
>  	struct ieee80211_channel_state *chan_state = &local->chan_state;
>  
> +	if (local->hw.flags & IEEE80211_HW_SUPPORTS_MULTI_CHANNEL)
> +		return NULL;
> +

We should return NULL if we're actually using multiple channels :-)

So clearly we need mac80211 do more work in tracking which channels are
used, compatible, etc.

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