]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkctl: fix to show BSSID
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Dec 2019 15:39:28 +0000 (00:39 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Dec 2019 19:00:05 +0000 (20:00 +0100)
This fixes an issue caused by a typo in
78404d22cca9cbbc8adb9dd7248da2f2725b1dbc.

src/network/networkctl.c

index 35a78ebc6296813ae0b89e3a79196603d3e49485..5d94167e3a15e7fdf05cf2e76cceb85ab02f6522 100644 (file)
@@ -404,7 +404,7 @@ static void acquire_wlan_link_info(LinkInfo *link) {
         if (r < 0)
                 log_debug_errno(r, "%s: failed to query ssid: %m", link->name);
 
-        if (link->iftype == NL80211_IFTYPE_STATION) {
+        if (link->wlan_iftype == NL80211_IFTYPE_STATION) {
                 k = wifi_get_station(genl, link->ifindex, &link->bssid);
                 if (k < 0)
                         log_debug_errno(k, "%s: failed to query bssid: %m", link->name);