Skip to content

Conversation

@gururaajar
Copy link
Contributor

Reason for Change: As the interface type is not checked before assigning the firstconnection. Firstconnection is getting assigned with a valid wifi connection when both ethernet and wifi are connected. So even when Wired connection is activated we end in activating Wifi connection. Added interface check to avoid this
Test Procedure: Migration test scenario
Priority: P1
Risks: Medium

Reason for Change: As the interface type is not checked before assigning the firstconnection. Firstconnection is getting assigned with a valid wifi connection when both ethernet and wifi are connected. So even when Wired connection is activated we end in activating Wifi connection. Added interface check to avoid this
Test Procedure: Migration test scenario
Priority: P1
Risks: Medium
Signed-off-by: Gururaaja ESR<Gururaja_ErodeSriranganRamlingham@comcast.com>
@gururaajar gururaajar requested a review from a team as a code owner February 9, 2026 15:37
Copilot AI review requested due to automatic review settings February 9, 2026 15:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes migration behavior where activating a wired interface could incorrectly fall back to a Wi‑Fi connection when both Wi‑Fi and Ethernet are available, by filtering the “first connection” fallback by interface type.

Changes:

  • Only assign firstConnection when the connection type matches the requested interface (wlan vs eth).
  • Add Ethernet connection handling (802-3-ethernet) alongside existing Wi‑Fi handling (802-11-wireless).
Comments suppressed due to low confidence (1)

plugin/gnome/NetworkManagerGnomeWIFI.cpp:878

  • When selecting knownConnection by matching connId to knowConnectionID, the code does not verify that the connection type matches the requested interface (iface). If a Wi‑Fi profile happens to share the same connection ID as the wired profile (IDs are user-editable), this can still select and activate the wrong connection, reintroducing the migration issue. Consider additionally checking connTypStr (or re-fetching nm_connection_get_connection_type) against the expected type for iface before assigning knownConnection/breaking.
                }

                if (connId != NULL && strcmp(connId, knowConnectionID.c_str()) == 0)
                {
                    knownConnection = g_object_ref(connection);

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@karuna2git karuna2git merged commit ab77ea4 into develop Feb 11, 2026
16 of 17 checks passed
@karuna2git karuna2git deleted the topic/RDKEMW-13401 branch February 11, 2026 18:44
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants