support new node for WW regulatory domain
Tested-by: Michael Lo <[email protected]>
Signed-off-by: Deren Wu <[email protected]>
---
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
Deren Wu <[email protected]> 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
Hi Kalle,
On Wed, 2023-02-08 at 11:35 +0200, Kalle Valo wrote:
> Deren Wu <[email protected]> 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
"Deren Wu (武德仁)" <[email protected]> writes:
> Hi Kalle,
>
> On Wed, 2023-02-08 at 11:35 +0200, Kalle Valo wrote:
>> Deren Wu <[email protected]> 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