summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-04-28 16:20:42 +0300
committerAki Niemi <aki.niemi@nokia.com>2010-05-17 13:44:11 +0300
commit89cd67f0760bb44aed2ccadaf829ab5b6db63d29 (patch)
tree65dad023e2cfd649a7970ecf6adc691bcad50b81
parent5b288c17b9b89603362be3fd457e827815f87771 (diff)
downloadofono-89cd67f0760bb44aed2ccadaf829ab5b6db63d29.tar.bz2
Use g_pn_netlink_by_modem() in usbpnmodem plugin
-rw-r--r--plugins/usbpnmodem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/usbpnmodem.c b/plugins/usbpnmodem.c
index 5f06e9d5..2ed1e2c4 100644
--- a/plugins/usbpnmodem.c
+++ b/plugins/usbpnmodem.c
@@ -63,8 +63,7 @@ static void usbpn_status_cb(GIsiModem *idx,
if (st == PN_LINK_REMOVED)
return;
- link = g_pn_netlink_by_name(ifname);
- if (link) {
+ if (g_pn_netlink_by_modem(idx)) {
DBG("Modem for interface %s already exists", ifname);
return;
}