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

Commit

Permalink
agent: backhaul_manager: get_media_type(): return true on success
Browse files Browse the repository at this point in the history
The get_media_type() function sets result to false by default. In the
IEEE_802_11, it wasn't set to true in the success case. This leads to
bug #1097.

Set result to true before breaking out of the loop.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
  • Loading branch information
arnout committed Apr 7, 2020
1 parent 09d7f6d commit 58b1572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@ bool backhaul_manager::get_media_type(const std::string &interface_name,
if ((std::get<0>(tuple) == radio_info.frequency_band) &&
(std::get<1>(tuple) == radio_info.max_bandwidth)) {
media_type = std::get<2>(tuple);

result = true;
break;
}
}
Expand Down

0 comments on commit 58b1572

Please sign in to comment.