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

Commit

Permalink
agent: Save controller bridge mac on controller socket
Browse files Browse the repository at this point in the history
Preparative commit.
Save controller bridge mac on controller socket so it could be used
on send_cmdu_to_destination function on agent_ucc_listener.
Also, change the update of master_socket (aka socket to the
controller) to be in a single place.

Signed-off-by: Moran Shoeg <[email protected]>
  • Loading branch information
morantr committed Oct 31, 2019
1 parent a4b8e0c commit 461e141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent/src/beerocks/slave/son_slave_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3568,10 +3568,12 @@ bool slave_thread::slave_fsm(bool &call_slave_select)
case STATE_BACKHAUL_MANAGER_CONNECTED: {
LOG(TRACE) << "MASTER_CONNECTED";

master_socket = backhaul_manager_socket;
master_socket->setPeerMac(backhaul_params.controller_bridge_mac);

if (!wlan_settings.band_enabled) {

iface_status_operational_state = true;
master_socket = backhaul_manager_socket;
iface_status_ap = eRadioStatus::OFF;
LOG(TRACE) << "goto STATE_OPERATIONAL";
slave_state = STATE_OPERATIONAL;
Expand Down Expand Up @@ -3659,8 +3661,6 @@ bool slave_thread::slave_fsm(bool &call_slave_select)
message_com::send_cmdu(platform_manager_socket, cmdu_tx);
}

master_socket = backhaul_manager_socket;

LOG(TRACE) << "goto STATE_JOIN_MASTER";
slave_state = STATE_JOIN_MASTER;

Expand Down

0 comments on commit 461e141

Please sign in to comment.