Skip to content

WiFi_OnOff: improve wait handling for delayed interface creation#482

Open
smuppand wants to merge 1 commit into
qualcomm-linux:mainfrom
smuppand:wifi-connectivity
Open

WiFi_OnOff: improve wait handling for delayed interface creation#482
smuppand wants to merge 1 commit into
qualcomm-linux:mainfrom
smuppand:wifi-connectivity

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented Jun 4, 2026

Improve WiFi interface discovery robustness for WiFi_OnOff by allowing more time for delayed WiFi netdev creation in LAVA/CI environments.

Why

WiFi_OnOff can fail in LAVA even when the WiFi stack is present:

  • required WiFi kernel configs are enabled
  • WiFi-related modules are loaded
  • no WiFi probe/runtime failures are detected
  • but no wlan*/WiFi interface appears within the current wait window

This can happen because driver/module visibility, firmware initialization, cfg80211 PHY registration, and netdev creation are asynchronous. In automated CI, the interface may appear later than the current 30-second wait.

bhargav0610
bhargav0610 previously approved these changes Jun 4, 2026
@qcom-anilyada
Copy link
Copy Markdown
Contributor

In LAVA, WiFi driver modules can be visible before the cfg80211 PHY or
wlan netdev has been created. The current wait_for_wifi_interface()
helper only polls get_wifi_interface() for 30 seconds, which can fail
early on systems where firmware, udev, or netdev creation completes
later.

Update wait_for_wifi_interface() to trigger net uevents, wait for udev
settle when available, keep polling for the configured timeout, and emit
periodic wait progress logs. Also increase the WiFi_OnOff default wait
window to 60 seconds while preserving the existing WIFI_WAIT_SECS
environment override.

This keeps the CI policy strict: if the WiFi stack is present but no
usable interface appears after retries, the test still fails. The change
only reduces false failures caused by asynchronous driver/firmware/netdev
initialization timing.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand
Copy link
Copy Markdown
Contributor Author

smuppand commented Jun 4, 2026

@smuppand smuppand requested a review from bhargav0610 June 5, 2026 04:05
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.

3 participants