diff options
author | JongSeok Won <wjs890204@gmail.com> | 2020-07-20 18:16:03 +0900 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-07-21 08:55:56 -0500 |
commit | 7a6872b3eeebc0ddd4fd165c517ee66c606fb060 (patch) | |
tree | 622be37dc7d69c7b32439dd1d4196b68e031185a | |
parent | 3940514013b2a317afc7ab118270c6f98f9e3e90 (diff) | |
download | ofono-7a6872b3eeebc0ddd4fd165c517ee66c606fb060.tar.gz |
rilmodem: set proto type during setting initial attach apn
Added the protocol type of initial attach apn depends on protocol
type in LTE Atom.
-rw-r--r-- | drivers/rilmodem/lte.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/rilmodem/lte.c b/drivers/rilmodem/lte.c index 61718961..b613d354 100644 --- a/drivers/rilmodem/lte.c +++ b/drivers/rilmodem/lte.c @@ -71,6 +71,7 @@ static void ril_lte_set_default_attach_info(const struct ofono_lte *lte, struct cb_data *cbd = cb_data_new(cb, data, (struct ofono_lte *)lte); struct parcel rilp; char buf[OFONO_GPRS_MAX_APN_LENGTH + 1]; + const char *proto = ril_util_gprs_proto_to_ril_string(info->proto); DBG("%s", info->apn); @@ -80,10 +81,11 @@ static void ril_lte_set_default_attach_info(const struct ofono_lte *lte, if (strlen(info->apn) > 0) { sprintf(buf, "%s", info->apn); parcel_w_string(&rilp, buf); - } else + } else { parcel_w_string(&rilp, ""); /* apn */ + } - parcel_w_string(&rilp, "ip"); /* protocol */ + parcel_w_string(&rilp, proto); /* protocol */ parcel_w_int32(&rilp, 0); /* auth type */ parcel_w_string(&rilp, ""); /* username */ parcel_w_string(&rilp, ""); /* password */ |