uqmi nas: fix incorrect parameter order
authorDavid Bauer <[email protected]>
Sun, 20 Apr 2025 01:27:39 +0000 (03:27 +0200)
committerDavid Bauer <[email protected]>
Sun, 20 Apr 2025 01:27:39 +0000 (03:27 +0200)
print_lte_info has been called with incorrect argument order in all places.

Fix the method signature so RSRP and RSRQ are correctly represented in
the output.

Signed-off-by: David Bauer <[email protected]>
uqmi/commands-nas.c

index 04804f5b723c1d04bfbc1d95789cbc02231bae00..f7441550b7473a70c403049dc037d5235bff1da8 100644 (file)
@@ -801,7 +801,7 @@ cmd_nas_get_tx_rx_info_prepare(struct qmi_dev *qmi, struct qmi_request *req, str
 }
 
 static void
-print_lte_info(int32_t cell_id, int16_t rsrp, int16_t rsrq, int16_t rssi)
+print_lte_info(int32_t cell_id, int16_t rsrq, int16_t rsrp, int16_t rssi)
 {
        blobmsg_add_u32(&status, "physical_cell_id", cell_id);
        blobmsg_add_double(&status, "rsrq", ((double)rsrq)/10);