Skip to content

Add WiFi Connectivity Validation with Hybrid nmcli and wpa_supplicant Support #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smuppand
Copy link
Contributor

@smuppand smuppand commented Jun 6, 2025

This patch adds a new hardware validation test for WiFi connectivity under the FunctionalArea suite. Key features include:

  • Hybrid connection method:
    • Primary: nmcli (NetworkManager CLI)
    • Fallback: wpa_supplicant + udhcpc
  • Supports reading SSID/password from:
    • CLI arguments
    • Environment variables
    • Fallback file (ssid_list.txt)
  • Validates network IP assignment and performs internet ping test
  • Handles systemd-networkd.service check and recovery
  • Includes cleanup of background processes (wpa_supplicant) and configuration files

This test is useful for CI environments where both NetworkManager and wpa_supplicant setups might exist across devices.

@mwasilew @vnarapar @qcom-anilyada 

- Register a cleanup() function to terminate background wpa_supplicant processes
- Ensure WPA config is temporary and removed post test
- Improve robustness of fallback to wpa_supplicant + udhcpc if nmcli fails
- Ensure IP and internet connectivity checks are logged
- Preserve original argument/env/file logic for SSID/password
- Maintain logging, result output, and functestlib usage

Signed-off-by: Srikanth Muppandam <[email protected]>
@smuppand smuppand requested review from mwasilew and vnarapar June 6, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant