From 4456efb5f40a838abb96fc5448a9e6b061c270e0 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Thu, 16 Apr 2009 19:35:24 +0000 Subject: Properly detect driver for cards which do not have a complete /sysfs/ directory entry. This also fixes b43-related issues (#44740) --- lib/network/connection/wireless.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/network/connection/wireless.pm') 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; } -- cgit v1.2.1