mirror of git://git.sysmocom.de/ofono
atmodem: add EUTRAN tech for creg read status
Add handling for CREG's status to get the technology type. CREG notify URC does not need additional handling as 'AcT' is mapped one-on-one to tech.
This commit is contained in:
parent
579e9dd3ec
commit
276330abc4
|
@ -228,6 +228,10 @@ static void at_creg_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
if ((status == 1 || status == 5) && (tech == -1))
|
||||
tech = nd->tech;
|
||||
|
||||
/* 6-10 is EUTRAN, with 8 being emergency bearer case */
|
||||
if (status > 5 && tech == -1)
|
||||
tech = ACCESS_TECHNOLOGY_EUTRAN;
|
||||
|
||||
cb(&error, status, lac, ci, tech, cbd->data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue