Skip to content

Commit

Permalink
[ril] Send power off request at startup. JB#46294
Browse files Browse the repository at this point in the history
Some RILs like to receive power off request at startup even if radio
is already off.
  • Loading branch information
monich committed Jul 10, 2019
1 parent 0efebd1 commit 153eb3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ofono/drivers/ril/ril_radio.c
@@ -1,7 +1,7 @@
/*
* oFono - Open Source Telephony - RIL-based devices
*
* Copyright (C) 2015-2017 Jolla Ltd.
* Copyright (C) 2015-2019 Jolla Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -411,6 +411,11 @@ struct ril_radio *ril_radio_new(GRilIoChannel *io)
priv->state_event_id = grilio_channel_add_unsol_event_handler(priv->io,
ril_radio_state_changed,
RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED, self);
/*
* Some RILs like to receive power off request at startup even if
* radio is already off. Make those happy.
*/
ril_radio_submit_power_request(self, FALSE);
return self;
}

Expand Down

0 comments on commit 153eb3a

Please sign in to comment.