Make netreg_update based on CREG, not CGREG

This commit is contained in:
Denis Kenzior 2009-10-26 17:26:19 -05:00
parent 4f85ee5c97
commit e63ea23557
1 changed files with 2 additions and 5 deletions

View File

@ -574,14 +574,12 @@ static void netreg_status_changed(int status, int lac, int ci, int tech,
{
struct ofono_gprs *gprs = data;
DBG("%d, %d, %d, %d, %p", status, lac, ci, tech, op);
DBG("%d", status);
if (gprs->netreg_status == status)
return;
gprs->netreg_status = status;
if (status != NETWORK_REGISTRATION_STATUS_REGISTERED)
return;
gprs->netreg_status = status;
gprs_netreg_update(gprs);
}
@ -905,7 +903,6 @@ static void set_registration_status(struct ofono_gprs *gprs, int status)
&str_status);
gprs_attached_update(gprs);
gprs_netreg_update(gprs);
}
static void set_registration_location(struct ofono_gprs *gprs,