Skip to content

Commit

Permalink
DELIA-66920 - GetWiFiSignalStrength is not return actual strength
Browse files Browse the repository at this point in the history
Reason for change: Removed the internal mapping and returning the actual
strength value
Test Procedure: Check with curl command
Risks: Low
Priority: P1
Signed-off-by: Gururaaja ESR <[email protected]>
  • Loading branch information
Gururaaja E S R authored and Gururaaja E S R committed Nov 25, 2024
1 parent c7f1673 commit f4a4476
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions NetworkManagerRDKProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,27 +1256,22 @@ const string CIDR_PREFIXES[CIDR_NETMASK_IP_LEN+1] = {
if (signalStrengthOut == 0)
{
quality = WIFI_SIGNAL_DISCONNECTED;
signalStrength = "0";
}
else if (signalStrengthOut >= signalStrengthThresholdExcellent && signalStrengthOut < 0)
{
quality = WIFI_SIGNAL_EXCELLENT;
signalStrength = "100";
}
else if (signalStrengthOut >= signalStrengthThresholdGood && signalStrengthOut < signalStrengthThresholdExcellent)
{
quality = WIFI_SIGNAL_GOOD;
signalStrength = "75";
}
else if (signalStrengthOut >= signalStrengthThresholdFair && signalStrengthOut < signalStrengthThresholdGood)
{
quality = WIFI_SIGNAL_FAIR;
signalStrength = "50";
}
else
{
quality = WIFI_SIGNAL_WEAK;
signalStrength = "25";
}

NMLOG_INFO ("GetWiFiSignalStrength success");
Expand Down

0 comments on commit f4a4476

Please sign in to comment.