| 148 | } |
| 149 | |
| 150 | ManagementGround::ManagementGround(std::shared_ptr<WBTxRx> wb_tx_rx) |
| 151 | : m_wb_txrx(std::move(wb_tx_rx)) { |
| 152 | m_console = openhd::log::create_or_get("wb_mngmt_gnd"); |
| 153 | auto cb_packet = [this](uint64_t nonce, int wlan_index, const uint8_t *data, |
| 154 | const int data_len) { |
| 155 | this->on_new_management_packet(data, data_len); |
| 156 | }; |
| 157 | auto mgmt_handler = std::make_shared<WBTxRx::StreamRxHandler>( |
| 158 | openhd::MANAGEMENT_RADIO_PORT_AIR_TX, cb_packet, nullptr); |
| 159 | m_wb_txrx->rx_register_stream_handler(mgmt_handler); |
| 160 | } |
| 161 | |
| 162 | ManagementGround::~ManagementGround() { |
| 163 | m_wb_txrx->rx_unregister_stream_handler(openhd::MANAGEMENT_RADIO_PORT_AIR_TX); |
nothing calls this directly
no test coverage detected