Make example commands working.

Reviewed by:	benjsc
This commit is contained in:
glebius 2008-09-30 14:24:03 +00:00
parent eeb206c909
commit 897af1f238

View File

@ -94,24 +94,24 @@ firmware license
Join an existing BSS network (i.e., connect to an access point): Join an existing BSS network (i.e., connect to an access point):
.Pp .Pp
.Bd -literal -offset indent .Bd -literal -offset indent
ifconfig wlan create wlandev wpi0 inet 192.168.0.20 \e ifconfig wlan0 create wlandev wpi0 inet 192.168.0.20 \e
netmask 0xffffff00 netmask 0xffffff00
.Ed .Ed
.Pp .Pp
Join a specific BSS network with network name Join a specific BSS network with network name
.Dq Li my_net : .Dq Li my_net :
.Pp .Pp
.Dl "ifconfig wlan create wlandev wpi0 ssid my_net up" .Dl "ifconfig wlan0 create wlandev wpi0 ssid my_net up"
.Pp .Pp
Join a specific BSS network with 64-bit WEP encryption: Join a specific BSS network with 64-bit WEP encryption:
.Bd -literal -offset indent .Bd -literal -offset indent
ifconfig wlan create wlandev wpi0 ssid my_net \e ifconfig wlan0 create wlandev wpi0 ssid my_net \e
wepmode on wepkey 0x1234567890 weptxkey 1 up wepmode on wepkey 0x1234567890 weptxkey 1 up
.Ed .Ed
.Pp .Pp
Join a specific BSS network with 128-bit WEP encryption: Join a specific BSS network with 128-bit WEP encryption:
.Bd -literal -offset indent .Bd -literal -offset indent
ifconfig wlan create wlandev wpi0 wlanmode adhoc ssid my_net \e ifconfig wlan0 create wlandev wpi0 wlanmode adhoc ssid my_net \e
wepmode on wepkey 0x01020304050607080910111213 weptxkey 1 wepmode on wepkey 0x01020304050607080910111213 weptxkey 1
.Ed .Ed
.Sh DIAGNOSTICS .Sh DIAGNOSTICS