From: Johannes Berg <johannes@sipsolutions.net>
To: Janusz Dziedzic <janusz.dziedzic@tieto.com>,
linux-wireless@vger.kernel.org
Cc: Ilan Peer <ilan.peer@intel.com>
Subject: Re: [PATCH v3 2/3] mac80211_hwsim: Add iface comb for DFS
Date: Thu, 14 Apr 2016 10:40:32 +0200 [thread overview]
Message-ID: <1460623232.2358.6.camel@sipsolutions.net> (raw)
In-Reply-To: <1383653034-6679-1-git-send-email-janusz.dziedzic@tieto.com> (sfid-20131105_130424_907681_CEAEBD68)
Hi,
I know this is a LONG time ago, but nonetheless...
> -static struct ieee80211_iface_combination hwsim_if_comb = {
> - .limits = hwsim_if_limits,
> - .n_limits = ARRAY_SIZE(hwsim_if_limits),
> - .max_interfaces = 2048,
> - .num_different_channels = 1,
> +static const struct ieee80211_iface_limit hwsim_if_dfs_limits[] = {
> + { .max = 8, .types = BIT(NL80211_IFTYPE_AP) },
> +};
> +
> +static struct ieee80211_iface_combination hwsim_if_comb[] = {
> + {
> + .limits = hwsim_if_limits,
> + .n_limits = ARRAY_SIZE(hwsim_if_limits),
> + .max_interfaces = 2048,
> + .num_different_channels = 1,
> + },
> + {
> + .limits = hwsim_if_dfs_limits,
> + .n_limits = ARRAY_SIZE(hwsim_if_dfs_limits),
> + .max_interfaces = 8,
> + .num_different_channels = 1,
> + .radar_detect_widths =
> BIT(NL80211_CHAN_WIDTH_20_NOHT) |
> + BIT(NL80211_CHAN_WIDTH_20) |
> + BIT(NL80211_CHAN_WIDTH_40) |
> + BIT(NL80211_CHAN_WIDTH_80) |
> + BIT(NL80211_CHAN_WIDTH_160),
> + }
> };
I don't, at least today, but I don't see relevant changes since then,
understand why this was two combinations, one with fewer interfaces.
It seems that radar detection is mostly independent of the interface
types, at least as far as the code is concerned.
Are there some other considerations, that prevent declaring
radar_detect_widths together with the regular hwsim_if_limits? It
obviously cannot actually be *used* for all?
johannes
prev parent reply other threads:[~2016-04-14 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 12:03 [PATCH v3 2/3] mac80211_hwsim: Add iface comb for DFS Janusz Dziedzic
2013-11-05 12:03 ` [PATCH v3 3/3] mac80211_hwsim: VHT add 160MHz width support Janusz Dziedzic
2013-11-05 13:21 ` [PATCH v3 2/3] mac80211_hwsim: Add iface comb for DFS Johannes Berg
2016-04-14 8:40 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460623232.2358.6.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ilan.peer@intel.com \
--cc=janusz.dziedzic@tieto.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).