Skip to content

Commit 0c93bee

Browse files
jhirsirlubos
authored andcommitted
samples: dect_phy: dect_shell: ping/perf/rf_tool: B4 support
Adding band 4 support also for ping, perf and rf_tool commands that are having their own mdm phy api initialization. Jira: MOSH-622 Signed-off-by: Jani Hirsimäki <[email protected]>
1 parent 18407e9 commit 0c93bee

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

samples/dect/dect_phy/dect_shell/src/dect/perf/dect_phy_perf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,9 +1860,12 @@ static void dect_phy_perf_phy_init(struct nrf_modem_dect_phy_init_params *init_p
18601860
int dect_phy_perf_cmd_handle(struct dect_phy_perf_params *params)
18611861
{
18621862
int ret;
1863+
struct dect_phy_settings *current_settings = dect_common_settings_ref_get();
18631864
struct nrf_modem_dect_phy_init_params perf_phy_init_params = {
18641865
.harq_rx_expiry_time_us = params->mdm_init_harq_expiry_time_us,
18651866
.harq_rx_process_count = params->mdm_init_harq_process_count,
1867+
.reserved = 0,
1868+
.band4_support = ((current_settings->common.band_nbr == 4) ? 1 : 0),
18661869
};
18671870

18681871
if (perf_data.perf_ongoing) {

samples/dect/dect_phy/dect_shell/src/dect/ping/dect_phy_ping.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,6 +2062,8 @@ int dect_phy_ping_cmd_handle(struct dect_phy_ping_params *params)
20622062
struct nrf_modem_dect_phy_init_params ping_phy_init_params = {
20632063
.harq_rx_expiry_time_us = current_settings->harq.mdm_init_harq_expiry_time_us,
20642064
.harq_rx_process_count = current_settings->harq.mdm_init_harq_process_count,
2065+
.reserved = 0,
2066+
.band4_support = ((current_settings->common.band_nbr == 4) ? 1 : 0),
20652067
};
20662068
int ret;
20672069

samples/dect/dect_phy/dect_shell/src/dect/rf_tool/dect_phy_rf_tool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,8 @@ static void dect_phy_rf_tool_phy_init(void)
881881
struct nrf_modem_dect_phy_init_params rf_tool_phy_init_params = {
882882
.harq_rx_expiry_time_us = current_settings->harq.mdm_init_harq_expiry_time_us,
883883
.harq_rx_process_count = current_settings->harq.mdm_init_harq_process_count,
884+
.reserved = 0,
885+
.band4_support = ((current_settings->common.band_nbr == 4) ? 1 : 0),
884886
};
885887
int ret = nrf_modem_dect_phy_callback_set(&rf_tool_phy_api_config);
886888

0 commit comments

Comments
 (0)