Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Wifi] madwifi, wpa_supplicant et init.d/net.ath0 [Résolu]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
archange
n00b
n00b


Joined: 28 Jan 2008
Posts: 16
Location: Evry

PostPosted: Tue Mar 04, 2008 4:59 pm    Post subject: [Wifi] madwifi, wpa_supplicant et init.d/net.ath0 [Résolu] Reply with quote

bonjour,

Je viens de configurer le wifi, cela marche, j'utilise wpa supplicant et un petit coup de
Code:
wpa_supplicant -Dmadwifi -i ath0 -c /etc/wpa_supplicant/wpa_supplicant.conf
me permet de me connecter aux réseaux wifi paramétrés dans wpa_supplicant.conf.

J'ai modifié mon /etc/conf.d/net, voici les lignes qui concernent le wifi et l'interface associée ath0 :
Code:
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi -c /etc/wpa_supplicant/wpa_supplicant.conf"
modules=( "dhclient" )
config_ath0=( "dhcp" )


J'ai fait
Code:
 ln -s /etc/init.d/net.lo /etc/init.d/net.ath0


Et voici ce que j'ai lorsque je fais un
Code:
/etc/init.d/net.ath0 restart
:
Code:
 * Caching service dependencies ...                                       [ ok ]
 * Starting ath0
 *   Configuring wireless network for ath0
 *   WEP key is not set for "Mon-WIFI" - not connecting
 *   WEP key is not set for "UnAutreWifi" - not connecting
 *   Couldn't associate with any access points on ath0
 *   Failed to configure wireless for ath0


Sachant que je me connecte sans problème au réseau de essid "Mon-WIFI" lorsque je lance wpa_supplicant à la main.

Qu'en pensez-vous ?
_________________
Truth happens


Last edited by archange on Mon May 05, 2008 6:45 am; edited 1 time in total
Back to top
View user's profile Send private message
archange
n00b
n00b


Joined: 28 Jan 2008
Posts: 16
Location: Evry

PostPosted: Thu Apr 24, 2008 7:44 pm    Post subject: Reply with quote

Bon, ben finalement, je fais à la mano :D le topic est toujours ouvert.
_________________
Truth happens
Back to top
View user's profile Send private message
ryo-san
l33t
l33t


Joined: 17 Feb 2005
Posts: 729

PostPosted: Thu Apr 24, 2008 8:04 pm    Post subject: Reply with quote

salut,

Code:

modules=("wpa_supplicant")
wpa_supplicant_eth1="-Dwext"


devrait suffire puisque camarchechezmoi.com
le "-Dwext" est a modifier selon le chip wifi de ton pc , il n'y a que deux options mais j'ai vraiment la flemme d'aller chercher la deuxieme ^^
( big journée inside )
ah et le eth1 = ath0 chez toi bien sur.

@+

EDIT: bah "-Dmadwifi" , j'ai lu en diagonal :roll: , je ne met rien pour le dhcp puisque net.eth1 est vide , il se lance automatiquement.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Apr 25, 2008 2:34 pm    Post subject: Reply with quote

Peux-tu poster ton fichier /etc/wpa_supplicant/wpa_supplicant.conf s.v.p.
Back to top
View user's profile Send private message
archange
n00b
n00b


Joined: 28 Jan 2008
Posts: 16
Location: Evry

PostPosted: Sun May 04, 2008 10:07 pm    Post subject: Reply with quote

Voici mon fichier wpa_supplicant.conf :

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=1
ap_scan=1
fast_reauth=1


network={
        ssid="dante"
        # (0) scan ou non les requetes
        scan_ssid=1
        # (0) 0 Infrastructure (Managed) 1 IBSS (Ad-Hoc, p2p)
        mode=0
        proto=WPA
        bssid=00:18:39:cf:00:9f
   # (WPA-PSK WPA-EAP) encryption : WPA-PSK WPA-EAP IEEE8021X NONE WPA-NONE (pour ad-hoc)
   key_mgmt=WPA-PSK
   # (CCMP TKIP)
   pairwise=CCMP TKIP
   # (CCMP TKIP WEP104 WEP40)
   group=TKIP
   psk=########a11fde3228fcf6902f65b66a04dd5232663fea986f
   priority=5
}

network={
   disabled=0
   ssid="ensiie"
   scan_ssid=1
   mode=0
   key_mgmt=NONE
        priority=10
}

network={
   disabled=0
   ssid="Arise-OWRT"
   scan_ssid=1
   key_mgmt=WPA-EAP
   eap=TTLS
   identity="#######"
   password="######"
   anonymous_identity="anonymous"
   phase2="auth=PAP"
}

_________________
Truth happens
Back to top
View user's profile Send private message
archange
n00b
n00b


Joined: 28 Jan 2008
Posts: 16
Location: Evry

PostPosted: Sun May 04, 2008 10:20 pm    Post subject: Reply with quote

Il semblerait que le
Code:
modules=( "dhclient" )

écrase le
Code:
modules=( "wpa_supplicant" )

car en remplaçant ces deux lignes par
Code:
modules=( "dhclient" "wpa_supplicant" )


J'ai :
Code:
root@iris:init.d $ ./net.ath0 start
 * Starting ath0
 *   Starting wpa_supplicant on ath0 ...                                  [ ok ]
 *   Starting wpa_cli on ath0 ...                                         [ ok ]
 *     Backgrounding ...


Je vérifie que ça marche et je mets en résolu ou non.
_________________
Truth happens
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon May 05, 2008 1:59 am    Post subject: Reply with quote

J'ai bien hâte de voir ta réponse.
Back to top
View user's profile Send private message
archange
n00b
n00b


Joined: 28 Jan 2008
Posts: 16
Location: Evry

PostPosted: Mon May 05, 2008 6:44 am    Post subject: Reply with quote

N'ayant jamais vu un "wifi marcher", je n'en étais pas sûr, de plus, j'ai des déconnections, mais c'est une autre histoire.
Donc pas besoin d'être sacarstique !
_________________
Truth happens
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum