Search Linux Wireless

Re: [PATCH] cfg80211: Add channel information to NL80211_CMD_GET_INTERFACE

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

 



On Tue, 2012-04-03 at 16:39 +0200, Pontus Fuchs wrote:
> If the current channel is known, add frequency and channel type to
> NL80211_CMD_GET_INTERFACE.
> 
> Signed-off-by: Pontus Fuchs <pontus.fuchs@xxxxxxxxx>
> ---
>  include/net/cfg80211.h     |    3 ++-
>  net/mac80211/cfg.c         |    4 +++-
>  net/wireless/nl80211.c     |   13 +++++++++++++
>  net/wireless/wext-compat.c |    3 ++-
>  4 files changed, 20 insertions(+), 3 deletions(-)
> 
> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
> index 83d800c..a1b202c 100644
> --- a/include/net/cfg80211.h
> +++ b/include/net/cfg80211.h
> @@ -1698,7 +1698,8 @@ struct cfg80211_ops {
>  				  struct net_device *dev,
>  				  u16 noack_map);
>  
> -	struct ieee80211_channel *(*get_channel)(struct wiphy *wiphy);
> +	struct ieee80211_channel *(*get_channel)(struct wiphy *wiphy,
> +					       enum nl80211_channel_type *type);

If you're adding it to GET_INTERFACE, maybe you should also get it per
interface so we can do something smarter when we add multi-channel?

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