Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
ap_wlan_hal_dwpal: override refresh_radio_info
Browse files Browse the repository at this point in the history
The read_supported_channels functions, which fills the supported_channels vector in m_radio_info,
is never called, it should be called as part of the refresh_radio_info.

In ap_wlan_hal_dwpal override refresh_radio_info, and add a call to read_supported_channels.

Signed-off-by: Itay Elenzweig <[email protected]>
  • Loading branch information
itayx committed Apr 12, 2020
1 parent 2e73e20 commit c91a301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/beerocks/bwl/dwpal/ap_wlan_hal_dwpal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,12 @@ bool ap_wlan_hal_dwpal::restricted_channels_get(char *channel_list)
return true;
}

bool ap_wlan_hal_dwpal::refresh_radio_info()
{
auto ret = base_wlan_hal_dwpal::refresh_radio_info();
return ret && read_supported_channels();
}

bool ap_wlan_hal_dwpal::read_acs_report()
{
LOG(TRACE) << __func__ << " for interface: " << get_radio_info().iface_name;
Expand Down
1 change: 1 addition & 0 deletions common/beerocks/bwl/dwpal/ap_wlan_hal_dwpal.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ap_wlan_hal_dwpal : public base_wlan_hal_dwpal, public ap_wlan_hal {
virtual bool failsafe_channel_get(int &chan, int &bw) override;
virtual bool restricted_channels_set(char *channel_list) override;
virtual bool restricted_channels_get(char *channel_list) override;
virtual bool refresh_radio_info() override;
virtual bool read_acs_report() override;
virtual bool read_supported_channels() override;
virtual bool update_preference_channels_from_supoorted_channels() override;
Expand Down

0 comments on commit c91a301

Please sign in to comment.