Bonsoir tout le monde !
J'ai un problème avec le programme wpa_supplicant.
Je dois utiliser wpa_cli qui a besoin du bon fonctionnement de wpa_supplicant.
L'erreur en exécutant "sudo wpa_cli" : "Could not connect to wpa_supplicant".
Le démarrage manuel de wpa_supplicant me retourne les erreurs suivantes :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf rfkill: Cannot open RFKILL control device ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument
Config dhcp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 ## /etc/dhcp/dhcpd.conf subnet 192.168.2.0 netmask 255.255.255.0 { range 192.168.2.2 192.168.2.9; option domain-name-servers 192.168.1.1; option domain-name "home"; option routers 192.168.2.1; }
Config wpa_supplicant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 ## /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 # network={ # ssid="__SSID__" # key_mgmt=WPA-PSK # psk="__PASS__" # id_str="home" # }
Config hostapd
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 ## /etc/hostapd/hostapd.conf interface=wlan0 driver=rtl871xdrv ieee80211n=1 device_name=RTL8192CU ssid=__SSID__ hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=__PASS__ wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
Results of ifconfig / iwconfig
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 wlan0 Link encap:Ethernet HWaddr c0:4a:00:17:40:fd inet adr:192.168.2.1 Bcast:192.168.2.255 Masque:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 IEEE 802.11bgn ESSID:"__SSID__" Nickname:"<WIFI@REALTEK>" Mode:Master Frequency:2.412 GHz Access Point: C0:4A:00:17:40:FD Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=100/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Si quelqu'un a une idée..
Merci d'avance !
Partager