summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-13 14:38:25 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-14 15:45:05 -0500
commitf2440ebd82510d65478bb0d38bd937a212ad69bf (patch)
tree2d31f632d25e4f947432e1321db90bb8b87fe13f /src
parent382e39ec5349da61ef274488bdc0fbe5d9559721 (diff)
downloadofono-f2440ebd82510d65478bb0d38bd937a212ad69bf.tar.bz2
Preserve PNN order
Diffstat (limited to 'src')
-rw-r--r--src/network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c
index 734eca1f..629fc007 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1130,8 +1130,10 @@ static void sim_pnn_read_cb(struct ofono_modem *modem, int ok,
* retrieve it. If OPL is not there then PNN[1] will
* still be used for the HPLMN and/or EHPLMN, if PNN
* is present. */
- if (record == total && g_slist_length(netreg->pnn_list) > 0)
+ if (record == total && g_slist_length(netreg->pnn_list) > 0) {
+ netreg->pnn_list = g_slist_reverse(netreg->pnn_list);
ofono_sim_read(modem, SIM_EFOPL_FILEID, sim_opl_read_cb, NULL);
+ }
}
static void sim_spn_read_cb(struct ofono_modem *modem, int ok,