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

Method iw_enable_monitor_mode

OpenHD/ohd_interface/src/wifi_command_helper.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool wifi::commandhelper::iw_enable_monitor_mode(const std::string &device) {
56 get_logger()->info("iw_enable_monitor_mode {}", device);
57 std::vector<std::string> args{"dev", device, "set", "monitor", "otherbss"};
58 bool success = OHDUtil::run_command("iw", args);
59 return success;
60}
61
62// use_ht40_plus: Only in 40Mhz mode
63static std::string channel_width_as_iw_string(uint32_t channel_width,

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.70

Tested by

no test coverage detected