From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6852924559596227638==" MIME-Version: 1.0 From: Jupiter Subject: [PATCH v3 4/4] Change 4: Add SARA R4 vendor and enable vendor in gprs create Date: Mon, 22 Feb 2021 20:08:59 +1100 Message-ID: <20210222090859.2883-5-jupiter.hce@gmail.com> In-Reply-To: <20210222090859.2883-1-jupiter.hce@gmail.com> List-Id: To: ofono@ofono.org --===============6852924559596227638== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: jupiter --- plugins/gobi.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/gobi.c b/plugins/gobi.c index 9b5d7cff..5472dd83 100644 --- a/plugins/gobi.c +++ b/plugins/gobi.c @@ -47,6 +47,7 @@ #include #include #include +#include = #include #include @@ -496,9 +497,17 @@ static void gobi_post_online(struct ofono_modem *modem) struct gobi_data *data =3D ofono_modem_get_data(modem); struct ofono_gprs *gprs; struct ofono_gprs_context *gc; + const char* quirk; + unsigned int vendor =3D 0; = DBG("%p", modem); = + quirk =3D ofono_modem_get_string(modem, "Quirk"); + if (quirk) { + DBG("Debug: vendor =3D OFONO_VENDOR_UBLOX_SARA_R4"); + vendor =3D OFONO_VENDOR_UBLOX_SARA_R4; + } + if (data->features & GOBI_NAS) { ofono_netreg_create(modem, 0, "qmimodem", data->device); ofono_netmon_create(modem, 0, "qmimodem", data->device); @@ -508,7 +517,7 @@ static void gobi_post_online(struct ofono_modem *modem) ofono_ussd_create(modem, 0, "qmimodem", data->device); = if (data->features & GOBI_WDS) { - gprs =3D ofono_gprs_create(modem, 0, "qmimodem", data->device); + gprs =3D ofono_gprs_create(modem, vendor, "qmimodem", data->device); gc =3D ofono_gprs_context_create(modem, 0, "qmimodem", data->device); = -- = 2.17.1 --===============6852924559596227638==--