X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=plugins%2Fbluetooth.c;h=8279f619c6d8b062f79c03839a4d5c58959c058d;hb=36b19e423a2d66c0c9d722d4ee2fc65c03163b43;hp=009c6c7dfa715133670d32084ea02b2e0bc34597;hpb=91a77ed7265af5b9bf10784292945abb8db940ce;p=connman diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 009c6c7..8279f61 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -31,11 +31,10 @@ #define CONNMAN_API_SUBJECT_TO_CHANGE #include #include +#include #include #include -#include "inet.h" - #define BLUEZ_SERVICE "org.bluez" #define BLUEZ_MANAGER_INTERFACE BLUEZ_SERVICE ".Manager" #define BLUEZ_ADAPTER_INTERFACE BLUEZ_SERVICE ".Adapter" @@ -213,7 +212,7 @@ static void connect_reply(DBusPendingCall *call, void *user_data) data->interface = g_strdup(interface); - index = inet_name2index(interface); + index = connman_inet_ifindex(interface); connman_network_set_index(network, index); connman_network_set_connected(network, TRUE);