networking/detect fails if the device driver is not found by modinfo

Bug #1089911 reported by Sylvain Pineau
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Sylvain Pineau

Bug Description

The Asus X501U is using a Ralink RT3290 wifi chip which is not enterely supported yet (see bug #1049466)

When lspci -v on such system we have a kernel driver in use different from the ones available/comptatible with the chip:

07:00.0 Network controller: Ralink corp. Device 3290
 Subsystem: Foxconn International, Inc. Device e055
 Flags: bus master, fast devsel, latency 0, IRQ 19
 Memory at fe910000 (32-bit, non-prefetchable) [size=64K]
 Capabilities: <access denied>
 Kernel driver in use: rt2860
 Kernel modules: rt3290sta

The checkbox script network_device_info is using the output of modinfo to get the driver version.
In that case it fails because no module is named rt2860 even if a couple of related kernel modules are named :

kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
kernel/drivers/net/wireless/rt2x00/rt2800pci.ko

The kernel module rt3290sta is well loaded but I'm not sure if the chip really use it.

Current ouput:

Error running /sbin/modinfo rt2860: ERROR: modinfo: could not find module rt2860 Traceback (most recent call last): File "/usr/share/checkbox/scripts/network_device_info", line 238, in <module> sys.exit(main(sys.argv[1:])) File "/usr/share/checkbox/scripts/network_device_info", line 217, in main nm_devices = get_nm_devices() File "/usr/share/checkbox/scripts/network_device_info", line 169, in get_nm_devices devices.append(NetworkingDevice(devtype, props, dev_proxy, bus)) File "/usr/share/checkbox/scripts/network_device_info", line 74, in __init__ self._driver_ver = self._find_driver_ver() File "/usr/share/checkbox/scripts/network_device_info", line 130, in _find_driver_ver if self._modinfo['version'] and self._modinfo['version'] != 'in-tree:': TypeError: 'NoneType' object is not subscriptable

Expected output:

Devices found by lspci------------------------------
Ethernet: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
WiFi: Ralink corp. Device 3290
Error running /sbin/modinfo rt2860:
ERROR: modinfo: could not find module rt2860

Devices found by Network Manager-------------------------
Type: Ethernet
Interface: eth0
IP: 10.101.48.81
Driver: r8169 (ver: 2.3LK-NAPI)
State: Activated

Type: WiFi
Interface: ra0
IP: 0.0.0.0
Driver: rt2860 (ver: Unknown)
State: Unavailable

Related branches

Changed in checkbox:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Zygmunt Krynicki (zyga)
Changed in checkbox:
status: In Progress → Fix Committed
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.