Skip to content

Commit

Permalink
Update NetworkManagerImplementation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tabbas651 committed Nov 13, 2024
1 parent df3fb12 commit 2a579f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NetworkManagerImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ namespace WPEFramework
std::string frequency = object["frequency"].String();

bool ssidMatches = scanForSsidsSet.empty() || scanForSsidsSet.find(ssid) != scanForSsidsSet.end();
bool freqMatches = scanForFreq.empty() || (isValidFrequency(scanForFreq) && scanForFreq == frequency);
bool freqMatches = scanForFreq.empty() || scanForFreq == frequency;

if (ssidMatches && freqMatches)
{
Expand Down
4 changes: 2 additions & 2 deletions NetworkManagerImplementation.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ namespace WPEFramework
string scanForFreq;
std::vector<std::string> scanForSsidslist;

bool isValidFrequency(const std::string& freq)
/* bool isValidFrequency(const std::string& freq)
{
std::unordered_set<std::string> validFrequencies = {"2.4", "5", "6"};
return validFrequencies.find(freq) != validFrequencies.end();
}

*/
public:
WiFiSignalStrengthMonitor m_wifiSignalMonitor;
mutable ConnectivityMonitor connectivityMonitor;
Expand Down

0 comments on commit 2a579f2

Please sign in to comment.