<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.&nbsp; 
Just configure the networks in the wpa_supplicant configuration file.&nbsp; If 
you change the file on the file you can send a reconfigure to the supplicant via 
wpa_cli.&nbsp; 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.&nbsp; Either way works, I prefer using the control channel if 
there are lots of dynamic changes.</FONT></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Seems like&nbsp; you might need to get the scan results and pick 
the one you want to associate so you can exclude the mac of&nbsp; your local 
AP.&nbsp; I'm assuming all your SSIDs are the same.&nbsp; </DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>One other method that might work.&nbsp; If you stick your local AP 
information in the configuration file with bssid of your local AP in&nbsp;one 
network config&nbsp;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>&nbsp;</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.&nbsp; 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.&nbsp; 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.&nbsp; 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?&nbsp; 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>