mbox series

[00/10,Noble] New China SRRC compliance readiness check for Realtek WLAN

Message ID 20231212072604.2198209-1-vicamo.yang@canonical.com
Headers show
Series New China SRRC compliance readiness check for Realtek WLAN | expand

Message

You-Sheng Yang Dec. 12, 2023, 7:25 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2043964

[Impact]

SRRC (State Radio Regulation of China)  compliance readiness check for Realtek
WLAN.

[Fix]

Capability for Realtek WiFi TX power tables load and report from RFE (RF front
end) parameters is needed. Multiple commits from vanilla kernel.

[Test Case]

```
$ sudo iw reg set CN
# manually connect to 5G ap : center channel 155 bw 80 M
$ sudo cat /sys/kernel/debug/ieee80211/phy0/rtw89/txpwr_table | \
      grep -E 'MCS_2TX_80M_0|Regulatory'
```
The expected output s
```
Regulatory: CN
MCS_2TX_80M_0 - NON_BF BF | 10, 9, dbm
```
And verification fail output:
```
Regulatory: CN
MCS_2TX_80M_0 - NON_BF BF | 15, 10, dbm
```

[Where problems could occur]

This updates the behaviors and constraints of radio device power transmission
for rtw89 driver, and must be done for regulatory compliance.

[Other Info]

As needed for oem-6.5/jammy, nominate only for Noble and oem-6.5/jammy. All the
patches are in v6.7-rc now.

Ping-Ke Shih (1):
  wifi: rtw89: add subband index of primary channel to struct rtw89_chan

Zong-Zhe Yang (9):
  wifi: rtw89: indicate TX shape table inside RFE parameter
  wifi: rtw89: indicate TX power by rate table inside RFE parameter
  wifi: rtw89: load TX power by rate when RFE parms setup
  wifi: rtw89: phy: refine helpers used for raw TX power
  wifi: rtw89: phy: extend TX power common stuffs for Wi-Fi 7 chips
  wifi: rtw89: regd: configure Thailand in regulation type
  wifi: rtw89: 8852c: update TX power tables to R67
  wifi: rtw89: 8852b: update TX power tables to R35
  wifi: rtw89: 8851b: update TX power tables to R34

 drivers/net/wireless/realtek/rtw89/chan.c     |   15 +
 drivers/net/wireless/realtek/rtw89/core.c     |   14 +-
 drivers/net/wireless/realtek/rtw89/core.h     |   63 +-
 drivers/net/wireless/realtek/rtw89/phy.c      |   98 +-
 drivers/net/wireless/realtek/rtw89/regd.c     |    2 +-
 drivers/net/wireless/realtek/rtw89/rtw8851b.c |    6 +-
 .../wireless/realtek/rtw89/rtw8851b_table.c   | 1337 +++---
 .../wireless/realtek/rtw89/rtw8851b_table.h   |    3 -
 drivers/net/wireless/realtek/rtw89/rtw8852a.c |    1 -
 .../wireless/realtek/rtw89/rtw8852a_table.c   |    2 +
 .../wireless/realtek/rtw89/rtw8852a_table.h   |    1 -
 drivers/net/wireless/realtek/rtw89/rtw8852b.c |    6 +-
 .../wireless/realtek/rtw89/rtw8852b_table.c   |  333 +-
 .../wireless/realtek/rtw89/rtw8852b_table.h   |    3 -
 drivers/net/wireless/realtek/rtw89/rtw8852c.c |    6 +-
 .../wireless/realtek/rtw89/rtw8852c_table.c   | 3773 +++++++++++++++--
 .../wireless/realtek/rtw89/rtw8852c_table.h   |    3 -
 17 files changed, 4567 insertions(+), 1099 deletions(-)

Comments

Andrei Gherzan Dec. 13, 2023, 12:35 p.m. UTC | #1
On 23/12/12 03:25PM, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/2043964
> 
> [Impact]
> 
> SRRC (State Radio Regulation of China)  compliance readiness check for Realtek
> WLAN.
> 
> [Fix]
> 
> Capability for Realtek WiFi TX power tables load and report from RFE (RF front
> end) parameters is needed. Multiple commits from vanilla kernel.
> 
> [Test Case]
> 
> ```
> $ sudo iw reg set CN
> # manually connect to 5G ap : center channel 155 bw 80 M
> $ sudo cat /sys/kernel/debug/ieee80211/phy0/rtw89/txpwr_table | \
>       grep -E 'MCS_2TX_80M_0|Regulatory'
> ```
> The expected output s
> ```
> Regulatory: CN
> MCS_2TX_80M_0 - NON_BF BF | 10, 9, dbm
> ```
> And verification fail output:
> ```
> Regulatory: CN
> MCS_2TX_80M_0 - NON_BF BF | 15, 10, dbm
> ```
> 
> [Where problems could occur]
> 
> This updates the behaviors and constraints of radio device power transmission
> for rtw89 driver, and must be done for regulatory compliance.
> 
> [Other Info]
> 
> As needed for oem-6.5/jammy, nominate only for Noble and oem-6.5/jammy. All the
> patches are in v6.7-rc now.
> 
> Ping-Ke Shih (1):
>   wifi: rtw89: add subband index of primary channel to struct rtw89_chan
> 
> Zong-Zhe Yang (9):
>   wifi: rtw89: indicate TX shape table inside RFE parameter
>   wifi: rtw89: indicate TX power by rate table inside RFE parameter
>   wifi: rtw89: load TX power by rate when RFE parms setup
>   wifi: rtw89: phy: refine helpers used for raw TX power
>   wifi: rtw89: phy: extend TX power common stuffs for Wi-Fi 7 chips
>   wifi: rtw89: regd: configure Thailand in regulation type
>   wifi: rtw89: 8852c: update TX power tables to R67
>   wifi: rtw89: 8852b: update TX power tables to R35

All patches are clean cherry-picks landed in v6.7-rc.

Acked-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Tim Gardner Jan. 3, 2024, 4:02 p.m. UTC | #2
On 12/12/23 12:25 AM, You-Sheng Yang wrote:
> BugLink: https://bugs.launchpad.net/bugs/2043964
> 
> [Impact]
> 
> SRRC (State Radio Regulation of China)  compliance readiness check for Realtek
> WLAN.
> 
> [Fix]
> 
> Capability for Realtek WiFi TX power tables load and report from RFE (RF front
> end) parameters is needed. Multiple commits from vanilla kernel.
> 
> [Test Case]
> 
> ```
> $ sudo iw reg set CN
> # manually connect to 5G ap : center channel 155 bw 80 M
> $ sudo cat /sys/kernel/debug/ieee80211/phy0/rtw89/txpwr_table | \
>        grep -E 'MCS_2TX_80M_0|Regulatory'
> ```
> The expected output s
> ```
> Regulatory: CN
> MCS_2TX_80M_0 - NON_BF BF | 10, 9, dbm
> ```
> And verification fail output:
> ```
> Regulatory: CN
> MCS_2TX_80M_0 - NON_BF BF | 15, 10, dbm
> ```
> 
> [Where problems could occur]
> 
> This updates the behaviors and constraints of radio device power transmission
> for rtw89 driver, and must be done for regulatory compliance.
> 
> [Other Info]
> 
> As needed for oem-6.5/jammy, nominate only for Noble and oem-6.5/jammy. All the
> patches are in v6.7-rc now.
> 
> Ping-Ke Shih (1):
>    wifi: rtw89: add subband index of primary channel to struct rtw89_chan
> 
> Zong-Zhe Yang (9):
>    wifi: rtw89: indicate TX shape table inside RFE parameter
>    wifi: rtw89: indicate TX power by rate table inside RFE parameter
>    wifi: rtw89: load TX power by rate when RFE parms setup
>    wifi: rtw89: phy: refine helpers used for raw TX power
>    wifi: rtw89: phy: extend TX power common stuffs for Wi-Fi 7 chips
>    wifi: rtw89: regd: configure Thailand in regulation type
>    wifi: rtw89: 8852c: update TX power tables to R67
>    wifi: rtw89: 8852b: update TX power tables to R35
>    wifi: rtw89: 8851b: update TX power tables to R34
> 
>   drivers/net/wireless/realtek/rtw89/chan.c     |   15 +
>   drivers/net/wireless/realtek/rtw89/core.c     |   14 +-
>   drivers/net/wireless/realtek/rtw89/core.h     |   63 +-
>   drivers/net/wireless/realtek/rtw89/phy.c      |   98 +-
>   drivers/net/wireless/realtek/rtw89/regd.c     |    2 +-
>   drivers/net/wireless/realtek/rtw89/rtw8851b.c |    6 +-
>   .../wireless/realtek/rtw89/rtw8851b_table.c   | 1337 +++---
>   .../wireless/realtek/rtw89/rtw8851b_table.h   |    3 -
>   drivers/net/wireless/realtek/rtw89/rtw8852a.c |    1 -
>   .../wireless/realtek/rtw89/rtw8852a_table.c   |    2 +
>   .../wireless/realtek/rtw89/rtw8852a_table.h   |    1 -
>   drivers/net/wireless/realtek/rtw89/rtw8852b.c |    6 +-
>   .../wireless/realtek/rtw89/rtw8852b_table.c   |  333 +-
>   .../wireless/realtek/rtw89/rtw8852b_table.h   |    3 -
>   drivers/net/wireless/realtek/rtw89/rtw8852c.c |    6 +-
>   .../wireless/realtek/rtw89/rtw8852c_table.c   | 3773 +++++++++++++++--
>   .../wireless/realtek/rtw89/rtw8852c_table.h   |    3 -
>   17 files changed, 4567 insertions(+), 1099 deletions(-)
> 
Acked-by: Tim Gardner <tim.gardner@canonical.com>