mirror of git://git.sysmocom.de/ofono
nwmodem: Remove atom if driver fails to init
This commit is contained in:
parent
86e64128fa
commit
ccbccc9bd0
|
@ -157,8 +157,10 @@ static void nwrat_support_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
{
|
||||
struct ofono_radio_settings *rs = user_data;
|
||||
|
||||
if (!ok)
|
||||
if (!ok) {
|
||||
ofono_radio_settings_remove(rs);
|
||||
return;
|
||||
}
|
||||
|
||||
ofono_radio_settings_register(rs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue