All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Radio-setting: Fix to init pending band
  2016-04-27 23:00 [PATCH] Radio-setting: Fix to init pending band Antara Borwankar
@ 2016-04-27 16:20 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2016-04-27 16:20 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

Hi Antara,

On 04/27/2016 06:00 PM, Antara Borwankar wrote:
> From: Antara Borwankar <antara.borwankar@gmail.com>
>
> Initialiing rs->pending_band_gsm and rs->pending_band_umts
> ---
>   src/radio-settings.c | 10 ++++++----
>   1 file changed, 6 insertions(+), 4 deletions(-)
>

Applied, thanks.

Regards,
-Denis


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Radio-setting: Fix to init pending band
@ 2016-04-27 23:00 Antara Borwankar
  2016-04-27 16:20 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Antara Borwankar @ 2016-04-27 23:00 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

From: Antara Borwankar <antara.borwankar@gmail.com>

Initialiing rs->pending_band_gsm and rs->pending_band_umts
---
 src/radio-settings.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/radio-settings.c b/src/radio-settings.c
index 5ab4e7b..8cb3d41 100644
--- a/src/radio-settings.c
+++ b/src/radio-settings.c
@@ -855,6 +855,8 @@ static void radio_load_settings(struct ofono_radio_settings *rs,
 						"GsmBand", rs->band_gsm);
 	}
 
+	rs->pending_band_gsm = rs->band_gsm;
+
 	error = NULL;
 	rs->band_umts = g_key_file_get_integer(rs->settings, SETTINGS_GROUP,
 					"UmtsBand", &error);
@@ -865,6 +867,8 @@ static void radio_load_settings(struct ofono_radio_settings *rs,
 						"UmtsBand", rs->band_umts);
 	}
 
+	rs->pending_band_umts = rs->band_umts;
+
 	error = NULL;
 	rs->mode = g_key_file_get_integer(rs->settings, SETTINGS_GROUP,
 					"TechnologyPreference", &error);
@@ -890,10 +894,8 @@ void ofono_radio_settings_register(struct ofono_radio_settings *rs)
 
 	radio_load_settings(rs, ofono_sim_get_imsi(sim));
 
-	if (rs->driver->set_band == NULL)
-		goto finish;
-
-	rs->driver->set_band(rs, rs->band_gsm, rs->band_umts,
+	if (rs->driver->set_band != NULL)
+		rs->driver->set_band(rs, rs->band_gsm, rs->band_umts,
 					radio_band_set_callback_at_reg, rs);
 
 	if (rs->driver->set_rat_mode == NULL)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-27 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-27 23:00 [PATCH] Radio-setting: Fix to init pending band Antara Borwankar
2016-04-27 16:20 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.