aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-03-08 14:50:07 -0800
committerDan Williams <dcbw@redhat.com>2010-03-08 14:50:07 -0800
commitd298885faa72398368a67a7738a6208dae0c6f0a (patch)
tree7b2cff35784ba5aa99afdc6de7d348676c5ed381
parente2c487472e52bc14acd04e93a6d5b7d54a2bcfa5 (diff)
gsm: fix GObject property maximums for SupportedModes and SupportedBands
Since the values they carry are bitfields, using the highest value as the maximum isn't the right thing to do.
-rw-r--r--src/mm-modem-gsm-card.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-modem-gsm-card.c b/src/mm-modem-gsm-card.c
index f4a5138f..432a4a3f 100644
--- a/src/mm-modem-gsm-card.c
+++ b/src/mm-modem-gsm-card.c
@@ -503,7 +503,7 @@ mm_modem_gsm_card_init (gpointer g_iface)
"Supported Modes",
"Supported frequency bands of the card",
MM_MODEM_GSM_BAND_UNKNOWN,
- MM_MODEM_GSM_BAND_LAST,
+ G_MAXUINT32,
MM_MODEM_GSM_BAND_UNKNOWN,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@@ -513,7 +513,7 @@ mm_modem_gsm_card_init (gpointer g_iface)
"Supported Modes",
"Supported modes of the card (ex 2G preferred, 3G preferred, 2G only, etc",
MM_MODEM_GSM_MODE_UNKNOWN,
- MM_MODEM_GSM_MODE_LAST,
+ G_MAXUINT32,
MM_MODEM_GSM_MODE_UNKNOWN,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}