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

[PPM-277] Replace VS message ACTION_CONTROL_BACKHAUL_ROAM_REQUEST by standard one #1578

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VladyslavTupikin
Copy link
Collaborator

Need to replace the vendor-specific message ACTION_CONTROL_BACKHAUL_ROAM_REQUEST by standard one BACKHAUL_STEERING_REQUEST_MESSAGE.

Modify method steer_sta() replace the creation of the vendor specific on standard one with standard tlv, fill up tlv and send message to the agent.

https://jira.prplfoundation.org/browse/PPM-277

Need to replace vendor-specific message
ACTION_CONTROL_BACKHAUL_ROAM_REQUEST by
standard one BACKHAUL_STEERING_REQUEST_MESSAGE.

Modify method steer_sta() replace
creation of vendor specific on standard one
with standard tlv, fill up tlv and send
message to the agent.

https://jira.prplfoundation.org/browse/PPM-277

Signed-off-by: Vladyslav Tupikin <[email protected]>
@VladyslavTupikin VladyslavTupikin changed the title controller: master: Replace VS message by standard one [PPM-277] Replace VS message ACTION_CONTROL_BACKHAUL_ROAM_REQUEST by standard one Jul 30, 2020

bh_steer_req_tlv->backhaul_station_mac() = tlvf::mac_from_string(sta_mac);
bh_steer_req_tlv->target_bssid() = tlvf::mac_from_string(target_bssid);
bh_steer_req_tlv->target_channel_number() = database.get_node_channel(target_bssid);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't really like that the result of get_node_channel is not checked here, but since it is not checked in the other places of the codebase, it is probably fine.

Copy link
Collaborator

@RanRegev RanRegev left a comment

Choose a reason for hiding this comment

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

nitpicks.

@@ -146,14 +147,25 @@ void client_steering_task::steer_sta()
TASK_LOG(DEBUG) << "SLAVE " << sta_mac
<< " has an active socket, sending BACKHAUL_ROAM_REQUEST";
auto roam_request =
message_com::create_vs_message<beerocks_message::cACTION_CONTROL_BACKHAUL_ROAM_REQUEST>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You added the #include to BACKHAUL_STEERING_REQUEST_MESSAGE.
Question: is it possible to remove the #include for cACTION_CONTROL_BACKHAUL_ROAM_REQUEST
(or is it part of a large .h file with many messages)

Copy link
Collaborator

Choose a reason for hiding this comment

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

The message is on beerocks_message_control.h which is not included in this file specifically. Probably included from another file.

@@ -146,14 +147,25 @@ void client_steering_task::steer_sta()
TASK_LOG(DEBUG) << "SLAVE " << sta_mac
<< " has an active socket, sending BACKHAUL_ROAM_REQUEST";
auto roam_request =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we are in a transition from vs to 1905 I think it would be clearer in the code to see the difference in the variables' names. for example -

Suggested change
auto roam_request =
auto roam_request_1905 =

Copy link
Collaborator

Choose a reason for hiding this comment

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

Totaly redundant change suggestion. The only use for it is to check that we did not receive nullptr. It could be called as well cmdu_header.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Totaly redundant change suggestion

This is a strong statement.
Please read carefully the justification for the change I asked.

@@ -146,14 +147,25 @@ void client_steering_task::steer_sta()
TASK_LOG(DEBUG) << "SLAVE " << sta_mac
<< " has an active socket, sending BACKHAUL_ROAM_REQUEST";
auto roam_request =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Totaly redundant change suggestion. The only use for it is to check that we did not receive nullptr. It could be called as well cmdu_header.

@@ -146,14 +147,25 @@ void client_steering_task::steer_sta()
TASK_LOG(DEBUG) << "SLAVE " << sta_mac
<< " has an active socket, sending BACKHAUL_ROAM_REQUEST";
auto roam_request =
message_com::create_vs_message<beerocks_message::cACTION_CONTROL_BACKHAUL_ROAM_REQUEST>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

The message is on beerocks_message_control.h which is not included in this file specifically. Probably included from another file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants