<?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>my tech blog &#187; emergency</title>
	<atom:link href="http://billauer.se/blog/category/emergency/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 12 Mar 2026 11:36:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Manual wireless setting on Fedora 12</title>
		<link>https://billauer.se/blog/2017/01/iwconfig-wlan-wireless/</link>
		<comments>https://billauer.se/blog/2017/01/iwconfig-wlan-wireless/#comments</comments>
		<pubDate>Fri, 27 Jan 2017 07:57:00 +0000</pubDate>
		<dc:creator>eli</dc:creator>
				<category><![CDATA[emergency]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Notes to self]]></category>

		<guid isPermaLink="false">https://billauer.se/blog/?p=5059</guid>
		<description><![CDATA[What&#8217;s this? This is a note for myself, in case I need a quick replacement for my ADSL connection on the desktop computer (Fedora 12, and oldie). It may seem paradoxical that I&#8217;ll read this in order to access the internet (&#8230;), but this is probably where I would look first. With my cellphone, which [...]]]></description>
			<content:encoded><![CDATA[<h3>What&#8217;s this?</h3>
<p>This is a note for myself, in case I need a quick replacement for my ADSL connection on the desktop computer (Fedora 12, and oldie). It may seem paradoxical that I&#8217;ll read this in order to access the internet (&#8230;), but this is probably where I would look first. With my cellphone, which is also the temporary access point, that is.</p>
<p>In short, there&#8217;s a lot of stuff here particular to my own computer.</p>
<p>I&#8217;m using the small TP-LINK dongle (TL-WN725N), which is usually doing nothing in particular.</p>
<h3>Notes to self</h3>
<ul>
<li><span style="color: #ff0000;"><strong>This post is also on your local blog</strong></span> (copy-paste commands&#8230;)</li>
<li>wlan1 is the Access Point dongle (maybe use it instead&#8230;?)</li>
<li>Put the phone in the corner next to the door (that&#8217;s where I get a 4G connection) once the connection is established&#8230;</li>
<li>&#8230; but not before that, so you won&#8217;t run back and forth</li>
</ul>
<h3>Setting up the interface</h3>
<pre># service ADSL off
# /etc/sysconfig/network-scripts/firewall-wlan0
# ifconfig wlan0 up
# wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCSIWAP]: Operation not permitted
# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:34:DA:3D:F8:F5
                    ESSID:"MYPHONE"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:108 Mb/s
                    Extra:rsn_ie =30140100000fac040100000fac040100000fac020c00
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD5C0050F204104A0001101044000102103B00010310470010A7FED45DE0455F5DB64A55553EB96669102100012010230001201024000120104200012010540008000000000000000010110001201008000221481049000600372A000120
                    Quality:0  Signal level:0  Noise level:0

# iwconfig wlan0 essid MYPHONE
# dhclient wlan0 &amp;</pre>
<p>Note that wpa_supplicant complained, and it was still fine. Use the -d or -dd flags for some debugging info.</p>
<p>It seems like the iwconfig is redundant, as wpa_supplicant handles this, thanks to the &#8220;scan_ssid=1&#8243; attribute in the config entry (?). The DHCP client isn&#8217;t redundant, because the routing table isn&#8217;t set correctly without it (making wlan0 the default gateway)</p>
<h3>Shutting down</h3>
<ul>
<li>Kill wpa_supplicant (it was run as a daemon)</li>
<li>Kill DHCP client:
<pre># dhclient -r</pre>
</li>
<li>Restart networking
<pre># service network restart
# service firewall restart
# service ADSL start</pre>
</li>
</ul>
<h3>WPA supplicant config file</h3>
<p>The WPA supplicant scans wlan0 and finds matching SSIDs. If such is found, it sends the password. Looks like it handles the association.</p>
<p>/etc/wpa_supplicant/wpa_supplicant.conf should read:</p>
<pre>ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
  ssid="MYPHONE"
  scan_ssid=1
  key_mgmt=WPA-PSK
  psk="MYPASSWORD"
}</pre>
<p>(it&#8217;s already this way)</p>
]]></content:encoded>
			<wfw:commentRss>https://billauer.se/blog/2017/01/iwconfig-wlan-wireless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
