RDKEMW-23361 : Failed to Connect to Hidden SSID - #334
Open
jincysam87 wants to merge 1 commit into
Open
Conversation
Reason for change: wifi connect call with invalid/hidden SSID results in IPC timeout Test Procedure: Issue wifi connect does not timeout even if SSID is invalid/hidden Risks: Medium Signed-off-by: jincysaramma_sam@cable.comcast.com
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent WiFi connect IPC timeouts when attempting to connect to an invalid/hidden SSID by adjusting the connection flow when the SSID is not found in the scan list.
Changes:
- Adds a
deleteClientConnection()call before attempting to persist and connect to a hidden/unknown SSID viaaddToKnownSSIDs().
Suppressed comments (1)
plugin/gnome/NetworkManagerGnomeWIFI.cpp:1193
- In this branch,
deleteClientConnection()is now called beforeaddToKnownSSIDs(), but the code still callsdeleteClientConnection()again on both success and failure paths. SinceaddToKnownSSIDs()creates and deletes its own client connection, these extra calls will pop an unpushedGMainContextand unlockm_opMutexwhen it is not held, which is undefined behavior and can crash/hang.
deleteClientConnection();
if(addToKnownSSIDs(ssidInfo))
{
NMLOG_DEBUG("Adding to known ssid '%s' ", ssidInfo.ssid.c_str());
deleteClientConnection();
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for change: wifi connect call with invalid/hidden SSID results in IPC timeout
Test Procedure: Issue wifi connect does not timeout even if SSID is invalid/hidden
Risks: Medium
Signed-off-by: jincysaramma_sam@cable.comcast.com