<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Connect to specific access point by MAC?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText87419 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>You can distinguish
connections by either bssid or ssid, in your case you only need the bssid.
Just configure the networks in the wpa_supplicant configuration file. If
you change the file on the file you can send a reconfigure to the supplicant via
wpa_cli. If you want even more dynamic access, build your own program to
communicate over the control socket and establish networks on the fly without
the config file. Either way works, I prefer using the control channel if
there are lots of dynamic changes.</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Seems like you might need to get the scan results and pick
the one you want to associate so you can exclude the mac of your local
AP. I'm assuming all your SSIDs are the same. </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>One other method that might work. If you stick your local AP
information in the configuration file with bssid of your local AP in one
network config and another network config with just the SSID but with
higher priority, it shouldn't select your local one unless there are no APs in
range.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Cheers,<BR>Bruce</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
hostap-bounces+bsmith=road-inc.com@shmoo.com on behalf of William
Pettersson<BR><B>Sent:</B> Wed 7/25/2007 4:27 AM<BR><B>To:</B>
hostap@shmoo.com<BR><B>Subject:</B> Connect to specific access point by
MAC?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>First off, sorry to the list maintainer. I send this email
a few days<BR>ago from the wrong email address, and it got that "this list
is<BR>moderated email"<BR><BR>Ok, I've been tasked with setting up a number of
embedded devices to<BR>broadcast a wireless network, with a fibre backbone and a
redundant<BR>wireless link between nodes for redundancy.<BR><BR>Each "node" has
two atheros cards in it, so unless I'm mistaken, each<BR>card will simply
connect to the most powerful card it can find, which<BR>will be its mate in the
same enclosure. Even if it does connect to an<BR>external "node", I can't
have them connecting to any node as this may<BR>cause a loss<BR><BR>To get
around this, I'll need to specify which MAC address to connect to<BR>I
guess. I'm open to other ideas, but I can't think of any other
way<BR>around this.<BR><BR>Is this something that can be set up using
wpa_supplicant? I'm assuming<BR>that I cannot just "iwconfig ath1 ap
aa:bb:cc:dd:ee:ff" as<BR>wpa_supplicant will change what I
set.<BR><BR>William<BR><BR>_______________________________________________<BR>HostAP
mailing list<BR>HostAP@shmoo.com<BR><A
href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</A><BR></FONT></P></DIV>
</BODY>
</HTML>