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

Collapse All | Expand All

(-)etc/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";
(-)etc/pccard_ether (+17 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"
22
extra_commands="startchildren stopchildren"
20
23
21
setup_routes()
24
setup_routes()
22
{
25
{
Lines 114-119 pccard_ether_restart() Link Here
114
	pccard_ether_start
117
	pccard_ether_start
115
}
118
}
116
119
120
pccard_ether_startchildren()
121
{
122
	for child in `get_if_var $ifn wlans_IF`; do
123
		/etc/rc.d/netif quietstart $child
124
	done
125
}
126
127
pccard_ether_stopchildren()
128
{
129
	for child in `get_if_var $ifn wlans_IF`; do
130
		/etc/rc.d/netif quietstop $child
131
	done
132
}
133
117
ifn=$1
134
ifn=$1
118
shift
135
shift
119
if [ -z "$*" ]; then
136
if [ -z "$*" ]; then

Return to bug 202784