Search Linux Wireless

Re: [PATCHv10 1/2] nl80211/cfg80211: add radar detection command/event

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

 



On Fri, 2013-02-08 at 18:16 +0100, Simon Wunderlich wrote:


> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -531,9 +531,16 @@ static int nl80211_msg_put_channel(struct sk_buff *msg,
>  	if ((chan->flags & IEEE80211_CHAN_NO_IBSS) &&
>  	    nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_IBSS))
>  		goto nla_put_failure;
> -	if ((chan->flags & IEEE80211_CHAN_RADAR) &&
> -	    nla_put_flag(msg, NL80211_FREQUENCY_ATTR_RADAR))
> -		goto nla_put_failure;
> +	if ((chan->flags & IEEE80211_CHAN_RADAR)) {
> +		u32 time = elapsed_jiffies_msecs(chan->dfs_state_entered);
> +		if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_RADAR))
> +			goto nla_put_failure;
> +		if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_DFS_STATE,
> +				chan->dfs_state))
> +			goto nla_put_failure;
> +		if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_DFS_TIME, time))
> +			goto nla_put_failure;
> +	}

I'm going to have to revert this part for now, it's causing nl80211
wiphy information messages to overflow depending on the regdomain.
Luckily, we already have a solution in the works, but we're going to
have to send some information only to userspace that implements the
solution.

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