From 3788156f3931634f171b70d76fa00db291c7d649 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 17 Aug 2018 14:42:07 -0500 Subject: [PATCH] netdev: Don't use device_get_ifindex in join_adhoc This is pointless as the ifindex is already available on the netdev object. --- src/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netdev.c b/src/netdev.c index 32230e5f..0470cba2 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -2666,7 +2666,7 @@ int netdev_join_adhoc(struct netdev *netdev, const char *ssid, void *user_data) { struct l_genl_msg *cmd; - uint32_t ifindex = device_get_ifindex(netdev->device); + uint32_t ifindex = netdev->index; uint32_t ch_freq = scan_channel_to_freq(6, SCAN_BAND_2_4_GHZ); uint32_t ch_type = NL80211_CHAN_HT20;