Content-Type: multipart/mixed; boundary="===============2241243148530748921==" MIME-Version: 1.0 From: Alexander Couzens Subject: how to handle ofono_netreg_status_notify() without valid LAC or cellid or status Date: Thu, 07 Sep 2017 22:49:15 +0200 Message-ID: <20170907224900.1cf64d44@lazus.yip> List-Id: To: ofono@ofono.org --===============2241243148530748921== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I've noticed when using a Quectel EC20 (qmimodem) sometimes I see a LAC and a cellid, sometimes I do not. After looking into it, the problems lies in the ofono plugin api or in the qmimodem driver. I'm unsure where I should fix this issue. The problem: The qmimodem notifies ofono about any change of lac, ci, tech or status. But the qmimodem will only include those items which have been changed, not all. But ofono doesn't allow only to update one single item, only all of them at the same time. = void ofono_netreg_status_notify(struct ofono_netreg *netreg, int status, int lac, int ci, int tech) If lac or ci is `-1` it seems to mean invalid (TODO: create a define or enum) So how to fix this? a) when something change, do another call to get all values from the modem b) extend the ofono api to allow `#define NO_CHANGE -2` for lac ci tech, status c) unlikely: buffer the old values in the driver/qmimodem code d) ?? Regards, Alexander -- = Alexander Couzens mail: lynxis(a)fe80.eu jabber: lynxis(a)fe80.eu mobile: +4915123277221 gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 --===============2241243148530748921== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KCmlRSXpCQUVCQ2dBZEZpRUVPUTNQZUl2NXFs QlBqL0hpd3A2ZHBxRGZoZ1FGQWxteHNNc0FDZ2tRd3A2ZHBxRGYKaGdSM3JCQUF6NEh2OThjamYy Tkt0R095NjFJOGh0a0ZMTFFoN1YzQk1qUmVnM2NwQTNVVTRLMXJ3ZDFDUGRaSgpVV2NSNnFiTGNz TGxMOXpDNUlEb1Y4ZTd2NFliSDJRaEM3RTg4M0JjYkkyY2pPaG5tK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