From d298885faa72398368a67a7738a6208dae0c6f0a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 8 Mar 2010 14:50:07 -0800 Subject: 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. --- src/mm-modem-gsm-card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); } -- cgit v1.2.3-70-g09d2