summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-10-21 15:06:15 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-11-02 09:50:17 +0000
commit115e7debb2f04dbcc9887990872c04d46089184a (patch)
treeba6ed5e3b330ccb8c37c93c43a98d42eac5b9020
parent039ac40aab030ea9bfcc1821e42f3f81f290e458 (diff)
helpers-mbim: detect 5G capabilities using Microsoft extensions
-rw-r--r--src/mm-modem-helpers-mbim.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mm-modem-helpers-mbim.c b/src/mm-modem-helpers-mbim.c
index 25e87e0e..24ea7bf9 100644
--- a/src/mm-modem-helpers-mbim.c
+++ b/src/mm-modem-helpers-mbim.c
@@ -42,12 +42,16 @@ mm_modem_capability_from_mbim_device_caps (MbimCellularClass caps_cellular_clas
if (caps_data_class & MBIM_DATA_CLASS_LTE)
mask |= MM_MODEM_CAPABILITY_LTE;
+ /* e.g. Gosuncn GM800 reports MBIM custom data class "5G/TDS" */
if ((caps_data_class & MBIM_DATA_CLASS_CUSTOM) && caps_custom_data_class) {
- /* e.g. Gosuncn GM800 reports MBIM custom data class "5G/TDS" */
if (strstr (caps_custom_data_class, "5G"))
mask |= MM_MODEM_CAPABILITY_5GNR;
}
+ /* Support for devices with Microsoft extensions */
+ if (caps_data_class & (MBIM_DATA_CLASS_5G_NSA | MBIM_DATA_CLASS_5G_SA))
+ mask |= MM_MODEM_CAPABILITY_5GNR;
+
return mask;
}