gsm: add access technology support for HSPA+
This commit is contained in:
@@ -108,6 +108,8 @@ mm_modem_gsm_network_act_to_old_mode (MMModemGsmAccessTech act)
|
||||
return MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSUPA;
|
||||
else if (act & MM_MODEM_GSM_ACCESS_TECH_HSPA)
|
||||
return MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSPA;
|
||||
else if (act & MM_MODEM_GSM_ACCESS_TECH_HSPA_PLUS)
|
||||
return MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_HSPA;
|
||||
|
||||
return MM_MODEM_GSM_NETWORK_DEPRECATED_MODE_ANY;
|
||||
}
|
||||
|
||||
+2
-1
@@ -54,8 +54,9 @@ typedef enum {
|
||||
MM_MODEM_GSM_ACCESS_TECH_HSDPA = 6, /* UTRAN w/HSDPA */
|
||||
MM_MODEM_GSM_ACCESS_TECH_HSUPA = 7, /* UTRAN w/HSUPA */
|
||||
MM_MODEM_GSM_ACCESS_TECH_HSPA = 8, /* UTRAN w/HSDPA and HSUPA */
|
||||
MM_MODEM_GSM_ACCESS_TECH_HSPA_PLUS = 9, /* UTRAN w/HSPA+ */
|
||||
|
||||
MM_MODEM_GSM_ACCESS_TECH_LAST = MM_MODEM_GSM_ACCESS_TECH_HSPA
|
||||
MM_MODEM_GSM_ACCESS_TECH_LAST = MM_MODEM_GSM_ACCESS_TECH_HSPA_PLUS
|
||||
} MMModemGsmAccessTech;
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -785,7 +785,9 @@ mm_gsm_string_to_access_tech (const char *string)
|
||||
/* Better technologies are listed first since modems sometimes say
|
||||
* stuff like "GPRS/EDGE" and that should be handled as EDGE.
|
||||
*/
|
||||
if (strcasestr (string, "HSPA"))
|
||||
if (strcasestr (string, "HSPA+"))
|
||||
return MM_MODEM_GSM_ACCESS_TECH_HSPA_PLUS;
|
||||
else if (strcasestr (string, "HSPA"))
|
||||
return MM_MODEM_GSM_ACCESS_TECH_HSPA;
|
||||
else if (strcasestr (string, "HSDPA/HSUPA"))
|
||||
return MM_MODEM_GSM_ACCESS_TECH_HSPA;
|
||||
|
||||
Reference in New Issue
Block a user