[PATCH] ModemManager: Don't send AT+CFUN to bluetooth modems
- From: Valmantas Palikša <walmis gmail com>
- To: networkmanager-list gnome org
- Subject: [PATCH] ModemManager: Don't send AT+CFUN to bluetooth modems
- Date: Fri, 09 Oct 2009 13:42:13 +0300
I think this will cause less problems with bluetooth DUN.
diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c
index 3becf7f..85b3281 100644
--- a/src/mm-generic-gsm.c
+++ b/src/mm-generic-gsm.c
@@ -1925,10 +1925,16 @@ get_property (GObject *object, guint prop_id,
g_value_set_boolean (value, priv->valid);
break;
case MM_GENERIC_GSM_PROP_POWER_UP_CMD:
- g_value_set_string (value, "+CFUN=1");
+ if(strcmp(priv->driver, "bluetooth") == 0)
+ g_value_set_string (value, "");
+ else
+ g_value_set_string (value, "+CFUN=1");
break;
case MM_GENERIC_GSM_PROP_POWER_DOWN_CMD:
- g_value_set_string (value, "+CFUN=0");
+ if(strcmp(priv->driver, "bluetooth") == 0)
+ g_value_set_string (value, "");
+ else
+ g_value_set_string (value, "+CFUN=0");
break;
case MM_GENERIC_GSM_PROP_INIT_CMD:
g_value_set_string (value, "Z E0 V1 X4 &C1 +CMEE=1");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]