From 5e4c675175b8f7e217a55360de29e638ac4e4147 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 May 2016 12:26:46 -0500 Subject: [PATCH] network: Use device_get_wiphy --- src/wiphy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wiphy.c b/src/wiphy.c index d6e8d0e2..2de20c2c 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -347,8 +347,7 @@ static void passphrase_callback(enum agent_result result, void *user_data) { struct network *network = user_data; - struct netdev *netdev = network->netdev; - struct wiphy *wiphy = netdev->wiphy; + struct wiphy *wiphy = device_get_wiphy(network->netdev); struct scan_bss *bss; l_debug("result %d", result); @@ -466,7 +465,7 @@ static struct l_dbus_message *network_connect(struct l_dbus *dbus, * agent this may not be the final choice because BSS visibility can * change while we wait for the agent. */ - bss = network_select_bss(netdev->wiphy, network); + bss = network_select_bss(device_get_wiphy(netdev), network); /* None of the BSSes is compatible with our stack */ if (!bss)