Subject: Re: kern/34045: ath0 not working on Lenovo T60 laptop under -current: pci_mem_find problems
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: netbsd-bugs
Date: 08/01/2006 18:10:03
The following reply was made to PR kern/34045; it has been noted by GNATS.
From: Brian de Alwis <bsd@cs.ubc.ca>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/34045: ath0 not working on Lenovo T60 laptop under -current: pci_mem_find problems
Date: Tue, 1 Aug 2006 11:06:10 -0700
On 2006.08.01 01:09:41 +0200, Martin Husemann wrote:
> Could you try this patch?
The patch works on this system.
I should perhaps enter this as a different PR, but wiconfig doesn't
work on this system:
$ sudo wiconfig ath0
NIC serial number: [ ]
Station name: [ ]
SSID for IBSS creation: [ ]
Current netname (SSID): [ ]
Desired netname (SSID): [ ]
Segmentation fault (core dumped)
Using gdb on a debug version of wiconfig:
(gdb) bt
#0 0x08049798 in wi_printhex (wreq=0xbfbfdab0) at wiconfig.c:545
#1 0x08049a3c in wi_dumpinfo (iface=0xbfbfe0b3 "ath0") at wiconfig.c:674
#2 0x0804a127 in main (argc=2, argv=0xbfbfdf70) at wiconfig.c:885
#3 0x080489c6 in ___start ()
(gdb) print *wreq
$2 = {
wi_len = 20480,
wi_type = 49686,
wi_val = {0 <repeats 512 times>}
}
(gdb) up
#1 0x08049a3c in wi_dumpinfo (iface=0xbfbfe0b3 "ath0") at wiconfig.c:674
674 wi_printhex(&wreq);
(gdb) p w[i]
$3 = {
wi_type = 64834,
wi_code = 4,
wi_label = 0x804a5e4 "Current BSSID:\t\t\t\t",
wi_opt = 0,
wi_desc = 0x0,
wi_optval = 0x0
}
(gdb) exit
That len looks suspicious for a mac address :-) I tried looking
to see whether this was caused by similar mem-type issues, but
wasn't able to progress far due to my unfortunately limited knowledge
of kernel development.
Brian.
--
Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
"Amusement to an observing mind is study." - Benjamin Disraeli