From c9cf94494c8c53b81656ee8bcdf91cd7a9b538dc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 23 Apr 2012 22:16:52 +0000 Subject: install ralink-firmware for rt61/73/2860/2870/3090 drivers --- lib/network/connection/wireless.pm | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) (limited to 'lib/network/connection') diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 261390b..0826e7f 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -294,38 +294,21 @@ my @thirdparty_settings = ( no_module_reload => 1, }, - { - name => 'rt61', - matching => 'rt61pci', - description => 'Ralink RT61 802.11abg WLAN', - firmware => { - url => 'http://rt2x00.serialmonkey.com/', - test_file => 'rt2661.bin', - }, - }, - - { - name => 'rt73', - matching => 'rt73usb', - description => 'Ralink RT73 802.11abg WLAN', - firmware => { - url => 'http://rt2x00.serialmonkey.com/', - test_file => 'rt73.bin', - }, - }, - (map { + my ($version, $suffix) = @$_; + $suffix ||= $version; +{ - name => "rt${_}", - matching => qr/^rt${_}(sta|)$/, - description => 'Ralink RT${_} WiFi', + name => "rt${version}", + matching => qr/^rt${version}(|pci|usb)$/, + description => "Ralink RT${version} WiFi", kernel_module => 1, firmware => { + package => 'ralink-firmware', url => 'http://www.ralinktech.com/', - test_file => "rt${_}.bin", + test_file => "rt${suffix}.bin", }, }; - } (2860, 2870, 3090)), + } ([ 61, 2661 ], [ 73 ], [ 2860 ], [ 2870 ], [ 3090 ])), { name => 'rtl8187se', -- cgit v1.2.1