FreeBSD Bugzilla – Attachment 160585 Details for
Bug 202784
r287197: wlan interfaces aren't brought up at boot or after removal/inserting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to devd.conf and pccard_ether to properly create 802.11 children
202784.diff (text/plain), 1.95 KB, created by
Gleb Smirnoff
on 2015-09-01 10:59:37 UTC
(
hide
)
Description:
patch to devd.conf and pccard_ether to properly create 802.11 children
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2015-09-01 10:59:37 UTC
Size:
1.95 KB
patch
obsolete
>Index: devd.conf >=================================================================== >--- devd.conf (revision 287348) >+++ devd.conf (working copy) >@@ -22,6 +22,9 @@ options { > "(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ > esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ > [0-9]+"; >+ set wifi-driver-regex >+ "(ath|bwi|bwn|ipw|iwi|iwn|malo|mwl|ral|rsu|rum|run|uath|upgt|\ >+ ural|urtw|urtwn|wi|wpi|wtap|zyd)[0-9]+"; > }; > > # Note that the attach/detach with the highest value wins, so that one can >@@ -57,18 +60,17 @@ notify 0 { > }; > > # >-# Like Ethernet devices, but separate because >-# they have a different media type. We may want >-# to exploit this later. >+# Like Ethernet devices, but separate because 802.11 require spawning >+# wlan(4) interface. > # >+attach 0 { >+ device-name "$wifi-driver-regex"; >+ action "/etc/pccard_ether $device-name startchildren"; >+}; > detach 0 { >- media-type "802.11"; >- action "/etc/pccard_ether $device-name stop"; >+ device-name "$wifi-driver-regex"; >+ action "/etc/pccard_ether $device-name stopchildren"; > }; >-attach 0 { >- media-type "802.11"; >- action "/etc/pccard_ether $device-name start"; >-}; > notify 0 { > match "system" "IFNET"; > match "type" "LINK_UP"; >Index: pccard_ether >=================================================================== >--- pccard_ether (revision 287348) >+++ pccard_ether (working copy) >@@ -17,6 +17,8 @@ stop_precmd="checkauto" > stop_cmd="pccard_ether_stop" > restart_precmd="checkauto" > restart_cmd="pccard_ether_restart" >+startchildren_cmd="pccard_ether_startchildren" >+stopchildren_cmd="pccard_ether_stopchildren" > > setup_routes() > { >@@ -114,6 +116,20 @@ pccard_ether_restart() > pccard_ether_start > } > >+pccard_ether_startchildren() >+{ >+ for child in `get_if_var $ifn wlans_IF`; do >+ /etc/rc.d/netif quietstart $child >+ done >+} >+ >+pccard_ether_stopchildren() >+{ >+ for child in `get_if_var $ifn wlans_IF`; do >+ /etc/rc.d/netif quietstop $child >+ done >+} >+ > ifn=$1 > shift > if [ -z "$*" ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202784
:
160542
|
160585
|
160632