Skip to content

RDKEMW-18247 Panel is listing as a PLATCO device in Router client list in WiFi mode#313

Open
cmuhammedrafi wants to merge 5 commits into
developfrom
topic/RDKEMW-18247
Open

RDKEMW-18247 Panel is listing as a PLATCO device in Router client list in WiFi mode#313
cmuhammedrafi wants to merge 5 commits into
developfrom
topic/RDKEMW-18247

Conversation

@cmuhammedrafi
Copy link
Copy Markdown
Contributor

RDKEMW-18247 Panel is listing as a PLATCO device in Router client list in WiFi mode

Reason for change: Set the NetworkManager dhcp-hostname in the connection profile
to use the default hostname instead of the device name.

…t in WiFi mode

Reason for change: Set the NetworkManager dhcp-hostname in the connection profile
to use the default hostname instead of the device name.
@cmuhammedrafi cmuhammedrafi requested a review from a team as a code owner May 22, 2026 12:00
Copilot AI review requested due to automatic review settings May 22, 2026 12:00
Copy link
Copy Markdown
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

Updates the GNOME NetworkManager plugin to prefer a “default hostname” for DHCP hostname configuration (instead of a device name), aiming to prevent the panel from showing up as a PLATCO device in router client lists while in WiFi mode.

Changes:

  • Only set dhcp-hostname / dhcp-send-hostname in newly created WiFi/Ethernet connection profiles when the resolved hostname is non-empty.
  • Update device properties parsing to read DEFAULT_HOSTNAME (and update CI workflow fixture accordingly).
  • Add a guard in the proxy path to avoid modifying existing NM connection profiles when the resolved default hostname is empty.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
plugin/gnome/NetworkManagerGnomeWIFI.cpp Conditionally applies DHCP hostname settings (IPv4/IPv6) only when a non-empty hostname is available; adds logging for empty/non-empty hostname.
plugin/gnome/NetworkManagerGnomeUtils.cpp Switches device properties parsing from DEVICE_NAME to DEFAULT_HOSTNAME.
plugin/gnome/NetworkManagerGnomeProxy.cpp Avoids modifying existing NM connections when no default hostname is available.
.github/workflows/libnm_proxy_L1_test.yml Updates test fixture to provide DEFAULT_HOSTNAME in /etc/device.properties.

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

Comment on lines +264 to 265
if (line.find("DEFAULT_HOSTNAME=") != std::string::npos) {
deviceHostname = line.substr(line.find('=') + 1);
Comment on lines 153 to +157
hostname = nmUtils::deviceHostname(); // default hostname as device name
if(hostname.empty())
{
NMLOG_WARNING("default hostname is empty no modification in nm connections");
return false;
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