MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / util_delete_nm_file

Method util_delete_nm_file

OpenHD/ohd_interface/src/wifi_hotspot.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool WifiHotspot::util_delete_nm_file() {
76 // cleanup - proper stop of openhd, do not leave any traces behind.
77 if (OHDFilesystemUtil::exists(
78 get_ohd_wifi_hotspot_connection_nm_filename())) {
79 OHDUtil::run_command("nmcli",
80 {"con", "delete", OHD_WIFI_HOTSPOT_CONNECTION_NAME});
81 return true;
82 }
83 return false;
84}
85
86WifiHotspot::WifiHotspot(OHDProfile profile, WiFiCard wifiCard,
87 const openhd::WifiSpace& wifibroadcast_frequency_space)

Callers

nothing calls this directly

Tested by

no test coverage detected