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

Commit

Permalink
agent: ap_manager: adjustments due to bwl interface changes
Browse files Browse the repository at this point in the history
Minor code adjustments due to changes in the  BWL interfaces.

Signed-off-by: Vitaly Bukhovsky <[email protected]>
  • Loading branch information
vitalybu authored and morantr committed Nov 10, 2019
1 parent 40c40e6 commit da8b476
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion agent/src/beerocks/slave/ap_manager_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,13 @@ void ap_manager_thread::ap_manager_config(ap_manager_conf_t &conf)

using namespace std::placeholders; // for `_1`

bwl::hal_conf_t hal_conf;
hal_conf.ap_acs_enabled = acs_enabled;
hal_conf.ap_passive_mode_enabled = conf.passive_mode_enabled;

// Create a new AP HAL instance
ap_wlan_hal = std::shared_ptr<bwl::ap_wlan_hal>(
ap_wlan_hal_create(conf.hostap_iface, acs_enabled,
ap_wlan_hal_create(conf.hostap_iface, hal_conf,
std::bind(&ap_manager_thread::hal_event_handler, this, _1)),
[](bwl::ap_wlan_hal *obj) {
if (obj)
Expand Down
1 change: 1 addition & 0 deletions agent/src/beerocks/slave/ap_manager_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ap_manager_thread : public beerocks::socket_thread {
struct ap_manager_conf_t {
std::string hostap_iface;
beerocks::eIfaceType hostap_iface_type;
bool passive_mode_enabled;
int channel;
bool iface_filter_low;
sMacAddr *backhaul_vaps_bssid; // array
Expand Down
4 changes: 2 additions & 2 deletions agent/src/beerocks/slave/ap_wlan_hal_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static ap_wlan_hal_destroy_t s_obj_destroy = nullptr;

extern "C" {

bwl::ap_wlan_hal *ap_wlan_hal_create(std::string iface_name, bool acs_enabled,
bwl::ap_wlan_hal *ap_wlan_hal_create(std::string iface_name, bwl::hal_conf_t hal_conf,
bwl::base_wlan_hal::hal_event_cb_t cb)
{
// Load the shared library on demand
Expand Down Expand Up @@ -76,7 +76,7 @@ bwl::ap_wlan_hal *ap_wlan_hal_create(std::string iface_name, bool acs_enabled,
}

// Create and return a new instance of the HAL class
return s_obj_create(iface_name, acs_enabled, cb);
return s_obj_create(iface_name, hal_conf, cb);
}

void ap_wlan_hal_destroy(bwl::ap_wlan_hal *obj)
Expand Down

0 comments on commit da8b476

Please sign in to comment.