3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-10 14:09:22 +01:00

netdev: Don't use device_get_ifindex in join_adhoc

This is pointless as the ifindex is already available on the netdev
object.
This commit is contained in:
Denis Kenzior 2018-08-17 14:42:07 -05:00
parent 3c28c5c24c
commit 3788156f39

View File

@ -2666,7 +2666,7 @@ int netdev_join_adhoc(struct netdev *netdev, const char *ssid,
void *user_data) void *user_data)
{ {
struct l_genl_msg *cmd; 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_freq = scan_channel_to_freq(6, SCAN_BAND_2_4_GHZ);
uint32_t ch_type = NL80211_CHAN_HT20; uint32_t ch_type = NL80211_CHAN_HT20;