From e0f771b3f8911c17e4f1df2bbdc5053cfb1404c5 Mon Sep 17 00:00:00 2001 From: Houssem Dafdouf Date: Mon, 17 Nov 2025 14:54:33 +0100 Subject: [PATCH] ci: cram: wifi: add backhaul APs activation and deactivation test - Test the activation and deactivation of the new backhaul APs introduced in PPM-3517. References: PPM-3517 Closes: PPW-1165 Signed-off-by: Houssem Dafdouf --- .gitlab/tests/cram/mxl25641-hdk-6/100-pwhm.t | 141 ++++++++++++++++++ .gitlab/tests/cram/wnc-freedom/100-pwhm.t | 146 ++++++++++++++++++- .gitlab/tests/cram/wnc-freedom/101-mlo.t | 143 ++++++++++++++++++ 3 files changed, 429 insertions(+), 1 deletion(-) diff --git a/.gitlab/tests/cram/mxl25641-hdk-6/100-pwhm.t b/.gitlab/tests/cram/mxl25641-hdk-6/100-pwhm.t index f6a2a29cfb..23dcd2c3b8 100644 --- a/.gitlab/tests/cram/mxl25641-hdk-6/100-pwhm.t +++ b/.gitlab/tests/cram/mxl25641-hdk-6/100-pwhm.t @@ -196,6 +196,75 @@ Test activation of access point 6: Up Up +Test activation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 activation "$(get_ssid_ref 7)"" + + $ enable_ap 7 + WiFi.AccessPoint.7 enabled + + $ check_ap_ref_ssid 7 Up + WiFi.AccessPoint.7 SSID Reference is Up + + $ sleep 5 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 activation "$(get_ssid_ref 8)"" + + $ enable_ap 8 + WiFi.AccessPoint.8 enabled + + $ check_ap_ref_ssid 8 Up + WiFi.AccessPoint.8 SSID Reference is Up + + $ sleep 5 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 activation "$(get_ssid_ref 9)"" + + $ enable_ap 9 + WiFi.AccessPoint.9 enabled + + $ check_ap_ref_ssid 9 Up + WiFi.AccessPoint.9 SSID Reference is Up + + $ sleep 5 + + $ get_ssid_status + Up + Up + Up + Up + Up + Up + Up + Up + Up + Check that hostapd is operating as expected: $ R logger -t cram "Check that hostapd is operating" @@ -221,6 +290,9 @@ Check iw interfaces and beaconing: Interface wlan4.2 Interface wlan4.3 Interface wlan5 + ssid backhaul_(4C:BA:7D|A8:C2:46):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(4C:BA:7D|A8:C2:46):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(4C:BA:7D|A8:C2:46):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) ssid dummy_ssid_2.4GHz ssid dummy_ssid_5GHz ssid dummy_ssid_6GHz @@ -231,6 +303,75 @@ Check iw interfaces and beaconing: ssid prplOS-guest ssid prplOS-guest +Test deactivation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 deactivation "$(get_ssid_ref 9)"" + + $ disable_ap 9 + WiFi.AccessPoint.9 disabled + + $ check_ap_ref_ssid 9 Down + WiFi.AccessPoint.9 SSID Reference is Down + + $ sleep 5 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 deactivation "$(get_ssid_ref 8)"" + + $ disable_ap 8 + WiFi.AccessPoint.8 disabled + + $ check_ap_ref_ssid 8 Down + WiFi.AccessPoint.8 SSID Reference is Down + + $ sleep 5 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 deactivation "$(get_ssid_ref 7)"" + + $ disable_ap 7 + WiFi.AccessPoint.7 disabled + + $ check_ap_ref_ssid 7 Down + WiFi.AccessPoint.7 SSID Reference is Down + + $ sleep 5 + + $ get_ssid_status + Down + Down + Down + Up + Up + Up + Up + Up + Up + Test deactivation of access point 6: $ R logger -t cram "Test AccessPoint 6 deactivation "$(get_ssid_ref 6)"" diff --git a/.gitlab/tests/cram/wnc-freedom/100-pwhm.t b/.gitlab/tests/cram/wnc-freedom/100-pwhm.t index 229f37b8af..e4b177f914 100644 --- a/.gitlab/tests/cram/wnc-freedom/100-pwhm.t +++ b/.gitlab/tests/cram/wnc-freedom/100-pwhm.t @@ -196,6 +196,75 @@ Test activation of access point 6: Up Up +Test activation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 activation "$(get_ssid_ref 7)"" + + $ enable_ap 7 + WiFi.AccessPoint.7 enabled + + $ check_ap_ref_ssid 7 Up + WiFi.AccessPoint.7 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 activation "$(get_ssid_ref 8)"" + + $ enable_ap 8 + WiFi.AccessPoint.8 enabled + + $ check_ap_ref_ssid 8 Up + WiFi.AccessPoint.8 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 activation "$(get_ssid_ref 9)"" + + $ enable_ap 9 + WiFi.AccessPoint.9 enabled + + $ check_ap_ref_ssid 9 Up + WiFi.AccessPoint.9 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Up + Up + Up + Up + Up + Up + Up + Up + Up + Check that hostapd is operating as expected: $ R logger -t cram "Check that hostapd is operating" @@ -208,8 +277,11 @@ Check that hostapd is operating as expected: hostapd $ R "ubus list | grep hostapd. | sort" + hostapd.wlan0.3 + hostapd.wlan1.3 hostapd.wlan2.1 hostapd.wlan2.2 + hostapd.wlan2.3 Check iw interfaces and beaconing: @@ -226,12 +298,15 @@ Check iw interfaces and beaconing: Interface wlan2.1 Interface wlan2.2 Interface wlan2.3 + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) ssid prplOS ssid prplOS-guest Check that the tree interfaces are present in the main link interface: - $ R "iw dev" | grep -e link -e channel | sed 's/^[ \t]*//' + $ R "iw dev" | grep -e link -A 3 | grep -e link -e channel | sed 's/^[ \t]*//' link 0: channel.* (re) link 1: @@ -245,6 +320,75 @@ Check that the tree interfaces are present in the main link interface: link 2: channel.* (re) +Test deactivation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 deactivation "$(get_ssid_ref 9)"" + + $ disable_ap 9 + WiFi.AccessPoint.9 disabled + + $ check_ap_ref_ssid 9 Down + WiFi.AccessPoint.9 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 deactivation "$(get_ssid_ref 8)"" + + $ disable_ap 8 + WiFi.AccessPoint.8 disabled + + $ check_ap_ref_ssid 8 Down + WiFi.AccessPoint.8 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 deactivation "$(get_ssid_ref 7)"" + + $ disable_ap 7 + WiFi.AccessPoint.7 disabled + + $ check_ap_ref_ssid 7 Down + WiFi.AccessPoint.7 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Down + Down + Up + Up + Up + Up + Up + Up + Test deactivation of access point 6: $ R logger -t cram "Test AccessPoint 6 deactivation "$(get_ssid_ref 6)"" diff --git a/.gitlab/tests/cram/wnc-freedom/101-mlo.t b/.gitlab/tests/cram/wnc-freedom/101-mlo.t index 0625c81c14..37f602e102 100644 --- a/.gitlab/tests/cram/wnc-freedom/101-mlo.t +++ b/.gitlab/tests/cram/wnc-freedom/101-mlo.t @@ -230,6 +230,75 @@ Test activation of access point 6: Up Up +Test activation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 activation "$(get_ssid_ref 7)"" + + $ enable_ap 7 + WiFi.AccessPoint.7 enabled + + $ check_ap_ref_ssid 7 Up + WiFi.AccessPoint.7 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 activation "$(get_ssid_ref 8)"" + + $ enable_ap 8 + WiFi.AccessPoint.8 enabled + + $ check_ap_ref_ssid 8 Up + WiFi.AccessPoint.8 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test activation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 activation "$(get_ssid_ref 9)"" + + $ enable_ap 9 + WiFi.AccessPoint.9 enabled + + $ check_ap_ref_ssid 9 Up + WiFi.AccessPoint.9 SSID Reference is Up + + $ sleep 10 + + $ get_ssid_status + Up + Up + Up + Up + Up + Up + Up + Up + Up + Check that hostapd is operating as expected: $ R logger -t cram "Check that hostapd is operating" @@ -244,10 +313,13 @@ Check that hostapd is operating as expected: $ R "ubus list | grep hostapd. | sort" hostapd.wlan0.1 hostapd.wlan0.2 + hostapd.wlan0.3 hostapd.wlan1.1 hostapd.wlan1.2 + hostapd.wlan1.3 hostapd.wlan2.1 hostapd.wlan2.2 + hostapd.wlan2.3 Check iw interfaces and beaconing: @@ -264,6 +336,9 @@ Check iw interfaces and beaconing: Interface wlan2.1 Interface wlan2.2 Interface wlan2.3 + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) + ssid backhaul_(AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re) ssid prplOS ssid prplOS ssid prplOS @@ -271,6 +346,74 @@ Check iw interfaces and beaconing: ssid prplOS-guest ssid prplOS-guest +Test deactivation of access point 9: + + $ R logger -t cram "Test AccessPoint 9 deactivation "$(get_ssid_ref 9)"" + + $ disable_ap 9 + WiFi.AccessPoint.9 disabled + + $ check_ap_ref_ssid 9 Down + WiFi.AccessPoint.9 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Up + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 8: + + $ R logger -t cram "Test AccessPoint 8 deactivation "$(get_ssid_ref 8)"" + + $ disable_ap 8 + WiFi.AccessPoint.8 disabled + + $ check_ap_ref_ssid 8 Down + WiFi.AccessPoint.8 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Down + Up + Up + Up + Up + Up + Up + Up + +Test deactivation of access point 7: + + $ R logger -t cram "Test AccessPoint 7 deactivation "$(get_ssid_ref 7)"" + + $ disable_ap 7 + WiFi.AccessPoint.7 disabled + + $ check_ap_ref_ssid 7 Down + WiFi.AccessPoint.7 SSID Reference is Down + + $ sleep 10 + + $ get_ssid_status + Down + Down + Down + Up + Up + Up + Up + Up + Up Test deactivation of access point 6: $ R logger -t cram "Test AccessPoint 6 deactivation "$(get_ssid_ref 6)""