Skip to content

Commit

Permalink
samples: dect_phy: dect_shell: beacon_scan: fix: add missing option
Browse files Browse the repository at this point in the history
Add missing -D option to delete neigbor list before starting a scan.

Signed-off-by: Jani Hirsimäki <[email protected]>
  • Loading branch information
jhirsi authored and jukkar committed Dec 5, 2024
1 parent 21fed07 commit 97093b5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ int dect_phy_mac_ctrl_beacon_scan_start(struct dect_phy_mac_beacon_scan_params *
.ch_acc_use_all_channels = false,
};

if (params->clear_nbr_cache_before_scan) {
dect_phy_mac_nbr_info_clear_all();
}

/* Set filter. Broadcast Beacons (with type 1) are always passing filter. */
rx_params.filter.is_short_network_id_used = true;
rx_params.filter.short_network_id = (uint8_t)(current_settings->common.network_id & 0xFF);
Expand Down

0 comments on commit 97093b5

Please sign in to comment.