No subject


Mon Jun 3 00:10:54 EDT 2013


network={
        ssid="Freebox-Atelier"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        id_str="atelier"
}

# ifup wlan0
#

??? Where did the 'up' echoes go ???

# ip addr show wlan0
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
    link/ether e8:4e:06:0f:49:36 brd ff:ff:ff:ff:ff:ff
    inet 192.168.3.128/24 brd 192.168.3.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::ea4e:6ff:fe0f:4936/64 scope link
       valid_lft forever preferred_lft forever

# ifdown wlan0
atelier pre-down
atelier going down
RTNETLINK answers: No such process
atelier post-down


===================================================
So, am I doing something obviously wrong?

Why do the 'up' echoes not show up?

What's the story about the RTNETLINK error?

Any more information I can supply?


Any pointers would be much appreciated.
Gus

--089e011608ae675e0804f183dbe7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,=
 Guys.<br><br></div>I&#39;m new to this list, as well as to wpa_supplicant.=
 Please, bear with me.<br><br><br></div>My environment:<br></div>Raspbian o=
n a Raspberry Pi.<br>
</div># cat /etc/debian_version <br>7.2<br># wpa_supplicant -v<br>wpa_suppl=
icant v1.0<br><br><br></div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>My problem:<br><br></div>Using wpa_sup=
plicant I can&#39;t get the &#39;pre-up&#39;, &#39;up&#39; and &#39;post-up=
&#39; routines to execute.<br>
<br>The &#39;pre-down&#39;, &#39;down&#39; and &#39;post-down&#39; routines=
 do get executed.<br>Only the &#39;up&#39; routines fail to execute.<br><br=
><br></div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<br>Some examples:<br>
<br></div>This *will work*, so that both the &#39;up&#39; and the &#39;down=
&#39; routines will be executed. It will of course *fail* to correctly conf=
igure the interface, since wpa_supplicant isn&#39;t there to provide any cr=
edentials.<br>
<br></div>From /etc/network/interfaces :<br>iface wlan0 inet manual<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 address=C2=A0=C2=A0 192.168.3.128<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 netmask=C2=A0=C2=A0 255.255.255.0<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 gateway=C2=A0=C2=A0 192.168.3.254<br>=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 broadcast 192.168.3.255<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-up=
=C2=A0=C2=A0=C2=A0 echo &quot;atelier pre-up&quot; || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 up=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 echo &quot;atelier up&quot; || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post=
-up=C2=A0=C2=A0 echo &quot;atelier post-up&quot; || true<br>=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 pre-down=C2=A0 echo &quot;atelier pre-down&quot; || true<br=
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 down=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo &qu=
ot;atelier going down&quot; || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-down echo &quot;atelier post-down&quot;=
 || true<br><br># ifup wlan0<br>atelier pre-up<br>atelier up<br>atelier pos=
t-up<br><br># ip addr show wlan0<br>3: wlan0: &lt;NO-CARRIER,BROADCAST,MULT=
ICAST,UP&gt; mtu 1500 qdisc mq state DOWN qlen 1000<br>
=C2=A0=C2=A0=C2=A0 link/ether e8:4e:06:0f:49:36 brd ff:ff:ff:ff:ff:ff<br><b=
r># ifdown wlan0<br>atelier pre-down<br>atelier going down<br>RTNETLINK ans=
wers: No such process<br>atelier post-down<br><br></div><div>??? I wonder a=
bout the RTNETLINK stuff, but at least it *works*. ???<br>
</div><div><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D<br></div>Now, let&#39;s change so that wpa_supplicant is=
 involved:<br><br>This *will* correctly configure the interface, since wpa_=
supplicant can provide the credentials.<br>
</div><div>But it will *not* execute the &#39;up&#39; routines.<br></div><d=
iv><br><br>From /etc/network/interfaces :<br>iface wlan0 inet manual<br>=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 wpa-roam /etc/wpa_supplicant/wpa-roam.conf<br><=
br>iface atelier inet static<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 address=C2=A0=C2=A0 192.168.3.128<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 netmask=C2=A0=C2=A0 255.255.255.0<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 gateway=C2=A0=C2=A0 192.168.3.254<br>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 broadcast 192.168.3.255<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-=
up=C2=A0=C2=A0=C2=A0 echo &quot;atelier pre-up&quot; || true<br>=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 up=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo &qu=
ot;atelier up&quot; || true<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-up=C2=A0=C2=A0 echo &quot;atelier post-=
up&quot; || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pre-down=C2=A0 echo &quo=
t;atelier pre-down&quot; || true<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 down=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo &quot;atelier going down&quot; || true<br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 post-down echo &quot;atelier post-down&quot;=
 || true<br>
<br></div>From /etc/wpa_supplicant/wpa-roam.conf=C2=A0 (psk edited) :<br>ne=
twork=3D{<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ssid=3D&quot;Freebo=
x-Atelier&quot;<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 proto=3DRSN<b=
r>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 key_mgmt=3DWPA-PSK<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pairwise=3DCCMP TKIP<br>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 group=3DCCMP TKIP<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 psk=3D&quot;xxxxxxxxxxxxxxxxxxxx=
xxxxxxxxxxxxx&quot;<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 id_str=3D=
&quot;atelier&quot;<br>}<br><br># ifup wlan0<br>#<br><div><br></div><div>??=
? Where did the &#39;up&#39; echoes go ???<br><br># ip addr show wlan0<br>
3: wlan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state U=
P qlen 1000<br>=C2=A0=C2=A0=C2=A0 link/ether e8:4e:06:0f:49:36 brd ff:ff:ff=
:ff:ff:ff<br>=C2=A0=C2=A0=C2=A0 inet <a href=3D"http://192.168.3.128/24">19=
2.168.3.128/24</a> brd 192.168.3.255 scope global wlan0<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 valid_lft forever preferred_lft foreve=
r<br>=C2=A0=C2=A0=C2=A0 inet6 fe80::ea4e:6ff:fe0f:4936/64 scope link <br>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 valid_lft forever preferred_lft foreve=
r<br><br># ifdown wlan0<br>atelier pre-down<br>atelier going down<br>RTNETL=
INK answers: No such process<br>
atelier post-down<br><br><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br></div><div>So, am I doing something ob=
viously wrong?<br><br></div><div>Why do the &#39;up&#39; echoes not show up=
?<br><br></div><div>What&#39;s the story about the RTNETLINK error?<br>
<br></div><div>Any more information I can supply?<br></div><div><br><br></d=
iv><div>Any pointers would be much appreciated.<br></div><div>Gus<br></div>=
<div><br><br></div></div>

--089e011608ae675e0804f183dbe7--


More information about the HostAP mailing list