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:
Anirudh Gargi 2018-09-27 16:49:56 +05:30 committed by Denis Kenzior
parent 579e9dd3ec
commit 276330abc4
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}