summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-07 19:26:36 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-03-07 19:26:36 +0100
commiteca678931ae2b2e608b94ee29c803a819b8367a8 (patch)
treeb2f9a04f905a9fc5859f817b1d70218b2cd4925b
parent8507877c6dba1cca27268dc4e8079b4a96da51a9 (diff)
downloadhardware_ril_samsung-ril-eca678931ae2b2e608b94ee29c803a819b8367a8.zip
hardware_ril_samsung-ril-eca678931ae2b2e608b94ee29c803a819b8367a8.tar.gz
hardware_ril_samsung-ril-eca678931ae2b2e608b94ee29c803a819b8367a8.tar.bz2
pwr: Complete request even if last state seems not to match
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--pwr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pwr.c b/pwr.c
index 766390e..2d1718f 100644
--- a/pwr.c
+++ b/pwr.c
@@ -55,8 +55,7 @@ void ipc_pwr_phone_state(struct ipc_message_info *info)
case IPC_PWR_R(IPC_PWR_PHONE_STATE_LPM):
LOGD("Got power to LPM");
- if (ril_data.state.power_state == IPC_PWR_PHONE_STATE_NORMAL &&
- ril_data.tokens.radio_power != (RIL_Token) 0x00) {
+ if (ril_data.tokens.radio_power != (RIL_Token) 0x00) {
ril_request_complete(ril_data.tokens.radio_power, RIL_E_SUCCESS, NULL, 0);
ril_data.tokens.radio_power = (RIL_Token) 0x00;
}
@@ -68,8 +67,7 @@ void ipc_pwr_phone_state(struct ipc_message_info *info)
case IPC_PWR_R(IPC_PWR_PHONE_STATE_NORMAL):
LOGD("Got power to NORMAL");
- if (ril_data.state.power_state == IPC_PWR_PHONE_STATE_LPM &&
- ril_data.tokens.radio_power != (RIL_Token) 0x00) {
+ if (ril_data.tokens.radio_power != (RIL_Token) 0x00) {
ril_request_complete(ril_data.tokens.radio_power, RIL_E_SUCCESS, NULL, 0);
ril_data.tokens.radio_power = (RIL_Token) 0x00;
}