From dgilbert@canoe.velocet.net  Wed Mar 13 14:58:15 2002
Return-Path: <dgilbert@canoe.velocet.net>
Received: from canoe.velocet.net (H43.C242.tor.velocet.net [216.138.242.43])
	by hub.freebsd.org (Postfix) with ESMTP id 3E04C37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 13 Mar 2002 14:58:13 -0800 (PST)
Received: (from dgilbert@localhost)
	by canoe.velocet.net (8.11.6/8.11.3) id g2DMw8400620;
	Wed, 13 Mar 2002 17:58:08 -0500 (EST)
	(envelope-from dgilbert)
Message-Id: <200203132258.g2DMw8400620@canoe.velocet.net>
Date: Wed, 13 Mar 2002 17:58:08 -0500 (EST)
From: David Gilbert <dgilbert@velocet.ca>
Reply-To: David Gilbert <dgilbert@velocet.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: recent -STABLE dhclient doesn't see wireless card
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35873
>Category:       kern
>Synopsis:       recent -STABLE dhclient doesn't see wireless card
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 13 15:00:08 PST 2002
>Closed-Date:    Mon Dec 09 13:13:02 PST 2002
>Last-Modified:  Mon Dec 09 13:13:02 PST 2002
>Originator:     David Gilbert
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
velocet.ca
>Environment:
System: FreeBSD canoe.velocet.net 4.5-STABLE FreeBSD 4.5-STABLE #5: Wed Mar 13 16:57:25 EST 2002 dgilbert@canoe.velocet.net:/usr/src/sys/compile/CANOE i386


cvsup preceded kernel compile by 10 minutes.  previous cvsup (probably
a month old) din't have this problem.

>Description:
This is an odd one.  If I boot with the card in, everything comes up fine.
If I suspend and resume, dhclient won't find the card until dhclient
is _successful_ (just running is not enough) on fxp0 (an internal port).

This all started happening with the most recent cvsup to -STABLE where
the previous one was about a month old.  I don't know that this is
related to suspend/resume because inserting the card has the same
result.

A possibly related matter is that the cdrom drive is cantankerous
after a resume (where it used to work flawlessly).

[...resume from suspend...]
[...card beeps and is recognised in ifconfig list...]

[3:4:304]root@canoe:/usr/home/dgilbert> ps -ax | grep dh
[3:5:305]root@canoe:/usr/home/dgilbert> dhclient wi0 
ifconfig: ioctl (SIOCAIFADDR): File exists
[3:6:306]root@canoe:/usr/home/dgilbert> tail /var/log/messages
Mar 13 17:45:53 canoe pccardd[53]: Card "SMC"("SMC2632W") [Version 01.02] [] matched "SMC" ("SMC2632W") [(null)] [(null)] 
Mar 13 17:45:58 canoe /kernel: wi0: <WaveLAN/IEEE 802.11> at port 0x240-0x27f irq 9 flags 0x10000 slot 1 on pccard1
Mar 13 17:45:58 canoe /kernel: wi0: 802.11 address: 00:04:e2:1e:11:d7
Mar 13 17:45:58 canoe /kernel: wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A, Firmware: 0.7 variant 6
Mar 13 17:45:58 canoe pccardd[53]: wi0: SMC (SMC2632W) inserted.
Mar 13 17:45:58 canoe dhclient: wi0: not found
Mar 13 17:45:58 canoe dhclient: exiting.
Mar 13 17:46:15 canoe dhclient: wi0: not found
Mar 13 17:46:15 canoe dhclient: exiting.
[3:7:307]root@canoe:/usr/home/dgilbert> dhclient fxp0
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
dhclient: New IP Address(fxp0): 216.138.242.43
dhclient: New Subnet Mask (fxp0): 255.255.255.192
dhclient: New Broadcast Address(fxp0): 216.138.242.63
dhclient: New Routers: 216.138.242.62
No matching processes were found
13 Mar 17:49:27 ntpdate[505]: step time server 216.138.242.2 offset 1.625420 sec
[3:8:308]root@canoe:/usr/home/dgilbert> dhclient wi0
dhclient: New IP Address(wi0): 216.138.240.43
dhclient: New Subnet Mask (wi0): 255.255.255.240
dhclient: New Broadcast Address(wi0): 216.138.240.47
dhclient: New Routers: 216.138.240.33
No matching processes were found
13 Mar 17:50:12 ntpdate[539]: adjust time server 216.138.242.2 offset 0.002471 sec

>How-To-Repeat:
suspend/resume laptop with wireless card in, or insert card.  See above.

I can make the machine available for testing if need be.
>Fix:

Downgrade ? :).


>Release-Note:
>Audit-Trail:

From: David Gilbert <dgilbert@velocet.net>
To: freebsd-gnats-submit@FreeBSD.org, dgilbert@velocet.ca
Cc:  
Subject: Re: kern/35873: recent -STABLE dhclient doesn't see wireless card
Date: Sun, 17 Mar 2002 21:08:56 -0500

 I see that dhclient was recently upgraded, but I just confirmed that a 
 4.5-RELEASE kernel (with the same 4.5-STABLE binaries) doesn't exhibit 
 this behaviour.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Mar 18 02:35:27 PST 2002 
State-Changed-Why:  
Submitter reports bug has been fixed. Requests PR closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35873 
State-Changed-From-To: closed->open 
State-Changed-By: cjc 
State-Changed-When: Mon Mar 18 13:14:24 PST 2002 
State-Changed-Why:  
I misread the submitter's last email. This is still a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35873 
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Dec 8 09:45:23 PST 2002 
State-Changed-Why:  

Does this still occur on more recent releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35873 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Mon Dec 9 13:12:11 PST 2002 
State-Changed-Why:  

Submitter says that the problem no longer happens. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35873 
>Unformatted:
