summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Nunes <philippe.nunes@linux.intel.com>2013-09-26 17:40:24 +0200
committerPhilippe Nunes <philippe.nunes@linux.intel.com>2013-09-26 17:40:24 +0200
commit039b02c7ea5afb18f602bbb695442cf7fcd2a1c7 (patch)
treeba2174fa565183ae29ac9b99ea29df1cbd46af38
parent602dd7dfbeae35fd6e0981a6ae6584ab9280cffb (diff)
downloadtel-plugin-vpc-039b02c7ea5afb18f602bbb695442cf7fcd2a1c7.tar.gz
tel-plugin-vpc-039b02c7ea5afb18f602bbb695442cf7fcd2a1c7.tar.bz2
tel-plugin-vpc-039b02c7ea5afb18f602bbb695442cf7fcd2a1c7.zip
Fetch for network registration status when exiting from sleep mode
-rw-r--r--src/desc-vpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desc-vpc.c b/src/desc-vpc.c
index 876361a..d758b44 100644
--- a/src/desc-vpc.c
+++ b/src/desc-vpc.c
@@ -123,14 +123,14 @@ static void on_screen_status_changed(keynode_t *key, void* data)
if (state == VCONFKEY_PM_STATE_NORMAL)
/* screen on, enable URC */
prepare_and_send_pending_request(plugin, CORE_OBJECT_TYPE_NETWORK,
- "AT+CREG=2;+CGREG=2;+XREG=2;+XCSQ=1;+XMER=1;+XFDOR=3",
+ "AT+CREG=2;+CGREG=2;+XCSQ=1;+XMER=1;+XFDOR=3;+CREG?;+CGREG?",
NULL,
TCORE_AT_NO_RESULT,
NULL);
else if (state == VCONFKEY_PM_STATE_LCDOFF)
/* screen off, disable URC */
prepare_and_send_pending_request(plugin, CORE_OBJECT_TYPE_NETWORK,
- "AT+CREG=0;+CGREG=0;+XREG=0;+XCSQ=0;+XMER=0;+XFDOR=2",
+ "AT+CREG=0;+CGREG=0;+XCSQ=0;+XMER=0;+XFDOR=2",
NULL,
TCORE_AT_NO_RESULT,
NULL);