| 111 | } |
| 112 | |
| 113 | void WifiHotspot::stop() { |
| 114 | m_console->debug("Stopping wifi hotspot on card {}", m_wifi_card.device_name); |
| 115 | if (!started) return; |
| 116 | const auto args = |
| 117 | std::vector<std::string>{"con", "down", OHD_WIFI_HOTSPOT_CONNECTION_NAME}; |
| 118 | OHDUtil::run_command("nmcli", args); |
| 119 | m_console->info("Wifi hotspot stopped"); |
| 120 | } |
| 121 | |
| 122 | void WifiHotspot::start_async() { |
| 123 | openhd::AsyncHandle::instance().execute_async( |