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.
This commit is contained in:
Dan Williams 2014-07-23 14:32:32 -05:00
parent 155cd790f3
commit d307a8b061

View file

@ -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)