diff options
author | Dan Williams <dcbw@redhat.com> | 2014-07-23 14:32:32 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-07-23 14:32:32 -0500 |
commit | d307a8b06167465532f8f6eb8dbf45933d471058 (patch) | |
tree | 3499316f4995e80106c5421c342ce9698078517e | |
parent | 155cd790f37fbb34f8d55a46730cfab54379115c (diff) |
wwan: allow using the default subscription APN (bgo #729665)
If no APN is specified, passing "" to ModemManager indicates that
the connection should use the default subscription APN, which the
modem and the network determine themselves. This doesn't work
with all modems and operators, but in that case the user can
specify the APN.
-rw-r--r-- | src/devices/wwan/nm-modem-broadband.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c index 22ddaed0ba..5dd315ea37 100644 --- a/src/devices/wwan/nm-modem-broadband.c +++ b/src/devices/wwan/nm-modem-broadband.c @@ -280,9 +280,9 @@ create_gsm_connect_properties (NMModem *modem, if (str) mm_simple_connect_properties_set_number (properties, str); + /* Blank APN ("") means the default subscription APN */ str = nm_setting_gsm_get_apn (setting); - if (str) - mm_simple_connect_properties_set_apn (properties, str); + mm_simple_connect_properties_set_apn (properties, str ? str : ""); str = nm_setting_gsm_get_network_id (setting); if (str) |