View | Details | Raw Unified | Return to bug 202784 | Differences between
and this patch

Collapse All | Expand All

(-)devd.conf (-9 / +11 lines)
Lines 22-27 options { Link Here
22
		"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
22
		"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\
23
		esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\
23
		esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\
24
		[0-9]+";
24
		[0-9]+";
25
	set wifi-driver-regex
26
		"(ath|bwi|bwn|ipw|iwi|iwn|malo|mwl|ral|rsu|rum|run|uath|upgt|\
27
		ural|urtw|urtwn|wi|wpi|wtap|zyd)[0-9]+";
25
};
28
};
26
29
27
# Note that the attach/detach with the highest value wins, so that one can
30
# Note that the attach/detach with the highest value wins, so that one can
Lines 57-74 notify 0 { Link Here
57
};
60
};
58
61
59
#
62
#
60
# Like Ethernet devices, but separate because
63
# Like Ethernet devices, but separate because 802.11 require spawning
61
# they have a different media type.  We may want
64
# wlan(4) interface.
62
# to exploit this later.
63
#
65
#
66
attach 0 {
67
	device-name "$wifi-driver-regex";
68
	action "/etc/pccard_ether $device-name startchildren";
69
};
64
detach 0 {
70
detach 0 {
65
	media-type "802.11";
71
	device-name "$wifi-driver-regex";
66
	action "/etc/pccard_ether $device-name stop";
72
	action "/etc/pccard_ether $device-name stopchildren";
67
};
73
};
68
attach 0 {
69
	media-type "802.11";
70
	action "/etc/pccard_ether $device-name start";
71
};
72
notify 0 {
74
notify 0 {
73
	match "system"		"IFNET";
75
	match "system"		"IFNET";
74
	match "type"		"LINK_UP";
76
	match "type"		"LINK_UP";
(-)pccard_ether (+16 lines)
Lines 17-22 stop_precmd="checkauto" Link Here
17
stop_cmd="pccard_ether_stop"
17
stop_cmd="pccard_ether_stop"
18
restart_precmd="checkauto"
18
restart_precmd="checkauto"
19
restart_cmd="pccard_ether_restart"
19
restart_cmd="pccard_ether_restart"
20
startchildren_cmd="pccard_ether_startchildren"
21
stopchildren_cmd="pccard_ether_stopchildren"
20
22
21
setup_routes()
23
setup_routes()
22
{
24
{
Lines 114-119 pccard_ether_restart() Link Here
114
	pccard_ether_start
116
	pccard_ether_start
115
}
117
}
116
118
119
pccard_ether_startchildren()
120
{
121
	for child in `get_if_var $ifn wlans_IF`; do
122
		/etc/rc.d/netif quietstart $child
123
	done
124
}
125
126
pccard_ether_stopchildren()
127
{
128
	for child in `get_if_var $ifn wlans_IF`; do
129
		/etc/rc.d/netif quietstop $child
130
	done
131
}
132
117
ifn=$1
133
ifn=$1
118
shift
134
shift
119
if [ -z "$*" ]; then
135
if [ -z "$*" ]; then

Return to bug 202784