shared-qmi,modem-helpers-qmi: Add support for NR5G band capability
Implement support for the NR5G band list to get supported NR5G
band capabilities.
localhost ~ # qmicli -d qrtr://0 --dms-get-band-capabilities
[qrtr://0] Device band capabilities retrieved:
Bands: 'bc-0-a-system, bc-0-b-system, bc-1-all-blocks, gsm-dcs-1800, gsm-900-extended, bc-10, gsm-850, gsm-pcs-1900, wcdma-2100, wcdma-pcs-1900, wcdma-1700-us, wcdma-850-us, wcdma-800, wcdma-900, wcdma-850-japan'
LTE bands: '1, 2, 3, 4, 5, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20, 21, 25, 26, 28, 29, 30, 32, 34, 38, 39, 40, 41, 42, 43'
LTE bands (extended): '1, 2, 3, 4, 5, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20, 21, 25, 26, 28, 29, 30, 32, 34, 38, 39, 40, 41, 42, 43, 46, 48, 66, 68, 71'
NR5G bands: '1, 2, 3, 5, 7, 8, 12, 13, 14, 18, 20, 25, 26, 28, 29, 30, 38, 40, 41, 48, 66, 70, 71, 77, 78, 79'
This commit is contained in:
+6
-1
@@ -1845,6 +1845,7 @@ dms_get_band_capabilities_ready (QmiClientDms *client,
|
||||
QmiDmsBandCapability qmi_bands = 0;
|
||||
QmiDmsLteBandCapability qmi_lte_bands = 0;
|
||||
GArray *extended_qmi_lte_bands = NULL;
|
||||
GArray *qmi_nr5g_bands = NULL;
|
||||
|
||||
self = g_task_get_source_object (task);
|
||||
priv = get_private (self);
|
||||
@@ -1867,8 +1868,12 @@ dms_get_band_capabilities_ready (QmiClientDms *client,
|
||||
output,
|
||||
&extended_qmi_lte_bands,
|
||||
NULL);
|
||||
qmi_message_dms_get_band_capabilities_output_get_nr5g_band_capability (
|
||||
output,
|
||||
&qmi_nr5g_bands,
|
||||
NULL);
|
||||
|
||||
mm_bands = mm_modem_bands_from_qmi_band_capabilities (qmi_bands, qmi_lte_bands, extended_qmi_lte_bands, self);
|
||||
mm_bands = mm_modem_bands_from_qmi_band_capabilities (qmi_bands, qmi_lte_bands, extended_qmi_lte_bands, qmi_nr5g_bands, self);
|
||||
if (mm_bands->len == 0) {
|
||||
g_clear_pointer (&mm_bands, g_array_unref);
|
||||
error = g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
|
||||
|
||||
Reference in New Issue
Block a user