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

PPM-338 Move UCI configuration to Agent DB #1590

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1ed9087
agent: Move front radio configuration to AgentDB
orenvor Aug 4, 2020
198dd29
agent: Move back radio configuration to AgentDB
orenvor Aug 4, 2020
b940541
agent: Move mem_only_psk configuration to AgentDB
orenvor Aug 5, 2020
fa19acb
agent: Move backhaul_max_vaps configuration to AgentDB
orenvor Aug 6, 2020
bd04912
agent: Move backhaul_network_enabled configuration to AgentDB
orenvor Aug 6, 2020
6d15f7e
agent: Move backhaul_preferred_radio_band configuration to AgentDB
orenvor Aug 6, 2020
6af1e0b
agent: Move operating_mode configuration to AgentDB
orenvor Aug 6, 2020
e59af3a
agent: Move management_mode configuration to AgentDB
orenvor Aug 6, 2020
84178c6
agent: Move certification_mode configuration to AgentDB
orenvor Aug 6, 2020
8d7e394
agent: Move stop_on_failure_attempts configuration to AgentDB
orenvor Aug 6, 2020
b13191f
agent: Move client_band_steering_enabled configuration to AgentDB
orenvor Aug 6, 2020
d6d17b4
agent: Move client_optimal_path_roaming_enabled configuration to AgentDB
orenvor Aug 6, 2020
f166c0a
agent: Move dfs_reentry_enabled configuration to AgentDB
orenvor Aug 6, 2020
ced7c3d
agent: Move client_optimal_path_prefer_signal_strength to AgentDB
orenvor Aug 6, 2020
1c890a3
agent: Move client_11k_roaming_enabled configuration to AgentDB
orenvor Aug 6, 2020
d672a81
agent: Move load_balancing_enabled configuration to AgentDB
orenvor Aug 6, 2020
9565fce
agent: Move service_fairness_enabled configuration to AgentDB
orenvor Aug 6, 2020
b9541a9
agent: Move rdkb_extensions_enabled configuration to AgentDB
orenvor Aug 6, 2020
5477bb5
agent: remove unused onboarding configuration
orenvor Aug 10, 2020
e3efdfb
tlvf: beerocks_message::sPlatformSettings remove unused settings
orenvor Aug 9, 2020
c666a11
agent: Remove "platform_settings" local variable from son_slave_thread
orenvor Aug 11, 2020
2831a7d
agent: Move wlan_settings configuration to AgentDB
orenvor Aug 11, 2020
cb51ce9
fixup! agent: Move wlan_settings configuration to AgentDB
orenvor Aug 12, 2020
9c450e9
tlvf: PLATFORM_SON_SLAVE_REGISTER_RESPONSE remove unused fields
orenvor Aug 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agent/src/beerocks/slave/agent_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class AgentDB {
char ssid[beerocks::message::WIFI_SSID_MAX_LENGTH];
char pass[beerocks::message::WIFI_PASS_MAX_LENGTH];
char security_type[beerocks::message::WIFI_SECURITY_TYPE_MAX_LENGTH];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add doxygen documentation

uint8_t mem_only_psk;
} back_radio;

bool local_gw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ static bool fill_platform_settings(
return false;
}

msg->platform_settings().mem_only_psk = mem_only_psk;
db->device_conf.back_radio.mem_only_psk = mem_only_psk;

LOG(DEBUG) << "Back Credentials:"
<< " ssid=" << db->device_conf.back_radio.ssid
<< " sec=" << db->device_conf.back_radio.security_type
<< " mem_only_psk=" << int(msg->platform_settings().mem_only_psk) << " pass=***";
<< " mem_only_psk=" << int(db->device_conf.back_radio.mem_only_psk) << " pass=***";
orenvor marked this conversation as resolved.
Show resolved Hide resolved

bpl::BPL_WLAN_PARAMS params;
if (bpl::cfg_get_wifi_params(iface_name.c_str(), &params) < 0) {
Expand Down
2 changes: 1 addition & 1 deletion agent/src/beerocks/slave/son_slave_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3112,7 +3112,7 @@ bool slave_thread::slave_fsm(bool &call_slave_select)
message::WIFI_PASS_MAX_LENGTH);
bh_enable->security_type() = static_cast<uint32_t>(
platform_to_bwl_security(db->device_conf.back_radio.security_type));
bh_enable->mem_only_psk() = platform_settings.mem_only_psk;
bh_enable->mem_only_psk() = db->device_conf.back_radio.mem_only_psk;
bh_enable->backhaul_preferred_radio_band() =
platform_settings.backhaul_preferred_radio_band;

Expand Down