* [PATCH] wifi: mt76: support ww power config in dts node
@ 2023-02-02 14:47 Deren Wu
2023-02-08 9:35 ` Kalle Valo
0 siblings, 1 reply; 4+ messages in thread
From: Deren Wu @ 2023-02-02 14:47 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: Sean Wang, Soul Huang, YN Chen, Leon Yen, Eric-SY Chang, Deren Wu,
KM Lin, Robin Chiu, CH Yeh, Posh Sun, Stella Chang, Evelyn Tsai,
Ryder Lee, Shayne Chen, linux-wireless, linux-mediatek, Deren Wu
support new node for WW regulatory domain
Tested-by: Michael Lo <michael.lo@mediatek.com>
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
---
drivers/net/wireless/mediatek/mt76/eeprom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/mediatek/mt76/eeprom.c b/drivers/net/wireless/mediatek/mt76/eeprom.c
index 9bc8758573fc..dce851d42e08 100644
--- a/drivers/net/wireless/mediatek/mt76/eeprom.c
+++ b/drivers/net/wireless/mediatek/mt76/eeprom.c
@@ -138,6 +138,7 @@ mt76_find_power_limits_node(struct mt76_dev *dev)
{
struct device_node *np = dev->dev->of_node;
const char *const region_names[] = {
+ [NL80211_DFS_UNSET] = "ww",
[NL80211_DFS_ETSI] = "etsi",
[NL80211_DFS_FCC] = "fcc",
[NL80211_DFS_JP] = "jp",
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] wifi: mt76: support ww power config in dts node
2023-02-02 14:47 [PATCH] wifi: mt76: support ww power config in dts node Deren Wu
@ 2023-02-08 9:35 ` Kalle Valo
2023-02-08 10:04 ` Deren Wu (武德仁)
0 siblings, 1 reply; 4+ messages in thread
From: Kalle Valo @ 2023-02-08 9:35 UTC (permalink / raw)
To: Deren Wu
Cc: Felix Fietkau, Lorenzo Bianconi, Sean Wang, Soul Huang, YN Chen,
Leon Yen, Eric-SY Chang, KM Lin, Robin Chiu, CH Yeh, Posh Sun,
Stella Chang, Evelyn Tsai, Ryder Lee, Shayne Chen, linux-wireless,
linux-mediatek
Deren Wu <deren.wu@mediatek.com> writes:
> support new node for WW regulatory domain
The commit log doesn't really explain much. What does this patch do
exactly?
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] wifi: mt76: support ww power config in dts node
2023-02-08 9:35 ` Kalle Valo
@ 2023-02-08 10:04 ` Deren Wu (武德仁)
2023-02-13 13:08 ` Kalle Valo
0 siblings, 1 reply; 4+ messages in thread
From: Deren Wu (武德仁) @ 2023-02-08 10:04 UTC (permalink / raw)
To: kvalo@kernel.org
Cc: Evelyn Tsai (蔡珊鈺),
linux-mediatek@lists.infradead.org,
Leon Yen (顏良儒),
Shayne Chen (陳軒丞), nbd@nbd.name,
lorenzo@kernel.org, Stella Chang (張曉佩),
Sean Wang, KM Lin (林昆民),
Soul Huang (黃至昶),
YN Chen (陳彥寧),
Posh Sun (孫瑞廷),
Eric-SY Chang (張書源),
CH Yeh (葉志豪),
Robin Chiu (邱國濱), Ryder Lee,
linux-wireless@vger.kernel.org
Hi Kalle,
On Wed, 2023-02-08 at 11:35 +0200, Kalle Valo wrote:
> Deren Wu <deren.wu@mediatek.com> writes:
>
> > support new node for WW regulatory domain
>
> The commit log doesn't really explain much. What does this patch do
> exactly?
>
In STA mode, if the host stays in ww regulatory doamin ("00"),
NL80211_DFS_UNSET would be set to driver. In such case, mt76 cannot
find out the proper dts node to limit power settings. We apply this
patch to have a proper power mapping for ww domain.
Regards,
Deren
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] wifi: mt76: support ww power config in dts node
2023-02-08 10:04 ` Deren Wu (武德仁)
@ 2023-02-13 13:08 ` Kalle Valo
0 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2023-02-13 13:08 UTC (permalink / raw)
To: Deren Wu (武德仁)
Cc: Evelyn Tsai (蔡珊鈺),
linux-mediatek@lists.infradead.org,
Leon Yen (顏良儒),
Shayne Chen (陳軒丞), nbd@nbd.name,
lorenzo@kernel.org, Stella Chang (張曉佩),
Sean Wang, KM Lin (林昆民),
Soul Huang (黃至昶),
YN Chen (陳彥寧),
Posh Sun (孫瑞廷),
Eric-SY Chang (張書源),
CH Yeh (葉志豪),
Robin Chiu (邱國濱), Ryder Lee,
linux-wireless@vger.kernel.org
"Deren Wu (武德仁)" <Deren.Wu@mediatek.com> writes:
> Hi Kalle,
>
> On Wed, 2023-02-08 at 11:35 +0200, Kalle Valo wrote:
>> Deren Wu <deren.wu@mediatek.com> writes:
>>
>> > support new node for WW regulatory domain
>>
>> The commit log doesn't really explain much. What does this patch do
>> exactly?
>>
> In STA mode, if the host stays in ww regulatory doamin ("00"),
> NL80211_DFS_UNSET would be set to driver. In such case, mt76 cannot
> find out the proper dts node to limit power settings. We apply this
> patch to have a proper power mapping for ww domain.
Ok. In the future, please always this kind of information to the commit
log. One vague phrase is not a proper commit log, more info about that
in the wiki below.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-13 13:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02 14:47 [PATCH] wifi: mt76: support ww power config in dts node Deren Wu
2023-02-08 9:35 ` Kalle Valo
2023-02-08 10:04 ` Deren Wu (武德仁)
2023-02-13 13:08 ` Kalle Valo
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).