Search Linux Wireless

Re: [PATCH v2 1/7] nl80211/cfg80211: add radar detection command/event

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

 



On Tue, 2012-06-19 at 16:10 +0300, Victor Goldenshtein wrote:

> +	NL80211_CMD_RADAR_DETECT,

Is there no need to ever stop radar detection?

> + * @radar_detect_timeout: this timeout indicates the end of the channel
> + *	availability check for radar channels, only after this period the
> + *	user may initiate the tx on the channel.

units? internal use, or for use by drivers? should it really be stored
in the global channel struct that could be shared for multiple devices?

>  /**
> + * cfg80211_radar_detected - radar detection event
> + * @dev: network device
> + * @freq: radar detected on this channel frequency (in MHz)
> + * @gfp: context flags
> + *
> + * This function is called when a radar is detected on the current channel.
> + */
> +void cfg80211_radar_detected(struct net_device *dev, u16 freq, gfp_t gfp);

Better to pass the channel pointer?

> +u16 cfg80211_calculate_bitrate(struct rate_info *rate);

??

> +void cfg80211_radar_detected(struct net_device *dev, u16 freq, gfp_t gfp)
> +{
> +	struct wireless_dev *wdev = dev->ieee80211_ptr;
> +	struct wiphy *wiphy = wdev->wiphy;
> +	struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
> +	struct ieee80211_channel *chan;
> +
> +	chan = ieee80211_get_channel(&rdev->wiphy, freq);
> +	if (chan)
> +		chan->radar_detect_timeout = 0;

So how do you distinguish between having ever done radar detection and
never even having started it? Also, jiffies + ... can return 0.


How do you intend to handle HT40?

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