<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>syn.theti.ca &#187; wpa_supplicant</title>
	<atom:link href="http://syn.theti.ca/category/wpa_supplicant/feed/" rel="self" type="application/rss+xml" />
	<link>http://syn.theti.ca</link>
	<description>debian, eeepc, kids &#38; f/oss software</description>
	<lastBuildDate>Tue, 25 May 2010 11:50:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fr-eee-dom: roaming on the bus with wpa_supplicant</title>
		<link>http://syn.theti.ca/2007/12/25/fr-eee-dom-roaming-on-the-bus-with-wpa_supplicant/</link>
		<comments>http://syn.theti.ca/2007/12/25/fr-eee-dom-roaming-on-the-bus-with-wpa_supplicant/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 14:36:00 +0000</pubDate>
		<dc:creator>Ben Armstrong</dc:creator>
				<category><![CDATA[bus]]></category>
		<category><![CDATA[commute]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[roaming]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wpa_supplicant]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As I wrote earlier, I bought an Eee PC to use on the bus. Initially, I only used it offline to do some Debian packaging and blogging, but I soon discovered that I could do a few things online on the many open networks on my daily commute. While the connections are normally brief in [...]]]></description>
			<content:encoded><![CDATA[<p>As I wrote earlier, I <a href="http://syn.theti.ca/articles/2007/11/09/debian-eeepc-the-ideal-mobile-text-editing-device-realized">bought an Eee PC to use on the bus</a>. Initially, I only used it offline to do some Debian packaging and blogging, but I soon discovered that I could do a few things online on the many open networks on my daily commute.  While the connections are normally brief in good traffic conditions, even a few seconds here and there is enough to participate in irc discussions.</p>
<p>Manually connecting to each got old very quickly.  So, to automate those connections I settled on wpa_supplicant, (wpasupplicant is the Debian package name,) which is quite easy to set up in roaming mode, as outlined in <code>/usr/share/doc/wpasupplicant/README.modes.gz</code>.  All you need is the following in /etc/network/interfaces:</p>
<pre>
allow-hotplug ath0
iface ath0 inet manual
        wpa-driver wext
        wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
</pre>
<p>Then create your <code>/etc/wpa_supplicant/wpa_supplicant.conf</code> as follows:</p>
<pre>
ctrl_interface=/var/run/wpa_supplicant
network={
     key_mgmt=NONE
}
</pre>
<p>That&#8217;s it.  You can now roam from one open network to the next and the supplicant will connect you to each one in turn.  I have used this to reconnect to my screen session each time the bus slows down for a stop or gets stuck in traffic to carry on conversations on irc for the whole length of the commute.</p>
<p>If you also connect to networks requiring authentication, you&#8217;ll need to add a &#8220;network&#8221; clause for each network. See <code>/usr/share/doc/wpasupplicant/examples/</code> for help with that, particularly the annotated conf file, <code>README.wpa_supplicant.conf.gz</code>.</p>
<p>For finer control over the process, I use <code>sudo wpa_cli</code> so i can:</p>
<ul>
<li>keep an eye on what networks are around: <code>scan</code>, then <code>scan_results</code>,</li>
<li><code>disconnect</code> from a network once I know it&#8217;s out of range</li>
<li>and <code>reassociate</code> as needed.</li>
</ul>
<p>The only things that I haven&#8217;t figured out how to do yet are to make the process of switching from one network to the next a bit faster (it normally takes about a minute; precious seconds of online time are lost when the bus is in motion,) and to blacklist certain essids, e.g. commercial hotspots that make you pay before they&#8217;ll route your packets to the Internet.  For the first problem, I have already tweaked my dhcp settings, which helps a bit.  For the second, I tried adding network blocks for specific networks and setting them to a lower priority, but that doesn&#8217;t work because then the &#8216;catch all&#8217; open network block kicks in and picks them up anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://syn.theti.ca/2007/12/25/fr-eee-dom-roaming-on-the-bus-with-wpa_supplicant/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
