Connect to wireless Access Point according to MAC address

2009-11-26 Thread Milin
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



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Tomáš Bodžár
Why you Google for something which you can find in man page?

http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfigapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=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.


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



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Chris Bennett

Milin 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


  

try man ifconfig.

set the bssid manually, normally this is done automatically

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Tomáš Bodžár
I know. Just my fault. It was obvious from his question for what he is
looking for so I used shortcut :-)

2009/11/26 Nick Guenther kou...@gmail.com:
 2009/11/26 TomC!E! BodEC!r tomas.bod...@gmail.com:



 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).



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Nick Guenther
2009/11/26 TomC!E! BodEC!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=ifconfigapropos=0sektion=0man
path=OpenBSD+Currentarch=i386format=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).



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Milin
Thanks all very much,

the problem is then solved.

Milan



2009/11/26 TomC!E! BodEC!r tomas.bod...@gmail.com:
 I know. Just my fault. It was obvious from his question for what he is
 looking for so I used shortcut :-)

 2009/11/26 Nick Guenther kou...@gmail.com:
 2009/11/26 TomC!E! BodEC!r tomas.bod...@gmail.com:



 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).



Re: Connect to wireless Access Point according to MAC address

2009-11-26 Thread Daniel Gracia Garallar
'man ifconfig' states you can use bssid parameter to specify your 
desired bssid -automatic is the default mode-.


So you may try 'ifconfig iwn0 nwid Open bssid 00:0b:0e:33:ed:00'.

Regards,

Dani

Milin escribiC3:

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