PROVISORY: ci: cram: freedom: workaround rad2g bw 40MHz cold setting failure

Problem:
- cold applying rad2g bw 40MHz in cram script
106-pwhm-get-eht-caps_step_1.t is leading to systematic failure

Cause:
- overriding BSS coexistence is detected in the testing environnement,
leading to falling back to bw 20mhz in rad2g
- but the script is expecting 40mhz
- pwhm is re-applying the bw which keeps reduced

Workaround:
- set rad2g bw 20MHz in the initial cold apply setting
- set rad2g bw 40MHz later in warm apply setting (through CSA, not impacting
the hostapd initial setup)
- set back rad2g to bw 20MHz when setting 11ax

Expected fix:
- in pwhm: prevent forcing 40MHz when it was reduced to 20MHz by
hostapd/driver due to OBSS_COEX reason
- improve the cram script to consider current bw as applied by the
driver

References: PPM-4051, PPM-3950
Signed-off-by: Ahmed Amine HAOUES <ahmed-amine.haoues_ext@softathome.com>
This commit is contained in:
Ahmed Amine HAOUES 2026-05-11 14:35:27 +02:00 committed by FAOUZI YAHYA
parent d08ddc8c36
commit a6ece90189

View File

@ -21,8 +21,8 @@ Set AutoChannelEnable=0 on all WiFi.Radio. interfaces:
Configure radio:
$ wifi_dm_radio_band 2 "OperatingChannelBandwidth=\"40MHz\""
Device.WiFi.Radio.\d+.OperatingChannelBandwidth="40MHz" (re)
$ wifi_dm_radio_band 2 "OperatingChannelBandwidth=\"20MHz\""
Device.WiFi.Radio.\d+.OperatingChannelBandwidth="20MHz" (re)
$ wifi_dm_radio_band 5 "OperatingChannelBandwidth=\"80MHz\""
Device.WiFi.Radio.\d+.OperatingChannelBandwidth="80MHz" (re)
@ -71,6 +71,11 @@ Enable private vaps radios:
$ wifi_dm "AccessPoint.5.Status?0"
Device.WiFi.AccessPoint.5.Status="Enabled"
$ wifi_dm_radio_band 2 "OperatingChannelBandwidth=\"40MHz\""
Device.WiFi.Radio.\d+.OperatingChannelBandwidth="40MHz" (re)
$ sleep 5
#########################################
# test 2.4GHz getEHTOperations #
#########################################
@ -108,6 +113,9 @@ Check EhtPhyCapabilities, EhtPhyCapabilitiesStr, CurrentEhtOperatingIE and getEH
Downgrade to AX operating mode:
$ wifi_dm_radio_band 2 "OperatingChannelBandwidth=\"20MHz\""
Device.WiFi.Radio.\d+.OperatingChannelBandwidth="20MHz" (re)
$ wifi_dm_radio_band 2 "OperatingStandards=\"ax\""
Device.WiFi.Radio.\d+.OperatingStandards="ax" (re)