diff options
author | Eric Shienbrood <ers@google.com> | 2011-06-09 16:37:20 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-06-09 16:37:20 -0500 |
commit | 85aae2d8f1fdb43709f1e5e7eef3b8387a75ba29 (patch) | |
tree | 42787374a6761e0372e302d2619176efd8fd4216 | |
parent | 63b29b79f9adf1fa4ff806671c6f1dad8f22de9e (diff) |
samsung: disable should use CFUN=4
CFUN=4 disables the radios but still allows useful operations
like getting PIN lock status. So use that instead.
-rwxr-xr-x | plugins/mm-modem-samsung-gsm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mm-modem-samsung-gsm.c b/plugins/mm-modem-samsung-gsm.c index 3b29eebd..df7a4b44 100755 --- a/plugins/mm-modem-samsung-gsm.c +++ b/plugins/mm-modem-samsung-gsm.c @@ -478,8 +478,12 @@ disable (MMModem *modem, primary = mm_generic_gsm_get_at_port (MM_GENERIC_GSM (modem), MM_PORT_TYPE_PRIMARY); g_assert (primary); - /* Random command to ensure unsolicited message disable completes */ - mm_at_serial_port_queue_command (primary, "AT+CFUN=0", 5, disable_unsolicited_done, info); + /* + * Command to ensure unsolicited message disable completes. + * Turns the radios off, which seems like a reasonable + * think to do when disabling. + */ + mm_at_serial_port_queue_command (primary, "AT+CFUN=4", 5, disable_unsolicited_done, info); } static void |