Subject: Re: carrier detect and wi0
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 06/22/2004 20:40:09
--G6nVm6DDWH/FONJq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jun 17, 2004 at 10:24:25AM -0400, Steve Bellovin wrote:
> I was playing with ifwatchd, and I noticed that there are no messages 
> for RF carrier appearing or going away for wi0.  (I'll check an am0 
> laptop tonight.)  It strikes me that there should be -- is this 
> possible?  (This is on 2.0beta)

It is possible.  Something resembling this (untested) patch should do
the trick....

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933

--G6nVm6DDWH/FONJq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=rtmsg-diff

Index: ieee80211_proto.c
===================================================================
RCS file: /cvsroot/src/sys/net80211/ieee80211_proto.c,v
retrieving revision 1.8
diff -u -r1.8 ieee80211_proto.c
--- ieee80211_proto.c	30 Apr 2004 23:58:20 -0000	1.8
+++ ieee80211_proto.c	23 Jun 2004 01:38:06 -0000
@@ -547,6 +547,9 @@
 			(*ifp->if_start)(ifp);
 			break;
 		}
+		s = splnet();
+		rt_ifmsg(ifp);
+		splx(s);
 		break;
 	}
 	return 0;

--G6nVm6DDWH/FONJq--