Move the speed (-t 3) option into the ifconfig line. Remove the ssid

from the wicontrol line, since it isn't needed.  Add channel number to
ifconfig line, since most people need to set this.

# this needs a little work, but is better now.
This commit is contained in:
Warner Losh 2003-01-12 04:13:31 +00:00
parent 55abf211ce
commit db8a3fbe87
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=15612

View file

@ -564,18 +564,21 @@ wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
<para>The following commands will set the card into BSS mode (turning it
into an access point):</para>
<screen>&prompt.root; <userinput>wicontrol -s "FreeBSD AP" -t 3 -n "my_net"</userinput>
&prompt.root; <userinput>ifconfig wi0 inet up ssid my_net mediaopt hostap</userinput>
<screen>&prompt.root; <userinput>wicontrol -s "FreeBSD AP""</userinput>
&prompt.root; <userinput>ifconfig wi0 inet ssid my_net channel 11 media DS/11Mbps mediaopt hostap up</userinput>
<para>The first &man.wicontrol.8; command tells FreeBSD that the name of this access point
is <literal>FreeBSD AP</literal> by using the <option>-s</option> flag, to use auto rate selection at the
highest rate (11Mbps) with the <option>-t 3</option> flags, and the SSID (station ID) is set to
<literal>my_net</literal> with the <option>-n</option> flag. Check out &man.wicontrol.8; for more information.</para>
is <literal>FreeBSD AP</literal> by using the <option>-s</option> flag,
Check out &man.wicontrol.8; for more information.</para>
<para>The &man.ifconfig.8; line brings the <devicename>wi0</devicename> interface up, and sets its SSID to <literal>my_net</literal>.
This is a little redundant, but it is shown here to emphasize that you can do
these settings in either place. You will also notice a <option>mediaopt hostap</option> setting;
this setting is to tell &man.ifconfig.8; to put the interface into access point mode.</para>
this setting is to tell &man.ifconfig.8; to put the interface into access point mode.
The <option>media DS/11Mbps</option> is needed so that the <option>mediaopt hostap</option> setting will become effective.
The <option>channel 11</option> sets the 802.11b channel to use. The &man.wicontrol.7;
man page has valid channel options for your regulatory domain.
</para>
<para>Now you should have a complete functioning access point up and running. You
are encouraged to read &man.wicontrol.8;, &man.ifconfig.8;, and &man.wi.4; for further information.