problems making an access point w/current

Sam Leffler sam at freebsd.org
Tue Jun 10 16:15:51 UTC 2008


Dag-Erling Smørgrav wrote:
> Randy Bush <randy at psg.com> writes:
>   
>> ifconfig_wlan0="channel 11 ssid rgnet-aden wep wepkey thirteenchars weptxkey 1 mediaopt hostap up"
>> [...]
>> # ifconfig wlan0
>> wlan0:
>> flags=8d43<UP,BROADCAST,RUNNING,PROMISC,OACTIVE,SIMPLEX,MULTICAST>
>> metric 0 mtu 1500
>>         ether 00:0b:6b:83:59:25
>>         media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
>>         status: no carrier
>>         ssid rgnet-aden channel 11 (2462 Mhz 11g)
>>         country US ecm authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit
>>         txpower 19 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
>>         roam:rssi 7 roam:rate 5 protmode CTS wme burst ff dturbo bintval 0
>>     
>
> Note that it says "autoselect" instead of "hostap".  AFAIK, you have to
> specify a media and a mode before you specify a mediaopt.  Try "media
> autoselect mode 11g mediaopt hostap" instead of just "mediaopt hostap".
>
>   
The operating mode of a vap is immutable; it must be set when it's 
created by cloning the underlying ifnet.  I believe there are usage 
examples in all the wireless driver man pages.  The scripts in

src/tools/tools/net80211/scripts

also demonstrate how to setup various configurations.

    Sam



More information about the freebsd-current mailing list