diff options
Diffstat (limited to 'client_interface_impl.cpp')
-rw-r--r-- | client_interface_impl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/client_interface_impl.cpp b/client_interface_impl.cpp index 26bcba3..cd50e22 100644 --- a/client_interface_impl.cpp +++ b/client_interface_impl.cpp @@ -242,6 +242,16 @@ const std::array<uint8_t, ETH_ALEN>& ClientInterfaceImpl::GetMacAddress() { return interface_mac_addr_; } +void ClientInterfaceImpl::UpdateBandInfo() { + LOG(INFO) << "UpdateBandInfo"; + if (!netlink_utils_->GetWiphyInfo(wiphy_index_, + &band_info_, + &scan_capabilities_, + &wiphy_features_)) { + LOG(ERROR) << "Failed to get wiphy info from kernel"; + } +} + const BandInfo& ClientInterfaceImpl::GetBandInfo() const { return band_info_; } |