Compare commits
10 Commits
01de24d614
...
6753f152bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6753f152bc | ||
|
|
50317acfc7 | ||
|
|
78ace27319 | ||
|
|
c1ba5ad88c | ||
|
|
36a48ba4c0 | ||
|
|
30d3c7e0d4 | ||
|
|
5071101456 | ||
|
|
d31e9fe2df | ||
|
|
e0fa82980c | ||
|
|
a29e3d0157 |
@ -3373,6 +3373,7 @@ Device.SoftwareModules.DeploymentUnit.{i}.Update() input:AllocatedDiskSpace
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:AllocatedMemory
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:ApplicationData
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:Data
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:EnableHostCapabilities
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:EnvVariable
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:HostObject
|
||||
Device.SoftwareModules.DeploymentUnit.{i}.Update() input:ModuleVersion
|
||||
@ -3471,6 +3472,7 @@ Device.SoftwareModules.ExecutionUnit.{i}.CreationTime
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.Description proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.DiskSpaceInUse proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.EUID proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.EnableHostCapabilities proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.EnvVariable.{i}. proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.EnvVariable.{i}.Alias proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.EnvVariable.{i}.Key proto::timingila
|
||||
@ -3500,6 +3502,7 @@ Device.SoftwareModules.ExecutionUnit.{i}.NetworkConfig.PortForwarding.{i}.Interf
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.NetworkConfig.PortForwarding.{i}.InternalPort proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.NetworkConfig.PortForwarding.{i}.Protocol proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.NetworkConfig.X_PRPLWARE-COM_DNSSDRefList proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.Privileged proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.References proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.RegisterTrustPaths proto::timingila
|
||||
Device.SoftwareModules.ExecutionUnit.{i}.RequiredUserRoles proto::timingila
|
||||
@ -3522,6 +3525,7 @@ Device.SoftwareModules.InstallDU() input:ApplicationData
|
||||
Device.SoftwareModules.InstallDU() input:AutoRestart
|
||||
Device.SoftwareModules.InstallDU() input:AutoStart
|
||||
Device.SoftwareModules.InstallDU() input:Data
|
||||
Device.SoftwareModules.InstallDU() input:EnableHostCapabilities
|
||||
Device.SoftwareModules.InstallDU() input:EnvVariable
|
||||
Device.SoftwareModules.InstallDU() input:ExecutionEnvRef
|
||||
Device.SoftwareModules.InstallDU() input:HostObject
|
||||
@ -5326,6 +5330,11 @@ Device.WiFi.Radio.{i}.X_PRPLWARE-COM_NaStaMonitor.deleteNonAssociatedDevice()
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_NaStaMonitor.deleteNonAssociatedDevice() input:macaddress
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_NaStaMonitor.getMonitorDeviceStats() proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_NaStaMonitor.getNaStationStats() proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_RadioPowerSave. proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_RadioPowerSave.Enable proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_RadioPowerSave.SteerBandPrio proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_RadioPowerSave.SteerPeriod proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_RadioPowerSave.SteerRetries proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_ScanComplete! proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing. proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing.CSIClient.{i}. proto::prplmesh-dm-mapper
|
||||
@ -5345,6 +5354,7 @@ Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing.addClient() input:Receiver
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing.csiStats() proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing.delClient() proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_Sensing.delClient() input:MACAddress
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_SetRadioPowerDown() proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_SupportedSensingDataTypes proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_SupportedSensingExchangeTypes proto::prplmesh-dm-mapper
|
||||
Device.WiFi.Radio.{i}.X_PRPLWARE-COM_getApplicableBandwidthPerChannel() proto::prplmesh-dm-mapper
|
||||
|
||||
1
.gitlab/tests/cram/mxl25641-hdk-6/109-pwhm-power-save.t
Symbolic link
1
.gitlab/tests/cram/mxl25641-hdk-6/109-pwhm-power-save.t
Symbolic link
@ -0,0 +1 @@
|
||||
../wifi/wifi-power-save.t
|
||||
@ -241,6 +241,15 @@ get_ssid_ssid() {
|
||||
R "usp-cli -j -l Device.WiFi.SSID.?0 | jsonfilter -e @[0]'[@.Alias != \"ep2g0\" && @.Alias != \"ep5g0\" && @.Alias != \"ep6g0\"].SSID'" | LC_ALL=C sort
|
||||
}
|
||||
|
||||
# print the status of the accesspoints related to a given radio
|
||||
# In : Radio index
|
||||
# Out : the status of all the accespoint attached to the radio
|
||||
get_radio_ap_status() {
|
||||
local rad=$1
|
||||
rad_name=$(R "ba-cli -l WiFi.Radio.$rad.Name?" | sed '/^$/d')
|
||||
R "ba-cli WiFi.AccessPoint.? | sed -n '/Alias=\"${rad_name}/,/\.Status=/ { /\.Status=/p }'"
|
||||
}
|
||||
|
||||
# Set MLDUnit
|
||||
# In : AccessPoint object index, MLDUnit
|
||||
# Out : MLDUnit value set
|
||||
|
||||
168
.gitlab/tests/cram/wifi/wifi-power-save.t
Normal file
168
.gitlab/tests/cram/wifi/wifi-power-save.t
Normal file
@ -0,0 +1,168 @@
|
||||
Create R alias:
|
||||
|
||||
$ alias R="${CRAM_REMOTE_COMMAND:-}"
|
||||
$ . "${TESTDIR}/../scripts/wifi.sh"
|
||||
|
||||
$ R logger -t cram "Starting PWHM power save test ..."
|
||||
|
||||
Check RadioPowerSave configuration defaults:
|
||||
|
||||
$ wifi_dm Radio.*.X_PRPLWARE-COM_RadioPowerSave.?
|
||||
Device.WiFi.Radio.1.X_PRPLWARE-COM_RadioPowerSave.Enable=1
|
||||
Device.WiFi.Radio.1.X_PRPLWARE-COM_RadioPowerSave.SteerBandPrio="Lowest"
|
||||
Device.WiFi.Radio.1.X_PRPLWARE-COM_RadioPowerSave.SteerPeriod=1000
|
||||
Device.WiFi.Radio.1.X_PRPLWARE-COM_RadioPowerSave.SteerRetries=1
|
||||
Device.WiFi.Radio.2.X_PRPLWARE-COM_RadioPowerSave.Enable=1
|
||||
Device.WiFi.Radio.2.X_PRPLWARE-COM_RadioPowerSave.SteerBandPrio="Lowest"
|
||||
Device.WiFi.Radio.2.X_PRPLWARE-COM_RadioPowerSave.SteerPeriod=1000
|
||||
Device.WiFi.Radio.2.X_PRPLWARE-COM_RadioPowerSave.SteerRetries=1
|
||||
Device.WiFi.Radio.3.X_PRPLWARE-COM_RadioPowerSave.Enable=1
|
||||
Device.WiFi.Radio.3.X_PRPLWARE-COM_RadioPowerSave.SteerBandPrio="Lowest"
|
||||
Device.WiFi.Radio.3.X_PRPLWARE-COM_RadioPowerSave.SteerPeriod=1000
|
||||
Device.WiFi.Radio.3.X_PRPLWARE-COM_RadioPowerSave.SteerRetries=1
|
||||
|
||||
Stop prplMesh:
|
||||
|
||||
$ R logger -t cram "Stop prplMesh"
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Enable=0" | tr -d '\n'
|
||||
0 (no-eol)
|
||||
|
||||
$ sleep 5
|
||||
|
||||
Enable all AccessPoints:
|
||||
|
||||
$ R logger -t cram "Enables all vaps"
|
||||
$ wifi_dm "AccessPoint.*.Enable=1"
|
||||
Device.WiFi.AccessPoint.1.Enable=1
|
||||
Device.WiFi.AccessPoint.2.Enable=1
|
||||
Device.WiFi.AccessPoint.3.Enable=1
|
||||
Device.WiFi.AccessPoint.4.Enable=1
|
||||
Device.WiFi.AccessPoint.5.Enable=1
|
||||
Device.WiFi.AccessPoint.6.Enable=1
|
||||
Device.WiFi.AccessPoint.7.Enable=1
|
||||
Device.WiFi.AccessPoint.8.Enable=1
|
||||
Device.WiFi.AccessPoint.9.Enable=1
|
||||
|
||||
$ sleep 10
|
||||
|
||||
Check AccessPoints status:
|
||||
|
||||
$ wifi_dm "AccessPoint.*.Status?0"
|
||||
Device.WiFi.AccessPoint.1.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.2.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.3.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.4.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.5.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.6.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.7.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.8.Status="Enabled"
|
||||
Device.WiFi.AccessPoint.9.Status="Enabled"
|
||||
|
||||
Check radio status:
|
||||
|
||||
$ wifi_dm "Radio.*.Status?"
|
||||
Device.WiFi.Radio.1.Status="Up"
|
||||
Device.WiFi.Radio.2.Status="Up"
|
||||
Device.WiFi.Radio.3.Status="Up"
|
||||
|
||||
Save hostap pid:
|
||||
|
||||
$ hostap_pid=$(R pgrep -f 'hostapd')
|
||||
$ R logger -t cram "hostap PID : $hostap_pid"
|
||||
|
||||
Trigger power save on Radio 1:
|
||||
|
||||
$ R logger -t cram "call SetRadioPowerDown"
|
||||
$ R "ba-cli -l 'Device.WiFi.Radio.1.X_PRPLWARE-COM_SetRadioPowerDown()'" | sed '/^$/d'
|
||||
Device.WiFi.Radio.1.X_PRPLWARE-COM_SetRadioPowerDown() returned
|
||||
[
|
||||
{
|
||||
}
|
||||
]
|
||||
|
||||
$ sleep 10
|
||||
|
||||
Check radio status:
|
||||
|
||||
$ wifi_dm "Radio.1.Enable?"
|
||||
Device.WiFi.Radio.1.Enable=0
|
||||
|
||||
$ wifi_dm "Radio.1.Status?"
|
||||
Device.WiFi.Radio.1.Status="Down"
|
||||
|
||||
Check corresponding AccessPoints status:
|
||||
|
||||
$ get_radio_ap_status 1
|
||||
WiFi.AccessPoint.\d+.Status="Disabled" (re)
|
||||
WiFi.AccessPoint.\d+.Status="Disabled" (re)
|
||||
WiFi.AccessPoint.\d+.Status="Disabled" (re)
|
||||
|
||||
Re-enable Radio 1 and check the related vaps status:
|
||||
|
||||
$ R logger -t cram "Enable Radio 1"
|
||||
$ wifi_dm "Radio.1.Enable=1"
|
||||
Device.WiFi.Radio.1.Enable=1
|
||||
|
||||
$ sleep 10
|
||||
|
||||
$ get_radio_ap_status 1
|
||||
WiFi.AccessPoint.\d+.Status="Enabled" (re)
|
||||
WiFi.AccessPoint.\d+.Status="Enabled" (re)
|
||||
WiFi.AccessPoint.\d+.Status="Enabled" (re)
|
||||
|
||||
Before leaving the test, check if hostap pid has changed or not:
|
||||
|
||||
$ if [ "$(R pgrep -f 'hostapd')" = "$hostap_pid" ]; then echo "true"; else echo "hostap restarted during the test !"; fi
|
||||
true
|
||||
|
||||
Disable all vaps:
|
||||
|
||||
$ R logger -t cram "Disable all vaps"
|
||||
$ wifi_dm "AccessPoint.*.Enable=0"
|
||||
Device.WiFi.AccessPoint.1.Enable=0
|
||||
Device.WiFi.AccessPoint.2.Enable=0
|
||||
Device.WiFi.AccessPoint.3.Enable=0
|
||||
Device.WiFi.AccessPoint.4.Enable=0
|
||||
Device.WiFi.AccessPoint.5.Enable=0
|
||||
Device.WiFi.AccessPoint.6.Enable=0
|
||||
Device.WiFi.AccessPoint.7.Enable=0
|
||||
Device.WiFi.AccessPoint.8.Enable=0
|
||||
Device.WiFi.AccessPoint.9.Enable=0
|
||||
|
||||
$ sleep 10
|
||||
|
||||
Check AccessPoints status:
|
||||
|
||||
$ wifi_dm "AccessPoint.*.Status?0"
|
||||
Device.WiFi.AccessPoint.1.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.2.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.3.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.4.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.5.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.6.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.7.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.8.Status="Disabled"
|
||||
Device.WiFi.AccessPoint.9.Status="Disabled"
|
||||
|
||||
Re-enable Radio 1 and check that it's back to default state (Dormant):
|
||||
|
||||
$ wifi_dm "Radio.1.Enable=1"
|
||||
Device.WiFi.Radio.1.Enable=1
|
||||
|
||||
$ sleep 10
|
||||
|
||||
Check radio status:
|
||||
|
||||
$ wifi_dm "Radio.*.Status?"
|
||||
Device.WiFi.Radio.1.Status="Dormant"
|
||||
Device.WiFi.Radio.2.Status="Dormant"
|
||||
Device.WiFi.Radio.3.Status="Dormant"
|
||||
|
||||
Resume prplMesh:
|
||||
|
||||
$ R logger -t cram "Resume prplMesh"
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Enable=1" | tr -d '\n'
|
||||
1 (no-eol)
|
||||
|
||||
$ sleep 10
|
||||
$ R logger -t cram "Test finished!"
|
||||
@ -485,8 +485,8 @@ Check if hostapd process is stopped:
|
||||
|
||||
Resume prplMesh:
|
||||
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Enable=1" | tr -d '\n'
|
||||
1 (no-eol)
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Enable=1" | tr -d '\n'
|
||||
1 (no-eol)
|
||||
|
||||
$ R logger -t cram "Stopping PWHM test .."
|
||||
|
||||
|
||||
@ -143,6 +143,15 @@ Restore MLDUnit to default values
|
||||
$ set_mlduint 6 1
|
||||
1
|
||||
|
||||
$ set_mlduint 7 2
|
||||
2
|
||||
|
||||
$ set_mlduint 8 2
|
||||
2
|
||||
|
||||
$ set_mlduint 9 2
|
||||
2
|
||||
|
||||
$ sleep 10
|
||||
|
||||
Check RSNO2 parameter was added to 5GHz hostapd conf file:
|
||||
|
||||
1
.gitlab/tests/cram/wnc-freedom/109-pwhm-power-save.t
Symbolic link
1
.gitlab/tests/cram/wnc-freedom/109-pwhm-power-save.t
Symbolic link
@ -0,0 +1 @@
|
||||
../wifi/wifi-power-save.t
|
||||
@ -2,4 +2,4 @@
|
||||
feeds:
|
||||
- name: feed_prplmesh
|
||||
uri: https://gitlab.com/prpl-foundation/prplos/feeds/feed-prplmesh.git
|
||||
revision: main@af298bb28afbc83168b9217eec17d6099b80a0b7
|
||||
revision: main@6af68a6e4065f7c382dc95f6525ff11af993710b
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
feeds:
|
||||
- name: feed_prplos
|
||||
uri: https://gitlab.com/prpl-foundation/prplos/feeds/feed-prplos.git
|
||||
revision: main@69fc431d44ae3518e2fa32af320964a5a529cd4a
|
||||
revision: main@822601eda5c5449d9257f6817ddffafdf5b7060f
|
||||
|
||||
Loading…
Reference in New Issue
Block a user