Skip to content

Commit

Permalink
Merge branch 'wps_chg' of github.com:gururaajar/networkmanager into w…
Browse files Browse the repository at this point in the history
…ps_chg
  • Loading branch information
Gururaaja E S R authored and Gururaaja E S R committed Nov 25, 2024
2 parents 0b8a6e7 + 643519e commit 63da6a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetworkManagerGnomeWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ namespace WPEFramework
void wifiManager::wpsAction()
{
FILE *fp;
std::ifstream configFile("/opt/secure/wifi/wpa_supplicant.conf");
std::ifstream configFile(WPA_SUPPLICANT_CONF);
std::string line;
std::string securityPattern = "key_mgmt=";
std::string ssidPattern = "ssid=";
Expand Down Expand Up @@ -984,7 +984,7 @@ namespace WPEFramework
return ;
}
pclose(fp);
std::string wpaCliStatus = "wpa_cli status";
std::string wpaCliStatus = WPA_CLI_STATUS;
gettimeofday(&startTime, NULL);
while (true) {
if(!wpsStop.load()){
Expand Down
3 changes: 3 additions & 0 deletions NetworkManagerGnomeWIFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include <string.h>
#include <atomic>

#define WPA_SUPPLICANT_CONF "/opt/secure/wifi/wpa_supplicant.conf"
#define WPA_CLI_STATUS "wpa_cli status"

namespace WPEFramework
{
namespace Plugin
Expand Down

0 comments on commit 63da6a1

Please sign in to comment.