Hi Denis, Den tors 25 juli 2019 kl 06:58 skrev Denis Kenzior <[email protected]>:
> > + technology = ofono_netreg_get_technology(gprs->netreg); > > + > > + /* If we are called before netreg has updated us, just return > > + * we will get called again when the technology is available > > + * and we can make better decisions > > + */ > > + if (technology == -1) > > + return; > > You have to be careful here, some modem drivers do not report technology > at all, and it is an optional property in the API. So you are probably > breaking such drivers with this change... > > Unfortunately you are completely correct ;-) I send another spin. Where i instead set the netreg status to -1 in case the driver can fetch the status during startup. This will work with both sms and gprs which seems to be the users of netreg. The D-Bus interface will also return "unknown" during this time. ..And the users such as gprs can know if the status is valid or not. --Richard
_______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
