summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/wireless.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 32a28f7..67c598a 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -20,7 +20,8 @@ sub get_devices {
my @wireless = grep { detect_devices::is_wireless_interface($_) } detect_devices::get_lan_interfaces();
my @all_devices = (@devices, network::connection::ethernet::get_unlisted_devices(\@wireless, \@devices));
foreach (@all_devices) {
- my $interface = network::connection::ethernet::device_to_interface($_) or next;
+ my $interface = $_->{interface} or network::connection::ethernet::device_to_interface($_);
+ next unless $interface;
my $driver = network::connection::ethernet::interface_to_driver($interface) or next;
$_->{driver} = $driver if $driver;
}