api,header: don't use '1G' for modem modes, use 'CS' instead.

1G is not the proper way to define GSM, which is already 2G. Use CS instead,
which will include all circuit-switched broadband modem technologies.
This commit is contained in:
Aleksander Morgado
2011-12-30 15:35:01 +01:00
parent a71e27af96
commit cc55734a01
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ typedef enum { /*< underscore_name=mm_modem_access_technology >*/
/** /**
* MMModemMode: * MMModemMode:
* @MM_MODEM_MODE_NONE: None. * @MM_MODEM_MODE_NONE: None.
* @MM_MODEM_MODE_1G: CSD, GSM. * @MM_MODEM_MODE_CS: CSD, GSM, and other circuit-switched technologies.
* @MM_MODEM_MODE_2G: GPRS, EDGE. * @MM_MODEM_MODE_2G: GPRS, EDGE.
* @MM_MODEM_MODE_3G: UMTS, HSxPA. * @MM_MODEM_MODE_3G: UMTS, HSxPA.
* @MM_MODEM_MODE_4G: LTE. * @MM_MODEM_MODE_4G: LTE.

View File

@@ -118,7 +118,7 @@ mm_common_get_modes_string (MMModemMode mode)
MMModemMode it; MMModemMode it;
gboolean first = TRUE; gboolean first = TRUE;
for (it = MM_MODEM_MODE_1G; /* first */ for (it = MM_MODEM_MODE_CS; /* first */
it <= MM_MODEM_MODE_4G; /* last */ it <= MM_MODEM_MODE_4G; /* last */
it = it << 1) { it = it << 1) {
if (mode & it) { if (mode & it) {