Skip to content

Commit 97093b5

Browse files
jhirsijukkar
authored andcommitted
samples: dect_phy: dect_shell: beacon_scan: fix: add missing option
Add missing -D option to delete neigbor list before starting a scan. Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent 21fed07 commit 97093b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/dect/dect_phy/dect_shell/src/dect/mac/dect_phy_mac_ctrl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ int dect_phy_mac_ctrl_beacon_scan_start(struct dect_phy_mac_beacon_scan_params *
217217
.ch_acc_use_all_channels = false,
218218
};
219219

220+
if (params->clear_nbr_cache_before_scan) {
221+
dect_phy_mac_nbr_info_clear_all();
222+
}
223+
220224
/* Set filter. Broadcast Beacons (with type 1) are always passing filter. */
221225
rx_params.filter.is_short_network_id_used = true;
222226
rx_params.filter.short_network_id = (uint8_t)(current_settings->common.network_id & 0xFF);

0 commit comments

Comments
 (0)