diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-02-14 07:40:43 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-02-14 07:40:43 +0000 |
commit | f6b44f2e225858fe41e2ba0a24fc8db62615fabc (patch) | |
tree | 3767223f16183562ff872d892d4f936748f10fb3 /share/man/man4/iwn.4 | |
parent | fdcee7929c4e2374d330d78a6ca7b3cc56bc22ee (diff) |
rework EXAMPLES somewhat, and remove the obsolete NONE NONE NONE dhcp
stuff; ok krw
Diffstat (limited to 'share/man/man4/iwn.4')
-rw-r--r-- | share/man/man4/iwn.4 | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/share/man/man4/iwn.4 b/share/man/man4/iwn.4 index b005b5a7728..727b8195fa4 100644 --- a/share/man/man4/iwn.4 +++ b/share/man/man4/iwn.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: iwn.4,v 1.35 2012/09/17 11:04:24 sthen Exp $ +.\" $OpenBSD: iwn.4,v 1.36 2013/02/14 07:40:42 jmc Exp $ .\" .\" Copyright (c) 2007,2008 .\" Damien Bergamini <damien.bergamini@free.fr>. All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 17 2012 $ +.Dd $Mdocdate: February 14 2013 $ .Dt IWN 4 .Os .Sh NAME @@ -132,28 +132,21 @@ users have to download these files on their own. A prepackaged version of the firmware can be installed using .Xr fw_update 1 . .Sh EXAMPLES -The following -.Xr hostname.if 5 -example configures iwn0 to join whatever network is available on boot, -using WEP key -.Dq 0x1deadbeef1 , -channel 11, obtaining an IP address using DHCP: -.Bd -literal -offset indent -dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11 -.Ed +The following example scans for available networks: .Pp -Configure iwn0 to join network -.Dq my_net -using WPA with passphrase -.Dq my_passphrase : -.Bd -literal -offset indent -# ifconfig iwn0 nwid my_net wpakey my_passphrase -.Ed +.Dl # ifconfig iwn0 scan .Pp -Join an existing BSS network, -.Dq my_net : +The following +.Xr hostname.if 5 +example configures iwn0 to join network +.Dq mynwid , +using WPA key +.Dq mywpakey , +obtaining an IP address using DHCP: .Bd -literal -offset indent -# ifconfig iwn0 192.168.1.1 netmask 0xffffff00 nwid my_net +nwid mynwid +wpakey mywpakey +dhcp .Ed .Sh DIAGNOSTICS .Bl -diag |