Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
0ce9519
RDKEMW-13122: Wi‑Fi networks in the picker are not ordered by signal …
gururaajar Jan 30, 2026
947efe0
RDKEMW-13122: Wi‑Fi networks in the picker are not ordered by signal …
gururaajar Jan 30, 2026
9d78aa5
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Jan 30, 2026
33640ff
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Jan 30, 2026
f8dd069
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Jan 31, 2026
50ba570
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Jan 31, 2026
698ede0
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 2, 2026
4f87434
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 2, 2026
04ed27c
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
ab09123
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
f009542
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
ee200c3
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
f9a4fd7
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
18f390e
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
1052a81
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
c325fa6
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
4843974
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
aecaa69
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
3931423
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
1b4563a
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
7ea4552
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
58481ff
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
bbd8052
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
8369c8c
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
0b2da0c
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
21f37cc
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
eb54645
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
be800d2
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
816359f
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
875a2d5
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
a905d94
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
f0648e6
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
a9bf226
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
a614e57
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
ef0c300
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
dc7c7cc
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
8b675ad
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
a6194c1
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
86cd3be
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
4ab22c3
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 3, 2026
e62854c
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
cb62c88
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
326a300
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
27476d7
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
e499cbe
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
afddfa2
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
a574270
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
937e39f
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
ad1994a
Merge branch 'topic/RDKEMW-13124' of github.com:rdkcentral/networkman…
gururaajar Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions definition/NetworkManager.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,18 @@
},
"strength":{
"summary": "The WiFi Signal RSSI value in dBm",
"type": "string",
"example": "-32"
"type": "integer",
"example": -32
},
"noise":{
"summary": "The WiFi Signal Noise detected in dBm",
"type": "string",
"example": "-96"
"type": "integer",
"example": -96
},
"snr":{
"summary": "Signal to Noise Ratio(SNR) in dBm",
"type": "string",
"example": "74"
"type": "integer",
"example": 74
},
"quality":{
"summary": "WiFi Quality based on Signal to Noise Ratio (SNR)",
Expand All @@ -148,8 +148,9 @@
},
"frequency":{
"summary": "The supported frequency for this SSID in GHz",
"type": "string",
"example": "2.4420"
"type": "number",
"float": true,
"example": 2.4420
},
"errors": {
"summary": "Error string of scan failure",
Expand Down Expand Up @@ -1109,8 +1110,8 @@
},
"rate":{
"summary": "The physical data rate in Mbps",
"type": "string",
"example": "144"
"type": "integer",
"example": 144
},
"noise":{
"$ref": "#/definitions/noise"
Expand Down
48 changes: 24 additions & 24 deletions docs/NetworkManagerPlugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -1367,10 +1367,10 @@ This method takes no parameters.
| result.ssid | string | The WiFi SSID Name |
| result.bssid | string | The BSSID of given SSID |
| result.security | string | The security mode. See the `connect` method |
| result.strength | string | The WiFi Signal RSSI value in dBm |
| result.frequency | string | The supported frequency for this SSID in GHz |
| result.rate | string | The physical data rate in Mbps |
| result.noise | string | The WiFi Signal Noise detected in dBm |
| result.strength | integer | The WiFi Signal RSSI value in dBm |
| result.frequency | number | The supported frequency for this SSID in GHz |
| result.rate | integer | The physical data rate in Mbps |
| result.noise | integer | The WiFi Signal Noise detected in dBm |
| result.success | boolean | Whether the request succeeded |

### Example
Expand All @@ -1395,10 +1395,10 @@ This method takes no parameters.
"ssid": "myHomeSSID",
"bssid": "AA:BB:CC:DD:EE:FF",
"security": "2",
"strength": "-32",
"frequency": "2.4420",
"rate": "144",
"noise": "-96",
"strength": -32,
"frequency": 2.442,
"rate": 144,
"noise": -96,
"success": true
}
}
Expand Down Expand Up @@ -1524,9 +1524,9 @@ This method takes no parameters.
| result | object | |
| result.ssid | string | The WiFi SSID Name |
| result.quality | string | WiFi Quality based on Signal to Noise Ratio (SNR) |
| result.snr | string | Signal to Noise Ratio(SNR) in dBm |
| result.strength | string | The WiFi Signal RSSI value in dBm |
| result.noise | string | The WiFi Signal Noise detected in dBm |
| result.snr | integer | Signal to Noise Ratio(SNR) in dBm |
| result.strength | integer | The WiFi Signal RSSI value in dBm |
| result.noise | integer | The WiFi Signal Noise detected in dBm |
| result.success | boolean | Whether the request succeeded |

### Example
Expand All @@ -1550,9 +1550,9 @@ This method takes no parameters.
"result": {
"ssid": "myHomeSSID",
"quality": "Excellent",
"snr": "74",
"strength": "-32",
"noise": "-96",
"snr": 74,
"strength": -32,
"noise": -96,
"success": true
}
}
Expand Down Expand Up @@ -1872,8 +1872,8 @@ Triggered when scan completes or when scan cancelled.
| params.ssids[#] | object | |
| params.ssids[#].ssid | string | Discovered SSID |
| params.ssids[#].security | integer | The security mode. See `GetSupportedSecurityModes` |
| params.ssids[#].strength | string | The WiFi Signal RSSI value in dBm |
| params.ssids[#].frequency | string | The supported frequency for this SSID in GHz |
| params.ssids[#].strength | integer | The WiFi Signal RSSI value in dBm |
| params.ssids[#].frequency | number | The supported frequency for this SSID in GHz |

### Example

Expand All @@ -1886,8 +1886,8 @@ Triggered when scan completes or when scan cancelled.
{
"ssid": "myAP-2.4",
"security": 2,
"strength": "-32",
"frequency": "2.4420"
"strength": -32,
"frequency": 2.442
}
]
}
Expand Down Expand Up @@ -1932,9 +1932,9 @@ Triggered when WIFI Signal quality changed which is decided based on SNR value w
| params | object | |
| params.ssid | string | The WiFi SSID Name |
| params.quality | string | WiFi Quality based on Signal to Noise Ratio (SNR) |
| params.snr | string | Signal to Noise Ratio(SNR) in dBm |
| params.strength | string | The WiFi Signal RSSI value in dBm |
| params.noise | string | The WiFi Signal Noise detected in dBm |
| params.snr | integer | Signal to Noise Ratio(SNR) in dBm |
| params.strength | integer | The WiFi Signal RSSI value in dBm |
| params.noise | integer | The WiFi Signal Noise detected in dBm |

### Example

Expand All @@ -1945,9 +1945,9 @@ Triggered when WIFI Signal quality changed which is decided based on SNR value w
"params": {
"ssid": "myHomeSSID",
"quality": "Excellent",
"snr": "74",
"strength": "-32",
"noise": "-96"
"snr": 74,
"strength": -32,
"noise": -96
}
}
```
Expand Down
84 changes: 71 additions & 13 deletions interface/INetworkManager.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

Check failure on line 1 in interface/INetworkManager.h

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'interface/INetworkManager.h' (Match: rdkcentral/rdkservices/6.1.7, 193 lines, url: https://github.com/rdkcentral/rdkservices/archive/refs/tags/AML_BSP_REL_VERSION_RDK6.1.7.tar.gz, file: NetworkManager/interface/INetworkManager.h)
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
Expand Down Expand Up @@ -30,7 +30,14 @@
ID_NETWORKMANAGER = 0x800004E0,
ID_NETWORKMANAGER_NOTIFICATION = ID_NETWORKMANAGER + 1,
ID_NETWORKMANAGER_INTERFACE_DETAILS_ITERATOR = ID_NETWORKMANAGER + 2,
ID_NETWORKMANAGER_WIFI_SECURITY_MODE_ITERATOR = ID_NETWORKMANAGER + 3
ID_NETWORKMANAGER_WIFI_SECURITY_MODE_ITERATOR = ID_NETWORKMANAGER + 3,
ID_NETWORKMANAGER_INTERFACE_STATE_NOTIFICATION = ID_NETWORKMANAGER + 4,
ID_NETWORKMANAGER_ACTIVE_INTERFACE_NOTIFICATION = ID_NETWORKMANAGER + 5,
ID_NETWORKMANAGER_IP_ADDRESS_NOTIFICATION = ID_NETWORKMANAGER + 6,
ID_NETWORKMANAGER_INTERNET_STATUS_NOTIFICATION = ID_NETWORKMANAGER + 7,
ID_NETWORKMANAGER_AVAILABLE_SSIDS_NOTIFICATION = ID_NETWORKMANAGER + 8,
ID_NETWORKMANAGER_WIFI_STATE_NOTIFICATION = ID_NETWORKMANAGER + 9,
ID_NETWORKMANAGER_WIFI_SIGNAL_NOTIFICATION = ID_NETWORKMANAGER + 10
};

/* @json @text:keep */
Expand Down Expand Up @@ -130,10 +137,10 @@
string ssid;
string bssid;
WIFISecurityMode security;
string strength;
string frequency;
string rate;
string noise;
int32_t strength;
double frequency;
int32_t rate;
int32_t noise;
};

struct EXTERNAL WIFISecurityModeInfo {
Expand Down Expand Up @@ -252,7 +259,7 @@
virtual uint32_t StartWPS(const WiFiWPS& method /* @in */, const string& pin /* @in */) = 0;
virtual uint32_t StopWPS(void) = 0;
virtual uint32_t GetWifiState(WiFiState &state /* @out */) = 0;
virtual uint32_t GetWiFiSignalQuality(string& ssid /* @out */, string& strength /* @out */, string& noise /* @out */, string& snr /* @out */, WiFiSignalQuality& quality /* @out */) = 0;
virtual uint32_t GetWiFiSignalQuality(string& ssid /* @out */, int& strength /* @out */, int& noise /* @out */, int& snr /* @out */, WiFiSignalQuality& quality /* @out */) = 0;
virtual uint32_t GetSupportedSecurityModes(ISecurityModeIterator*& modes/* @out */) const = 0;

/* @brief Set the network manager plugin log level */
Expand All @@ -263,25 +270,76 @@
virtual uint32_t Configure(const string configLine/* @in */) = 0;

/* @event */
struct EXTERNAL INotification : virtual public Core::IUnknown
struct EXTERNAL IInterfaceStateChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_NOTIFICATION };
enum { ID = ID_NETWORKMANAGER_INTERFACE_STATE_NOTIFICATION };

// Network Notifications that other processes can subscribe to
virtual void onInterfaceStateChange(const InterfaceState state /* @in */, const string interface /* @in */) = 0;
};

/* @event */
struct EXTERNAL IActiveInterfaceChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_ACTIVE_INTERFACE_NOTIFICATION };

virtual void onActiveInterfaceChange(const string prevActiveInterface /* @in */, const string currentActiveInterface /* @in */) = 0;
};

/* @event */
struct EXTERNAL IIPAddressChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_IP_ADDRESS_NOTIFICATION };

virtual void onIPAddressChange(const string interface /* @in */, const string ipversion /* @in */, const string ipaddress /* @in */, const IPStatus status /* @in */) = 0;
};

/* @event */
struct EXTERNAL IInternetStatusChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_INTERNET_STATUS_NOTIFICATION };

virtual void onInternetStatusChange(const InternetStatus prevState /* @in */, const InternetStatus currState /* @in */, const string interface /* @in */) = 0;
};

/* @event */
struct EXTERNAL IAvailableSSIDsNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_AVAILABLE_SSIDS_NOTIFICATION };

// WiFi Notifications that other processes can subscribe to
virtual void onAvailableSSIDs(const string jsonOfScanResults /* @in */) = 0;
};

/* @event */
struct EXTERNAL IWiFiStateChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_WIFI_STATE_NOTIFICATION };

virtual void onWiFiStateChange(const WiFiState state /* @in */) = 0;
virtual void onWiFiSignalQualityChange(const string ssid /* @in */, const string strength /* @in */, const string noise /* @in */, const string snr /* @in */, const WiFiSignalQuality quality /* @in */) = 0;
};

/* @event */
struct EXTERNAL IWiFiSignalQualityChangeNotification : virtual public Core::IUnknown
{
enum { ID = ID_NETWORKMANAGER_WIFI_SIGNAL_NOTIFICATION };

virtual void onWiFiSignalQualityChange(const string ssid /* @in */, const int strength /* @in */, const int noise /* @in */, const int snr /* @in */, const WiFiSignalQuality quality /* @in */) = 0;
};

// Allow other processes to register/unregister from our notifications
virtual uint32_t Register(INetworkManager::INotification* notification) = 0;
virtual uint32_t Unregister(INetworkManager::INotification* notification) = 0;
virtual uint32_t RegisterInterfaceStateChangeNotification(IInterfaceStateChangeNotification* notification) = 0;
virtual uint32_t UnregisterInterfaceStateChangeNotification(IInterfaceStateChangeNotification* notification) = 0;
virtual uint32_t RegisterActiveInterfaceChangeNotification(IActiveInterfaceChangeNotification* notification) = 0;
virtual uint32_t UnregisterActiveInterfaceChangeNotification(IActiveInterfaceChangeNotification* notification) = 0;
virtual uint32_t RegisterIPAddressChangeNotification(IIPAddressChangeNotification* notification) = 0;
virtual uint32_t UnregisterIPAddressChangeNotification(IIPAddressChangeNotification* notification) = 0;
virtual uint32_t RegisterInternetStatusChangeNotification(IInternetStatusChangeNotification* notification) = 0;
virtual uint32_t UnregisterInternetStatusChangeNotification(IInternetStatusChangeNotification* notification) = 0;
virtual uint32_t RegisterAvailableSSIDsNotification(IAvailableSSIDsNotification* notification) = 0;
virtual uint32_t UnregisterAvailableSSIDsNotification(IAvailableSSIDsNotification* notification) = 0;
virtual uint32_t RegisterWiFiStateChangeNotification(IWiFiStateChangeNotification* notification) = 0;
virtual uint32_t UnregisterWiFiStateChangeNotification(IWiFiStateChangeNotification* notification) = 0;
virtual uint32_t RegisterWiFiSignalQualityChangeNotification(IWiFiSignalQualityChangeNotification* notification) = 0;
virtual uint32_t UnregisterWiFiSignalQualityChangeNotification(IWiFiSignalQualityChangeNotification* notification) = 0;
};
Comment on lines 140 to 343
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This is a breaking API change that modifies the types of signal quality fields from strings to numeric types. This should be documented in the CHANGELOG.md file with a new version entry under the "Changed" category to inform API consumers about the breaking change.

Copilot uses AI. Check for mistakes.
}
}
18 changes: 12 additions & 6 deletions legacy/LegacyWiFiManagerAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,12 @@ namespace WPEFramework
{
response["ssid"] = ssidInfo.ssid;
response["bssid"] = ssidInfo.bssid;
response["rate"] = ssidInfo.rate;
response["noise"] = ssidInfo.noise;
response["rate"] = to_string(ssidInfo.rate);
response["noise"] = to_string(ssidInfo.noise);
response["security"] = JsonValue(mapToLegacySecurityMode(ssidInfo.security));
response["signalStrength"] = ssidInfo.strength;
response["frequency"] = ssidInfo.frequency;
response["signalStrength"] = to_string(ssidInfo.strength);
std::string freqStr = to_string(ssidInfo.frequency);
response["frequency"] = freqStr.substr(0, 3);
}
returnJson(rc);
}
Expand Down Expand Up @@ -911,10 +912,15 @@ namespace WPEFramework
{
JsonObject object = ssids[i].Object();
uint32_t security = object["security"].Number();
object["security"] = mapToLegacySecurityMode(security);
ssidsUpdated.Add(object);
JsonObject newObject;
newObject["ssid"] = object["ssid"];
newObject["security"] = mapToLegacySecurityMode(security);
newObject["signalStrength"] = object["strength"];
newObject["frequency"] = object["frequency"];
ssidsUpdated.Add(newObject);
}
newParameters["ssids"] = ssidsUpdated;
newParameters["moreData"] = false;
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The addition of the "moreData" field appears to be unrelated to the PR's stated purpose of returning strength and frequency as numbers. This change is not mentioned in the PR description or title. If this is an intentional change, it should be documented in the PR description. If it's not needed, it should be removed to keep the PR focused on the type conversion changes.

Copilot uses AI. Check for mistakes.

newParameters.ToString(json);
NMLOG_INFO("Event with %d SSIDs as, %s", ssids.Length(), json.c_str());
Expand Down
16 changes: 14 additions & 2 deletions plugin/NetworkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ namespace WPEFramework

// Register Notifications
SYSLOG(Logging::Startup, (_T("Registering Notification to NetworkManager")));
_networkManager->Register(&_notification);
_networkManager->RegisterInterfaceStateChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IInterfaceStateChangeNotification>());
_networkManager->RegisterActiveInterfaceChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IActiveInterfaceChangeNotification>());
_networkManager->RegisterIPAddressChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IIPAddressChangeNotification>());
_networkManager->RegisterInternetStatusChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IInternetStatusChangeNotification>());
_networkManager->RegisterAvailableSSIDsNotification(_notification.baseInterface<Exchange::INetworkManager::IAvailableSSIDsNotification>());
_networkManager->RegisterWiFiStateChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IWiFiStateChangeNotification>());
_networkManager->RegisterWiFiSignalQualityChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IWiFiSignalQualityChangeNotification>());

SYSLOG(Logging::Startup, (_T("Configuring NetworkManager")));
if (_networkManager->Configure(service->ConfigLine()) != Core::ERROR_NONE)
Expand Down Expand Up @@ -145,7 +151,13 @@ namespace WPEFramework
_service->Unregister(&_notification);

SYSLOG(Logging::Shutdown, (_T("Unregister Event Notifications of NetworkManager")));
_networkManager->Unregister(&_notification);
_networkManager->UnregisterInterfaceStateChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IInterfaceStateChangeNotification>());
_networkManager->UnregisterActiveInterfaceChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IActiveInterfaceChangeNotification>());
_networkManager->UnregisterIPAddressChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IIPAddressChangeNotification>());
_networkManager->UnregisterInternetStatusChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IInternetStatusChangeNotification>());
_networkManager->UnregisterAvailableSSIDsNotification(_notification.baseInterface<Exchange::INetworkManager::IAvailableSSIDsNotification>());
_networkManager->UnregisterWiFiStateChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IWiFiStateChangeNotification>());
_networkManager->UnregisterWiFiSignalQualityChangeNotification(_notification.baseInterface<Exchange::INetworkManager::IWiFiSignalQualityChangeNotification>());

// Unregister all our JSON-RPC methods
SYSLOG(Logging::Shutdown, (_T("Unregister JSON RPC Methods of NetworkManager")));
Expand Down
Loading
Loading