Your hexadecimal key seems invalid, try with 10 hexadecimal characters.<br><br><div class="gmail_quote">2009/8/10 Manuel Sahm <span dir="ltr">&lt;<a href="mailto:Manuel.Sahm@feig.de">Manuel.Sahm@feig.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello I tried the following code to get an encrypted Ad-Hoc Connection to my PC.<br>
<br>
Without WEP Enryption all works fine, but if I swtich encryption on, no encryption is mentioned on my host PC (Windows XP)<br>
<br>
This is what I do: - Any idea what could be wrong ?<br>
<br>
Thanks very very much<br>
<br>
<br>
<br>
//Delete/Remove network interface<br>
wpa_cli -g /var/run/wpa_supplicant-global interface_remove wlan0<br>
<br>
// (Re)Add a new interface (wlan0, no configuration file, driver=wext, and enable control interface)<br>
wpa_cli -iwlan -g /var/run/wpa_supplicant-global interface_add wlan0 &quot;&quot; wext /var/run/wpa_supplicant<br>
// Ad-Hoc Mode<br>
wpa_cli ap_scan 2<br>
<br>
//Configure a network...<br>
wpa_cli -iwlan0 add_network<br>
<br>
// 64-bit WEP-Key<br>
wpa_cli -iwlan0 set_network 0 wep_key0 ABCDEFABCDEFABCD<br>
wpa_cli -iwlan0 set_network 0 wep_tx_keyidx 0<br>
wpa_cli -iwlan0 set_network 0 key_mgmt NONE<br>
<br>
// Set SSID<br>
wpa_cli -iwlan0 set_network 0 ssid &#39;&quot;linksys&quot;&#39;<br>
<br>
// set the Ad-Hoc network mode<br>
wpa_cli -iwlan0 set_network 0 mode 1<br>
<br>
// set the channel<br>
wpa_cli -iwlan0 set_network 0 frequency 2412<br>
<br>
//Enable Configured WLAN Network<br>
&quot;wpa_cli -iwlan0 enable_network 0<br>
<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards.<br>