2009/11/26 TomC!E! BodE>C!r <tomas.bod...@gmail.com>: > On Thu, Nov 26, 2009 at 12:27 PM, Milin <merlyn...@gmail.com> wrote: >> Hi all, >> >> I'd like to connect to the wireless AP according to its MAC address. >> For example there are two wireless AP >> >> nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime >> nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime >> >> and I'd like to connect to the second one (00:0b:0e:33:ed:00). With >> ifconfig iwn0 nwid Open up it connects to the first one. >> >> I have googled, but haven't found anything useful. >> I'm using OpenBSD 4.6 and wireless NIC is iwn0. >> >> Thanks a lot, >> >> Milan >> >> > > > > -- > http://www.openbsd.org/lyrics.html > >
> Why you Google for something which you can find in man page? > > http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&apropos=0&sektion=0&man path=OpenBSD+Current&arch=i386&format=html > > from this man page : > > bssid bssid > Set the desired BSSID for IEEE 802.11-based wireless network in- > terfaces. > > -bssid Unset the desired BSSID for IEEE 802.11-based wireless network > interfaces. The interface will automatically select a BSSID in > this mode, which is the default. > > Also, the BSSID is not the MAC. It looks like a MAC but it's a wifi-specific thing (you can have multiple APs on the same BSSID; that's how you make a wifi cloud).