quectel: pass vendor id to gprs and gprs-context

The gprs-context does special casing on the quectel serial modem when
probing the supported layer 2 protocols, so pass the vendor id when
setting up the atoms.
This commit is contained in:
Martin Hundebøll 2019-07-19 12:27:46 +02:00 committed by Denis Kenzior
parent d97912f5f1
commit 9b681d7a27
1 changed files with 3 additions and 2 deletions

View File

@ -717,8 +717,9 @@ static void quectel_post_sim(struct ofono_modem *modem)
DBG("%p", modem);
gprs = ofono_gprs_create(modem, 0, "atmodem", data->aux);
gc = ofono_gprs_context_create(modem, 0, "atmodem", data->modem);
gprs = ofono_gprs_create(modem, data->vendor, "atmodem", data->aux);
gc = ofono_gprs_context_create(modem, data->vendor, "atmodem",
data->modem);
if (gprs && gc)
ofono_gprs_add_context(gprs, gc);