summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/ndiswrapper.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/ndiswrapper.pm b/lib/network/ndiswrapper.pm
index efd2dc5..c2fa73f 100644
--- a/lib/network/ndiswrapper.pm
+++ b/lib/network/ndiswrapper.pm
@@ -63,6 +63,10 @@ sub find_matching_devices {
}
}
+ #- add original driver
+ push @devices, { interface => undef, drivers => [ $device->{driver} ] }
+ if !$is_driver_listed->($device->{driver}) && any { $_ eq $device->{driver} } modules::loaded_modules();
+
@devices;
}