Commit Graph

13 Commits

Author SHA1 Message Date
Houssem Dafdouf
78ace27319 ci: cram: wifi: add power save test
Add a CRAM test covering FEAT-105. The test consists of:
- Enable all vaps
- Enable power save on 2.4.GHz radio
- Check the behavior of radio and vaps

References: FEAT-105,PPM-3928
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-08-28 12:57:56 +01:00
Iacob Juc
42e6ebcb32 cram: add cram test for Radio.IEEE80211be.MLDUnitSetting
Testing Various valid combinations on 6GHz PrivateVAP

side-effect: default value of MLDUnitSetting changes behavior of PWHM

i.e. new parameter:
Radio.{i}.IEEE80211be.MLDUnitSetting=Assumed
is expected to invalidate current apmld tests
Reset it to Required, the value that keeps old pwhm behavior

OBUSPA:
Prefix IEEE80211be.MLDUnitSetting with X_PRPLWARE-COM_
and add it to obuspa.expected datamodel dump

testbed.yml : increase timeout by 2min (nominal execution time : 1m50s)

Issue: PPM-3545
Signed-off-by: Iacob Juc <iacob.juc_ext@softathome.com>
2026-08-07 16:16:23 +00:00
Houssem Dafdouf
efd6030833 ci: cram: pwhm: update pwhm test with FEAT-389 requirements
FEAT-389 requires that link removal or addition must not
trigger interface reconfiguration.

This test update verifies that no interface reconfiguration
occurs by checking the ifindex value from the iw output.

References: FEAT-389,PPM-3772
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-05-26 17:03:22 +01:00
Houssem Dafdouf
e1da2765cc ci: cram: update bSTAMLD cram test
- Test are now based on endpoints shared profiles feature
- Check links removal from MLD
- helper: add 'protected' option
- move script to DUT folder as we use now platfrom specific wlan names

References: PPM-3950, PPM-3989
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-05-05 08:54:52 +01:00
Sriya Nair
db69aa8440 profiles: prpl-core.yml: feed-prplmesh: Add a new parameter PowerType under Device.WiFi.Radio in pwhm
Introduced a new configurable parameter(Device.WiFi.Radio.{i}.PowerType) to allow
to configure the 6GHz AccessPoint Type. This DM is applicable only for 6GHz.
For 2.4GHz and 5GHz, this DM would return empty string and for
6GHz the default value would be Standard_Power_AP.

Integrates:
- 0a1c00b6: ("pwhm: add a new parameter PowerType under Device.WiFi.Radio.", 2025-10-08)
- af079781: ("libswlc: add 6GHz PowerType related parameters", 2025-10-08)

Closes: PPM-3552
Signed-off-by: Sriya Nair <sriya.n@tataelxsi.co.in>
Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
2026-04-17 11:13:20 +01:00
Vladyslav Tupikin
f74cdfe876 ci: cram: Align tests with prplMesh DM Mapper app
Current CRAM tests for Freedom and MXL OSPv2 require
adoptation to the prplMesh DataModel mapper application.

Existing tests updated because some parameters will be hiden
from the TR-69 and USP frontends.

Add tests that work with datamodel through usp-cli
tool, acting like external USP controller, sending
messages through OBUSPA to the prplMesh DM Mapper.

PWHM test split due to CRAM i/o limitation in 8K per file.
WiFi related tests were updated by adding Device. prefix
because CRAM tests should emulate real usage of the datamodel,
when everything configured through USP or TR-69 using Device.
datamodel.

Split event catching lua scripts for Ubus and USP for test
both buses. Also, updated USP events lua script for usage with
different USP sockets.

Script wifi.sh also modified by adding ability to choose which
prefix in wifi_dm() func can be used and which tool to use.
Default prefix set to the Device.WiFi.
Default tool is usp-cli.

References: PCF-2184, FEAT-27
Signed-off-by: Vladyslav Tupikin <v.tupikin@inango-systems.com>
Signed-off-by: Artem Trokhymchuk <a.trokhymchuk@inango-systems.com>
2026-03-11 14:37:55 +01:00
Houssem Dafdouf
8f3423b8ba ci: cram: warm apply: pwhm.t: apmld.t: update test cases (C2/C3)
100-pwhm.t:
-----------

Add hostapd socket checks after each interface state change;
other C2 requirements are implicitly covered by the apmld test.

Replace ba-cli get/set calls with the new wifi_dm helper and use
it for synchronous enable/disable operations, reducing test
duration from ~4m40s to ~1m30s (PPW-1301 #2, #3).

Verify the full interface name when reading status (PPW-1301 #4).

wifi-apmld.t:
-------------

ci: cram: warm apply: add main link interface removal new checks

Add hostapd restart check during the execution of the test
Add the check of wpactrl sockets after each operation

References: FEAT-125
Closes: PPM-3689
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-02-20 07:33:46 +00:00
Houssem Dafdouf
1b2e17d566 ci: cram: wifi: update helpers
- Fix wifi_dm issue helper when assigning an object via object path
(e.g. wifi_dm "EndPoint.1.ProfileReference=WiFi.EndPoint.1.Profile.1")

- Enhance wifi_dm output when ba-cli fails

- Add enable_ap_sync to optimize execution time when enabling/disabling
  VAPs.
  Usage:
    enable_ap_sync <AP index> <0|1 (off|on)> [timeout in seconds, default: 15]

- Add get_ap_status to print full AP paths with status

- Add ls_ap_hapd_socket to list wapctrl socket files of a specific AP
  based on pwhm DM.
  Usage:
    ls_ap_hapd_socket <AP index>

- Add ls_hapd_sockets to list all wapctrl socket files

- Update get_link_info to include link information

References: PPW-1301
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-02-18 21:39:32 +01:00
Petr Štetiar
4ea6bbd721 ci: wnc-freedom: keep 106-pwhm-get-eht-caps.t under cram 8KiB limit
Currently .gitlab/tests/cram/wnc-freedom/106-pwhm-get-eht-caps.t exceeds
cram's documented 8192-byte command buffer limit, so the generated shell
input can be truncated near the end of the test and surface as an
unterminated quoted string failure.

So let's fix it by compacting command input: add get_eht_ops in
.gitlab/tests/cram/scripts/wifi.sh and replace the 10 repeated long
getEHTOperations one-liners with helper calls in this test.

This reduces the generated command payload for this test from ~8619
bytes to ~7129 bytes, leaving about 1063 bytes of margin under the
8192-byte limit while preserving expected assertions and output checks.

References: PCF-2222
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-02-18 21:38:42 +01:00
Iacob Juc
e4bad077fe ci: cram: freedom: pwhm: test GetEHTOperations APIs
EHTCapabilities & EHTOperations DM parameters under Device.WiFi.Radio
contain raw data from the 802.11 EHT Operations Information Element.

This new test ensures that when 11be is enabled on a radio,
these APIs are working correctly;
also, when 11be is removed from the list of
Radio.i.OperatingStandards
the explicit disabling of 11be
is translated in the output of the APIs

For 5/6GHz adding channels to
Radio.i.StaticPuncturing.DisabledSubchannels
and testing the impact on the CurrentEhtOperatingIE

Closes: PPM-3537
Signed-off-by: Iacob Juc <iacob.juc_ext@softathome.com>
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-02-09 16:13:59 +01:00
Houssem Dafdouf
0dca07a46e ci: cram: add cram test for pwhm native APMLD feature
Add cram test to cover APMLD feature.
Actually only Freedom platform is supporting it.

References: FEAT-124
Closes: PPM-3347
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2026-02-09 16:04:33 +01:00
Iacob Juc
b743b77f48 ci: cram: add test for WPA3-Compatibility Mode
input operation :
* Disable MLO so RSN Override 2 parameters are not present in
hostapd.conf
* Enable Priv VAPs; configure secMode to WPA3-CM
* Enable MLO so RSN Override 2 parameters are present in hostapd.conf
* Restore MLO Configuration and Security Configuration
* Disable all VAPs to return to initial state

outputs :
* reading from pwhm the Security.ModesAvailable field and check they
contain the WPA3-Personal-Compatibility parameter
* reading from pwhm to see that pwhm accepts WPA3-Personal-Compatibility
as rval for Security.ModeEnabled=X

*testing an arbitrary hostapd.conf (5GHz)
for the absence or presence of an arbitrary config parameters
(rsn_override_key_mgmt when 11BE is disabled)
RSNOverride 1 always present in 5GHz, never in 6GHz

*testing 5GHz and 6GHz hostapd.conf for
rsn_override_key_mgmt_2 when 11BE is enabled

References: PPM-3352
Signed-off-by: Iacob Juc <iacob.juc_ext@softathome.com>
Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>

kjhdsq
2026-02-03 13:32:35 +00:00
Houssem Dafdouf
2935885de8 ci: cram: move all common helpers into a single script
The wifi helpers definitions were duplicated across multiple cram
scripts.

Let's consolidate them into a single script that can be sourced from
the CRAM scripts each time it's needed.

Closes: PPW-230

Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com>
2025-11-19 14:43:45 +00:00