diff options
-rw-r--r-- | pwr.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |