hwdb-gui: route referenced before assignment

Bug #48535 reported by bailey
6
Affects Status Importance Assigned to Milestone
hwdb-client (Ubuntu)
New
Medium
Unassigned

Bug Description

When I installed breezy on my laptop, I had to change the hwdb-gui code as described in bug #18125. (ie. changed route to /sbin/route) This allowed my external wi-fi card to be noticed.

When I upgraded to dapper, I get the same error message:

Traceback (most recent call last):
  File "/usr/bin/hwdb-gui", line 151, in <lambda>
    self.advance.connect("clicked", lambda w: self.adv(self.xmlfile))
  File "/usr/bin/hwdb-gui", line 584, in adv
    self.test(set)
  File "/usr/bin/hwdb-gui", line 191, in test
    netdevice = self.getroute()[len(self.getroute())-1].strip()
  File "/usr/bin/hwdb-gui", line 236, in getroute
    return route
UnboundLocalError: local variable 'route' referenced before assignment

I tried changing 'route -n' to '/sbin/route -n' but no luck this time. I have a Compaq Presario 1600 with 192 MB RAM, and a Blitzz BWP 712 wireless card.

Output from troubleshooting (as the card should be supported 'out of the box'):

lspci | grep Ethernet

0000:02:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

tail -f /var/log/messages

Jun 5 10:19:34 localhost kernel: [4297100.078000] pccard: card ejected from slot 0
Jun 5 10:19:38 localhost kernel: [4297104.136000] pccard: card inserted into slot 0

sudo lshw -C network

*-network UNCLAIMED
  description: Ethernet controller
  product: AR5212 802.11abg NIC
  vendor: Atheros Communications, Inc.
  physical id: 1
  bus info: pci@02:00.0
  version: 01
  width: 32 bits
  clock: 33 MHz
  capabilities: cap_list
  resources: iomemory:12000000-1200ffff irq:9

lsmod | grep ath
(nothing)

Note: as my wifi on my laptop is not working, I copied this to my desktop

Revision history for this message
bailey (bailey-utias) wrote :

I think I might have found the problem, though I am not sure and I don't have a fix. Typing in the command:

route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Iface
(nothing)

As 'route -n' does not return a line that starts with 0.0.0.0, then route is never specified before it is returned. Hence the error message.

Revision history for this message
bailey (bailey-utias) wrote :

Ok, I am getting further now. Apparently this is due to the removal of the madwifi modules. I booted with the kernel from breezy, and I can modprobe ath_pci and get a network connection. Anyone know what module is needed for this Wifi card?

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.