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

Hotfix/ppm 118 wireless backhaul sta mac #1586

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rmelotte
Copy link
Collaborator

@rmelotte rmelotte commented Aug 6, 2020

The MAP-4.2.2_BH24G test used to pass (if the DUT was on the same channel than the certified device - see https://jira.prplfoundation.org/browse/PPM-327) but no longer will (see below).
Due to recent changes we did to the agent database, by the time the UCC asks for the macaddr the backhaul has already disconnected (because of https://jira.prplfoundation.org/browse/PPM-330) and we can no longer reply to it.

It means the MAP-4.2.2_BH24G test will fail on the following step until https://jira.prplfoundation.org/browse/PPM-330 is fixed:

dev_get_parameter,program,map,ruid,0xac9a96f723a5,parameter,macaddr

Fixes https://jira.prplfoundation.org/browse/PPM-323

When we get dev_get_param with the "macaddr" parameter and no SSID, we
have to reply with the MAC address of the backhaul sta, and not the
MAC address of the radio.

From the CAPI specification:

When SSID is not specified for the parameter "macaddr", it implies
that device should return backhaul STA's MAC address.

db:

  - Add a new function: get_bsta_mac_by_ruid(). Its sole purpose it to
  get the backhaul sta MAC address based on the ruid.

agent_ucc_listener:

  - When the UCC requests a "macaddr" with no SSID, use
  get_bsta_mac_by_ruid() to find and return the backhaul sta MAC.

MAP-4.2.2_BH24G:axepoint

Signed-off-by: Raphaël Mélotte <[email protected]>
sniffer: use the tshark version from the environment.

See commit 689a5c7ebd2d7e80f869d571bdde057927d90abd to have all the
details about the issue.

In a nutshell: the tshark version bundled in the certification
repository has issues parsing some packets. Since we need to switch a
new major version, it's easier to just rely on the version present on
the environment instead of updating the bundled one.

MAP-4.2.2_BH24G:axepoint

NOTE: this commit hash needs to be updated again after the relevant MR
have been merged, so no SOB for now.
@rmelotte rmelotte added the certification Tasks/bugs involving the certification testbed label Aug 6, 2020
@rmelotte rmelotte self-assigned this Aug 6, 2020
Copy link
Collaborator

@itayx itayx left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Collaborator

@mariomaz mariomaz left a comment

Choose a reason for hiding this comment

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

Only a recurrent concern, but not for this PR, so approving

value = ruid_str;
// No ssid was given, we need to return the backhaul sta mac.
if (!db->get_bsta_mac_by_ruid(ruid, mac_value)) {
LOG(ERROR) << " failed to find the backhaul sta MAC address for ruid '" << ruid_str;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
LOG(ERROR) << " failed to find the backhaul sta MAC address for ruid '" << ruid_str;
LOG(ERROR) << "Failed to find the backhaul sta MAC address for ruid " << ruid_str;

// No ssid was given, we need to return the backhaul sta mac.
if (!db->get_bsta_mac_by_ruid(ruid, mac_value)) {
LOG(ERROR) << " failed to find the backhaul sta MAC address for ruid '" << ruid_str;
value = "backhaul sta MAC not found for ruid '" + ruid_str + "'";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe not for this PR, but using output parameter for both the requested MAC address on success and for an error message on failure is a bad practice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
certification Tasks/bugs involving the certification testbed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants