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:
@@ -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.
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user