[PATCH v2 1/2] command-nas: fix cmd_nas_get_cell_location_info_cb

Oskari Lemmelä oskari at lemmela.net
Mon Mar 7 09:10:17 PST 2022


Hi Jan-Niklas,

On 7.3.2022 14.14, Jan-Niklas Burfeind wrote:
> Correct order of rsrp and rsrq parameters for print_lte_info.

Good catch. I didn’t check those similar variable names carefully enough.
I think my typo is in the print_lte_info parameters. This could also be
corrected
by swapping the order of the rsrp and rsrq variables in the function
definition.
Then the print order is also the same as the order of the function
parameters.

Thanks,
Oskari
>
> Signed-off-by: Jan-Niklas Burfeind <git at aiyionpri.me>
> ---
>  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",




More information about the openwrt-devel mailing list