summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/wireless.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-04-16 19:35:24 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-04-16 19:35:24 +0000
commit4456efb5f40a838abb96fc5448a9e6b061c270e0 (patch)
treeb2c7f24c1c93a037edf0812fff2da1c0b99ae925 /lib/network/connection/wireless.pm
parent0b770202c140c17b996b9b7bc45aab2b776dafa1 (diff)
downloaddrakx-net-4456efb5f40a838abb96fc5448a9e6b061c270e0.tar
drakx-net-4456efb5f40a838abb96fc5448a9e6b061c270e0.tar.gz
drakx-net-4456efb5f40a838abb96fc5448a9e6b061c270e0.tar.bz2
drakx-net-4456efb5f40a838abb96fc5448a9e6b061c270e0.tar.xz
drakx-net-4456efb5f40a838abb96fc5448a9e6b061c270e0.zip
Properly detect driver for cards which do not have a complete /sysfs/
directory entry. This also fixes b43-related issues (#44740)
Diffstat (limited to 'lib/network/connection/wireless.pm')
-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;
}