[PATCH] command-nas: fix cmd_nas_get_cell_location_info_cb
Jan-Niklas Burfeind
git at aiyionpri.me
Sun Mar 6 09:25:57 PST 2022
Correct order of rsrp and rsrq parameters for print_lte_info.
Signed-off-by: Jan-Niklas Burfeind <git at aiyionpri.me>
---
This was introduced in
d647f8d89f68 uqmi: add more diagnostics commands
Currently --get-cell-location-info prints the rsrq and rsrp values
swapped.
I ignored the checkpatch.pl warning for line lengths, as the long line is
already in the codebase and only got swapped in their order.
commands-nas.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commands-nas.c b/commands-nas.c
index 01ca3b8..ff7a6c3 100644
--- a/commands-nas.c
+++ b/commands-nas.c
@@ -772,8 +772,8 @@ cmd_nas_get_cell_location_info_cb(struct qmi_dev *qmi, struct qmi_request *req,
for (i = 0; i < res.data.intrafrequency_lte_info_v2.cell_n; i++) {
cell = blobmsg_open_table(&status, NULL);
print_lte_info(res.data.intrafrequency_lte_info_v2.cell[i].physical_cell_id,
- res.data.intrafrequency_lte_info_v2.cell[i].rsrq,
res.data.intrafrequency_lte_info_v2.cell[i].rsrp,
+ res.data.intrafrequency_lte_info_v2.cell[i].rsrq,
res.data.intrafrequency_lte_info_v2.cell[i].rssi);
if (res.data.intrafrequency_lte_info_v2.ue_in_idle)
blobmsg_add_u32(&status, "cell_selection_rx_level",
@@ -798,8 +798,8 @@ cmd_nas_get_cell_location_info_cb(struct qmi_dev *qmi, struct qmi_request *req,
for (j = 0; j < res.data.interfrequency_lte_info.frequency[i].cell_n; j++) {
cell = blobmsg_open_table(&status, NULL);
print_lte_info(res.data.interfrequency_lte_info.frequency[i].cell[j].physical_cell_id,
- res.data.interfrequency_lte_info.frequency[i].cell[j].rsrq,
res.data.interfrequency_lte_info.frequency[i].cell[j].rsrp,
+ res.data.interfrequency_lte_info.frequency[i].cell[j].rsrq,
res.data.interfrequency_lte_info.frequency[i].cell[j].rssi);
if (res.data.interfrequency_lte_info.ue_in_idle)
blobmsg_add_u32(&status, "cell_selection_rx_level",
--
2.35.1
More information about the openwrt-devel
mailing list