From 4d9387347a30e364546f0310f87e523dd2764932 Mon Sep 17 00:00:00 2001 From: acid-burn Date: Tue, 23 Feb 2010 21:34:11 +0100 Subject: [PATCH] Components/Network.py: *fix usb wlan module recognition for new 1.6 oe images. This fixes #449 --- lib/python/Components/Network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 4b0213d4..29491cb0 100755 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -580,11 +580,11 @@ class Network: self.wlanmodule = 'madwifi' if os_path.exists(rt73_dir): rtfiles = listdir(rt73_dir) - if len(rtfiles) == 2: + if len(rtfiles) == 2 or len(rtfiles) == 5: self.wlanmodule = 'ralink' if os_path.exists(zd1211b_dir): zdfiles = listdir(zd1211b_dir) - if len(zdfiles) == 1: + if len(zdfiles) == 1 or len(zdfiles) == 5: self.wlanmodule = 'zydas' return self.wlanmodule -- 2.30.2