projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50ae504
)
Fix interpretation of new GPRS registration status signal.
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Sun, 25 Oct 2009 08:14:54 +0000
(09:14 +0100)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 26 Oct 2009 18:29:41 +0000
(13:29 -0500)
src/gprs.c
patch
|
blob
|
history
diff --git
a/src/gprs.c
b/src/gprs.c
index
688f2d9
..
d9de087
100644
(file)
--- a/
src/gprs.c
+++ b/
src/gprs.c
@@
-882,8
+882,8
@@
static void set_registration_status(struct ofono_gprs *gprs, int status)
"Status", DBUS_TYPE_STRING,
&str_status);
- attached = (status
!= NETWORK_REGISTRATION_STATUS_REGISTERED &&
- status
!
= NETWORK_REGISTRATION_STATUS_ROAMING);
+ attached = (status
== NETWORK_REGISTRATION_STATUS_REGISTERED ||
+ status
=
= NETWORK_REGISTRATION_STATUS_ROAMING);
if (gprs->attached != (int) attached &&
!(gprs->flags & GPRS_FLAG_ATTACHING)) {
gprs->attached = (int) attached;