From owner-p4-projects@FreeBSD.ORG Thu Feb 1 06:38:26 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AC3B416A406; Thu, 1 Feb 2007 06:38:26 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87AD616A403 for ; Thu, 1 Feb 2007 06:38:26 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 77ABB13C441 for ; Thu, 1 Feb 2007 06:38:26 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l116cQ7m008238 for ; Thu, 1 Feb 2007 06:38:26 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l116cQJ5008234 for perforce@freebsd.org; Thu, 1 Feb 2007 06:38:26 GMT (envelope-from imp@freebsd.org) Date: Thu, 1 Feb 2007 06:38:26 GMT Message-Id: <200702010638.l116cQJ5008234@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 113811 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 06:38:26 -0000 http://perforce.freebsd.org/chv.cgi?CH=113811 Change 113811 by imp@imp_lighthouse on 2007/02/01 06:37:36 devd glue to automatically load crypto. # Maybe the last rev introduces a race when up/down events # happen quickly? Affected files ... .. //depot/projects/arm/src/etc/devd.conf#3 edit Differences ... ==== //depot/projects/arm/src/etc/devd.conf#3 (text+ko) ==== @@ -76,6 +76,25 @@ action "/etc/rc.d/dhclient start $subsystem"; }; +# The ieee80211 system gives us hints that it would like us to load +# certain drivers. Honor those hints and load them automatically. This +# helps for wpa_supplicant, but not for hostapd because the former retries +# a lot, and the latter doesn't. At least this makes it easier to get +# some of the more oddball crypto goo loaded automatically since there +# are issues doing it synchronously in the kernel. Far from perfect, but +# very adequate for the day. This can be removed when a better automatic +# system is in place. +#XXX Not sure this is the right format for the message, and will need to +#XXX investigate what others do. Maybe the 'type' should be 'LOAD' and +#XXX the subsystem be the module to load to match more closely what +#XXX IFNET does. +notify 10 { + match "system" "ieee80211"; + match "subsystem" "loader"; + action "echo $system $subsystem $type | logger"; + action "kldload $type"; +}; + # An entry like this might be in a different file, but is included here # as an example of how to override things. Normally 'ed50' would match # the above attach/detach stuff, but the value of 100 makes it