setting bssid in adhoc mode

John Hay jhay at meraka.org.za
Mon Sep 22 13:25:05 UTC 2008


Hi

I'm trying out the new ath/wlan stuff in current. Should one still be
able to set the bssid in adhoc mode? We normally lock the bssid in
an adhoc network because of problems that the network split and does
not merge, if you do not do it.

What I have done is this:

# ifconfig wlan0 create wlandev ath0 wlanmode adhoc
# ifconfig wlan0 ssid ptamesh up

Up to here works well. It will scan and if it finds another node with the
same ssid, it will "lock" on that channel and use the correct bssid.

If it does not find another node with the same ssid, it will start it
own thing on channel 10. But it looks like one cannot set the bssid.

# ifconfig wlan0 bssid 02:07:ca:fe:ba:be
ifconfig: 02:07:ca:fe:ba:be: bad value

So should it work or should I do it in a different way? I saw a
wlanbssid command in the ifconfig man page, but it does not seem to
do anything. I tried it like this:

# ifconfig wlan0 create wlandev ath0 wlanmode adhoc wlanbssid 02:07:ca:fe:ba:be

It did not give an error, but also did not lock the bssid.

John
-- 
John Hay -- John.Hay at meraka.csir.co.za / jhay at FreeBSD.org


More information about the freebsd-mobile mailing list