I've been trying to figure this out for a while now.  I've consulted
the man pages for ath, ifconfig, and dhclient.  I've checked the
mailing lists, and done many searches, even looking at Free and NetBSD
examples... but I am stumped.

I bought for my Dell Inspiron 5150 laptop a DWL-650.  Hardware version
is "B5" and the firmware version is 2.54.  I am running 3.7 -current,
as I had issues with -release doing a kernel panic when I tried to
remove the PCMCIA card.  The misc@ mailing list said that upgrading to
-current will fix this issue, and it has fixed the issue with kernel
panic.

My issue now is that I use my laptop on a number of different wireless
networks, my home has DHCP with WEP enabled, and my school, which has
no WEP, but still uses DHCP.  My work uses DHCP, but it's on a CAT 5
connection.

When OBSD boots up, the Dmesg sees the card:

ath0 at cardbus0 dev 0 function 0 "Atheros Communications, Inc.,
AR5001-0000-0000, Wireless LAN Reference Card": irq 11
ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, FCC1A, address XX:XX:XX:XX:XX:XX

and it picks up my braodcom NIC:

bce0 at pci2 dev 1 function 0 "Broadcom BCM4401" rev 0x01: irq 11,
address xx:xx:xx:xx:xx:xx
bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0

when the system comes up, it looks first to the ath0 card because my
hostname.ath0 ha the following:

/etc/hostname.ath0

dhcp NONE NONE NONE

and my hostname.bce0 has the following:

/etc/hostname.bce0

dhcp NONE NONE NONE


My laptop continues to boot, and past the dmesg.boot it begins
searching for the DHCP server, ath0 gives the following output... 
(this is the output that I get from my school...)

Aug  4 00:11:27 Lancelot dhclient[32406]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 2
Aug  4 00:11:29 Lancelot dhclient[32406]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 3
Aug  4 00:11:32 Lancelot dhclient[32406]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 8
Aug  4 00:11:40 Lancelot dhclient[32406]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 15
Aug  4 00:11:55 Lancelot dhclient[32406]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 9
Aug  4 00:12:45 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 1
Aug  4 00:12:46 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 2
Aug  4 00:12:48 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 3
Aug  4 00:12:51 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 7
Aug  4 00:12:58 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 7
Aug  4 00:13:05 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 11
Aug  4 00:13:16 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 21
Aug  4 00:13:37 Lancelot dhclient[28819]: DHCPDISCOVER on ath0 to
255.255.255.255 port 67 interval 9
Aug  4 00:13:46 Lancelot dhclient[28819]: No DHCPOFFERS received.
Aug  4 00:13:46 Lancelot dhclient[28819]: No working leases in
persistent database - sleeping.

then my bce0 picks up where ath0 failed...  this is the output... 
bce0 has never failed to get an IP address.  Even though I don't
understand the error, I still get an IP address...

starting network
DHCPREQUEST on bce0 to 255.255.255.255 port 67
iplength 347 disagrees with bytes received 351.
accepting packet with data after udp payload.
DHCPACK from 172.16.220.10
bound to 172.16.224.147 -- renewal in 302400 seconds.


here is my ifconfig -a

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
        groups: lo 
        inet 127.0.0.1 netmask 0xff000000 
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
bce0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        lladdr xx:xx:xx:xx:xx:xx
        groups: egress 
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::20d:56ff:feb3:7011%bce0 prefixlen 64 scopeid 0x1
        inet 172.16.224.147 netmask 0xffff0000 broadcast 172.16.255.255
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
ath0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        lladdr xx:xx:xx:xx:xx:xx
        media: IEEE802.11 autoselect (DS1)
        status: no network
        ieee80211: nwid tardis 
        inet6 fe80::211:95ff:fe7c:b86%ath0 prefixlen 64 scopeid 0x6



So now, bce0 is the only way that I can get an IP address, at home,
school, or work...

when I try to manually configure my ifconfig, I put the following in:

ifconfig ath0 nwid uophxedu -powersave media autoselect chan 3

then I issue the command:

dhclient ath0

and I get the same output as above...  I do disable my bce0, so that
bce0 does not cause issues.

I think that is all of it...  If anyone can help me, I would be
grateful.  The best case would be to get it working on my home network
with WEP.  But I want to try working up to getting WEP.  My first
objective is to just get on the network.  Both the wireless cards I
own are supported by OpenBSD

           D-Link DWL-G520      AR5212    PCI        b/g
           D-Link DWL-G650B     AR5212    CardBus    b/g

I assume that the G650B is a G650 Rev B, which I have...

Do I have an issue with setting up the card?  I mean, bce0 has no
problem connecting to the DHCP, it makes no sense for ath0 to not
receive DHCPACK.


Please help me if you can.  dmesg is below...  if someone says that I
need to go back to -release, I can do that and try everything again. 
Looking at the DHCP output, it would appear the the ath0 is not
sending out a DHCPREQUEST, that it is just "discovering" the wireless
network.

My router at home is LinkSYS WRT-54G.  I wondered if that was the
issue, but again, bce0 has no issue getting an IP at home, so I don't
believe it's the operating system, but either PEBKAC, or the card.  I
guess I just want to make sure that I'm using the correct syntax, and
I'm not forgetting anything when I try to activate ath0.


Please feel free to berate me if I forgot something simple, or did
something stupid, it's the only way I'm going to learn...  My idea is
to get rid of M$ forever.  Once I get the wireless portion fixed,
start enlightenment and never come back to windows again.

Bryan


--------------------------------------

penBSD 3.7-current (GENERIC) #252: Wed Jul 20 14:26:27 MDT 2005
    deraadt at i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz ("GenuineIntel"
686-class) 3.06 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 536252416 (523684K)
avail mem = 482459648 (471152K)
using 4278 buffers containing 26914816 bytes (26284K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/10/04, BIOS32 rev. 0 @ 0xffe90
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfcb30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371 ISA and IDE" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xf800 0xcf800/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82852GM Hub-PCI" rev 0x02
"Intel 82852GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
"Intel 82852GM Configuration" rev 0x02 at pci0 dev 0 function 3 not configured
ppb0 at pci0 dev 1 function 0 "Intel 82852/82855 AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia GeForce FX Go 5200" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x01: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x81
pci2 at ppb1 bus 2
bce0 at pci2 dev 1 function 0 "Broadcom BCM4401" rev 0x01: irq 11,
address xx:xx:xx:xx:xx:xx
bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0
cbb0 at pci2 dev 4 function 0 "Texas Instruments PCI4510 CardBus" rev
0x02: irq 11
"Texas Instruments PCI4510 FireWire" rev 0x00 at pci2 dev 4 function 1
not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x01: SpeedStep
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <_NEC, DVD+RW ND-6100A, 104D> SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd0 at pciide0 channel 1 drive 0: <IC25N040ATCS04-0>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x01: irq
11, ICH4 AC97
ac97: codec id 0x83847650 (SigmaTel STAC9750/51)
ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
audio0 at auich0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
biomask effd netmask effd ttymask ffff
pctr: user-level cycle counter enabled
ath0 at cardbus0 dev 0 function 0 "Atheros Communications, Inc.,
AR5001-0000-0000, Wireless LAN Reference Card": irq 11
ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, FCC1A, address xx:xx:xx:xx:xx:xx
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev
1.10/3.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0

Reply via email to