After some more tests I have found something strange.<br><br>If the first computer use the WEP configuration it works.<br><br>When I use the WPA configuration it dooes'nt works :<br><br>0 ADD_NETWORK<br>0 SET_NETWORK 3 ssid "test24"<br>
0 SET_NETWORK 3 proto WPA<br>0 SET_NETWORK 3 key_mgmt WPA-NONE<br>0 SET_NETWORK 3 pairwise NONE<br>0 SET_NETWORK 3 group TKIP<br>0 SET_NETWORK 3 psk "aaaaaaaaaa"<br>0 SET_NETWORK 3 mode 1<br>0 AP_SCAN 2<br>0 SELECT_NETWORK 3<br>
0 REASSOCIATE<br>0 RECONNECT<br><br>> STATUS<br>bssid=be:1f:c5:58:68:07<br>ssid=test24<br>id=3<br>pairwise_cipher=NONE<br>group_cipher=TKIP<br>key_mgmt=UNKNOWN (what ??)<br>wpa_state=COMPLETED<br>ip_address=192.168.0.1<br>
<br><br>the second computer detect: [WEP][IBSS]<br><br>It seems WPA-NONE doesn't works.<br><br><br><br><div class="gmail_quote">2009/8/8 Atton Jonathan <span dir="ltr"><<a href="mailto:jonathan.atton@gmail.com" target="_blank">jonathan.atton@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thank you for your help, I didn't know "IBSS".<br><br>I have followed these instructions from the documentation : <br>
<pre>><i> > # Note: IBSS can only be used with key_mgmt NONE (plaintext and static WEP)<br>
</i>><i> > # and key_mgmt=WPA-NONE (fixed group key TKIP/CCMP). In addition, ap_scan has<br></i>><i> > # to be set to 2 for IBSS. WPA-None requires following network block options:<br></i>><i> > # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not<br>
</i>><i> > # both), and psk must also be set.<br></i><br></pre><div style="text-align: left;">I can create, detect and connect my 2 computers with : key_mgmt NONE and WPA-NONE.<br></div><br>It seems than the network can be protected by a key when we use WPA-NONE, we can't create an ad-hoc network with a classic WPA configuration ?<div>
<div></div><div><br>
<br><div class="gmail_quote">2009/8/6 Pujeri, Prabhakar <span dir="ltr"><<a href="mailto:c_ppujer@qualcomm.com" target="_blank">c_ppujer@qualcomm.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I guess its wifi network and both are stations in your two
computers </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Then you can connect through IBSS </span><span style="font-size: 11pt; color: red;">Ad hoc</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"> mode
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">If its IBSS then try this </span></p>
<p><span style="font-size: 10pt; color: navy;">Please try to use the following wpa_supplicant configuaration to
check if association is o.k.</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">Here is several sample of configuration file for
wpa_supplicant.conf.</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">1. Set the WPA supplicant in IBSS mode and WPA supplicant
scan the peer IBSS station.</span></p>
<p><span style="font-size: 10pt; color: navy;">ctrl_interface=/var/run/wpa_supplicant</span></p>
<p><span style="font-size: 10pt; color: navy;">update_config=1</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">network={</span></p>
<p><span style="font-size: 10pt; color: navy;"> ssid="ibss"</span></p>
<p><span style="font-size: 10pt; color: navy;"> proto=WPA</span></p>
<p><span style="font-size: 10pt; color: navy;"> key_mgmt=NONE</span></p>
<p><span style="font-size: 10pt; color: navy;"> mode=1</span></p>
<p><span style="font-size: 10pt; color: navy;">}</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">2. Set the WPA supplicant in IBSS mode and wireless driver scan the
peer IBSS station. </span></p>
<p><span style="font-size: 10pt; color: navy;">ctrl_interface=/var/run/wpa_supplicant</span></p>
<p><span style="font-size: 10pt; color: navy;">update_config=1</span></p>
<p><span style="font-size: 10pt; color: navy;">ap_scan=2</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">network={</span></p>
<p><span style="font-size: 10pt; color: navy;"> ssid="ibss"</span></p>
<p><span style="font-size: 10pt; color: navy;"> proto=WPA</span></p>
<p><span style="font-size: 10pt; color: navy;"> key_mgmt=NONE</span></p>
<p><span style="font-size: 10pt; color: navy;"> mode=1</span></p>
<p><span style="font-size: 10pt; color: navy;">}</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">3. Set the WPA supplicant in IBSS mode, WPA supplicant scan
the peer IBSS station and set the IBSS channehl to 1.</span></p>
<p><span style="font-size: 10pt; color: navy;">ctrl_interface=/var/run/wpa_supplicant</span></p>
<p><span style="font-size: 10pt; color: navy;">update_config=1</span></p>
<p><span style="font-size: 10pt; color: navy;"> </span></p>
<p><span style="font-size: 10pt; color: navy;">network={</span></p>
<p><span style="font-size: 10pt; color: navy;"> ssid="ibss"</span></p>
<p><span style="font-size: 10pt; color: navy;"> proto=WPA</span></p>
<p><span style="font-size: 10pt; color: navy;"> key_mgmt=NONE</span></p>
<p><span style="font-size: 10pt; color: navy;"> mode=1</span></p>
<p><span style="font-size: 10pt; color: navy;"> frequency=2412</span></p>
<p><span style="font-size: 10pt; color: navy;">}</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Atton Jonathan
[mailto:<a href="mailto:jonathan.atton@gmail.com" target="_blank">jonathan.atton@gmail.com</a>] <br>
<b>Sent:</b> Thursday, August 06, 2009 9:57 AM<br>
<b>To:</b> Pujeri, Prabhakar<br>
<b>Cc:</b> <a href="mailto:hostap@lists.shmoo.com" target="_blank">hostap@lists.shmoo.com</a><div><br>
<b>Subject:</b> Re: Create a new network</div></span></p>
</div><div>
<p> </p>
<p style="margin-bottom: 12pt;">hum i m not sure you understand
what I try to do.<br>
<br>
I only have 2 computers and I want link them with a wireless WPA network. I
need to create the network on my first computer, the second computer is
supposed to detect the network. But I don't know how to create a new network,
when I use a classic wpa_supplicant conf, the daemon try to connect to the
network but the network does'nt exists as I try to create it.<br>
<br>
Can we create a new network with wpa_supplicant ? As a router does.</p>
<div>
<p>2009/8/6 Pujeri, Prabhakar <<a href="mailto:c_ppujer@qualcomm.com" target="_blank">c_ppujer@qualcomm.com</a>></p>
<div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">First check whether network is
available or not by this command </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Iwlist wlan0 scan </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">If wlan0 is ur wireless
interface </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">If it’s available then
send me scan result and wpa_supplicant configuration to me </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">prabhakar</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:hostap-bounces@lists.shmoo.com" target="_blank">hostap-bounces@lists.shmoo.com</a>
[mailto:<a href="mailto:hostap-bounces@lists.shmoo.com" target="_blank">hostap-bounces@lists.shmoo.com</a>]
<b>On Behalf Of </b>Atton Jonathan<br>
<b>Sent:</b> Thursday, August 06, 2009 9:09 AM<br>
<b>To:</b> <a href="mailto:hostap@lists.shmoo.com" target="_blank">hostap@lists.shmoo.com</a><br>
<b>Subject:</b> Re: Create a new network</span></p>
</div>
<div>
<div>
<p> </p>
<p style="margin-bottom: 12pt;">Anybody can help me ?</p>
<div>
<p>2009/8/3 Atton Jonathan <<a href="mailto:jonathan.atton@gmail.com" target="_blank">jonathan.atton@gmail.com</a>></p>
<p>Hello,<br>
<br>
I try to create a new network with wpa_supplicant (wp2 personnal). My first computer
is supposed to create the wireless network and my second computer have to
detect this network. <br>
Currently I have a configuration for the first computer but the network is not
created, wpa_supplicant try to connect to the network but it can't as the
network doesn't exists :/<br>
<br>
A special option is necessary to do this ?<br>
<span style="color: rgb(136, 136, 136);"><br>
-- <br>
Regards.</span></p>
</div>
<p><br>
<br clear="all">
<br>
-- <br>
Regards.</p>
</div>
</div>
</div>
</div>
</div>
<p><br>
<br clear="all">
<br>
-- <br>
Regards.</p>
</div></div>
</div>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Regards.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards.<br>