On 2021-09-30 00:46, Venkateswara Naralasetty wrote:
On 2021-09-29 09:07, Wen Gong wrote:
On 2021-09-28 21:12, vnaralas@xxxxxxxxxxxxxx wrote:
On 2021-09-28 14:22, Wen Gong wrote:
6 GHz regulatory domains introduces power spectral density(psd).
The power spectral density(psd) of regulatory rule should be take
effect to the channels. Save the values to the channel which has
psd value and add nl80211 attributes for it.
Signed-off-by: Wen Gong <wgong@xxxxxxxxxxxxxx>
---
...
@@ -2540,6 +2554,9 @@ static void handle_channel_custom(struct wiphy
*wiphy,
chan->dfs_cac_ms = IEEE80211_DFS_MIN_CAC_TIME_MS;
}
+ if (chan->flags & IEEE80211_CHAN_PSD)
+ chan->psd = reg_rule->psd;
+
chan->max_power = chan->max_reg_power;
What about the case AP + STA concurrency? are we going to overwrite
the PSD power and channel flags?
Hi Venkateswara,
This patch is not relation with AP + STA concurrency.
For example, it also has other power intersection in
handle_channel_adjacent_rules().
chan->max_reg_power =
min_t(int, MBM_TO_DBM(power_rule1->max_eirp),
MBM_TO_DBM(power_rule2->max_eirp));
For AP + STA concurrency, it should to maintain 2 group of reg rules,
one is for AP, another is for STA.
Can we maintain two power rules in the same channel one for AP and one
for STA. In this way, we can update the power rules in the same
channel for both AP and STA from the reg rules.
Otherwise, we need to maintain multiple channel lists in sband for all
supported power mode combinations to apply the respective power rules
and build channel flags from the multiple reg rules.
right?
If AP+STA is up in the same wiphy/ieee80211_hw, and AP's reg rules is
different
with STA, then it should maintain muti channel list for each band of the
wiphy/ieee80211_hw
by my understand.
Currently there is only one "struct ieee80211_supported_band
*bands[NUM_NL80211_BANDS]"
in "struct wiphy".
I advise to discuss the AP + STA concurrency in another mail thread
since it is not
relative with this patch.
This patch is to handle PSD info in the same reg rules.
It is to process only one reg rule in the reg rules.
AP + STA concurrency is a higher level things than this patch.
}