[SOLVED!]MadWifi + wpa_supplicant

Добрый день/ночь/вечер/утро!
Пытаюсь настроить поддержку беспроводной сети (я - клиент) с WPA1 шифрованием
Поставил wpa_supplicant-0.6.4 и madwifi-ng-tools-0.9.4
Список сетей получаю
Соединиться не могу

iwconfig

wlan0     IEEE 802.11bg  ESSID:"dlinkfr"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wpa_supplicant -d madwifi -i wlan0 -c /etc/wpa_supplicant.conf

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
ap_scan=1
Priority group 5
   id=0 ssid='dlinkfr'
Initializing interface (2) 'wlan0'
Interface wlan0 set UP - waiting a second for the driver to complete initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:e7:43:6b:cc
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
ctrl_interface_group=0
Added interface wlan0
Ignore event for foreign ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=16
Received 635 bytes of scan results (2 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1e:58:81:9d:df ssid='dlinkfr' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP 00:1e:58:81:9d:df ssid='dlinkfr'
Try to find non-WPA AP
Trying to associate with 00:1e:58:81:9d:df (SSID='dlinkfr' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: DISCONNECTED -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8c02 len=195
Association info event
req_ies - hexdump(len=49): 00 07 64 6c 69 6e 6b 66 72 01 08 02 04 0b 16 0c 12 18 24 32 04 30 48 60 6c dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
resp_ies - hexdump(len=27): 01 08 82 84 8b 0c 12 96 18 24 32 04 30 48 60 6c dd 09 00 03 7f 01 01 00 00 ff 7f
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:1e:58:81:9d:df
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:1e:58:81:9d:df
No keys have been configured - skip key clearing
Associated with 00:1e:58:81:9d:df
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RX EAPOL from 00:1e:58:81:9d:df
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): 6a 55 a1 8b 39 cb f5 73 87 cb 3f 1d 2a 1d 1f 51 fe 18 54 1e 32 71 c6 76 17 3a 1c e2 5b 2a 22 13
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:1e:58:81:9d:df (ver=1)
WPA: Renewed SNonce - hexdump(len=32): d6 75 76 c8 8e 8c df ba 7f 7e 55 ed 7f 81 5a fb 29 ea e9 5b 5c b3 0e be b1 62 c2 8f 18 7a 92 85
WPA: PTK derivation - A1=00:18:e7:43:6b:cc A2=00:1e:58:81:9d:df
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:1e:58:81:9d:df
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): 6a 55 a1 8b 39 cb f5 73 87 cb 3f 1d 2a 1d 1f 51 fe 18 54 1e 32 71 c6 76 17 3a 1c e2 5b 2a 22 13
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 2b 67 d0 6f 26 86 6d d9 07 d0 d4 5e d7 49 15 72
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:1e:58:81:9d:df (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 00:1e:58:81:9d:df
IEEE 802.1X RX: version=1 type=3 length=127
  EAPOL-Key type=254
  key_info 0x3a1 (ver=1 keyidx=2 rsvd=0 Group Ack MIC Secure)
  key_length=32 key_data_length=32
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03
  key_nonce - hexdump(len=32): 6a 55 a1 8b 39 cb f5 73 87 cb 3f 1d 2a 1d 1f 51 fe 18 54 1e 32 71 c6 76 17 3a 1c e2 5b 2a 22 0f
  key_iv - hexdump(len=16): fe 18 54 1e 32 71 c6 76 17 3a 1c e2 5b 2a 22 14
  key_rsc - hexdump(len=8): 02 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): ca 17 9b 70 13 d8 79 d8 5a c6 b1 e3 c4 d9 b1 c2
WPA: RX message 1 of Group Key Handshake from 00:1e:58:81:9d:df (ver=1)
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=2 tx=0 len=32).
WPA: RSC - hexdump(len=6): 02 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=2 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with 00:1e:58:81:9d:df [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:1e:58:81:9d:df completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: COMPLETED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 1->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_deauthenticate
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

wpa_supplicant.conf

# УМЕДХАЭХА УФТПЛХ ОЕМШЪС ЙЪНЕОСФШ, ЙОБЮЕ РТПЗТБННБ ОЕ УНПЦЕФ ТБВПФБФШ
ctrl_interface=/var/run/wpa_supplicant

# ПЗТБОЙЮЙН ДПУФХР Л ОБУФТПКЛБН WPA ФПМШЛП ДМС root
ctrl_interface_group=0

# РХУФШ wpa_supplicant ЪБВПФЙФУС П УЛБОЙТПЧБОЙЙ Й ЧЩВПТЕ ФПЮЛЙ ДПУФХРБ
ap_scan=1

#drivers="-d madwifi"
#interfaces="-i wlan0"

# РТПУФПК УМХЮБК: WPA-PSK, УПЗМБУПЧБООЩК ЛМАЮ - ФЕЛУФПЧБС УФТПЛБ,
# РТЙОЙНБФШ МАВПК ДПРХУФЙНЩК ЫЙЖТ
network={
  ssid="dlinkfr"
  psk="MY_SECRET_PASSWORD"
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=TKIP
  group=TKIP
  # ЮЕН ЧЩЫЕ РТЙПТЙФЕФ, ФЕН УЛПТЕЕ ЧЩВПТ
  priority=5
}

epm -qa

udev-115-r1
e2fsprogs-1.40.8
iputils-20070202
openssh-4.7_p1-r6
wget-1.10.2
dhcpcd-4.0.7
rsync-2.6.9-r6
mailbase-1
grub-0.97-r6
wireless-tools-29
wpa_supplicant-0.6.4
madwifi-ng-tools-0.9.4
lzma-utils-4.32.7
cpio-2.9-r1
gzip-1.3.12
tar-1.19
bzip2-1.0.5
emul-linux-x86-baselibs-20080316
ssmtp-2.62-r4
pycrypto-2.0.1-r6
epm-1.33
ca-certificates-20070303-r1
pax-utils-0.1.19
bash-3.2_p17-r1
PodParser-1.35
Test-Harness-2.64
linux-headers-2.6.23-r3
gentoo-sources-2.6.28-r3
gentoo-sources-2.6.27-r8
db-4.5.20_p2
gdbm-1.8.3-r3
com_err-1.40.8
glibc-2.6.1
ss-1.40.8
gpm-1.20.1-r6
timezone-data-2007k
ncurses-5.6-r2
zlib-1.2.3-r1
cracklib-2.8.10
pam-0.99.9.0
readline-5.2_p7
db-4.3.29-r2
eselect-news-20080320
perl-cleaner-1.04.3
python-updater-0.2
syslog-ng-2.0.9
eselect-1.0.11-r1
shadow-4.0.18.1-r1
busybox-1.8.2
man-pages-2.76
sandbox-1.2.18.1-r2
util-linux-2.13.1.1
findutils-4.3.11
slocate-3.1-r1
groff-1.19.2-r1
grep-2.5.1a-r1
attr-2.4.39
portage-2.1.6.7
baselayout-1.12.11.1
texinfo-4.8-r5
which-2.16
gawk-3.1.5-r5
tcp-wrappers-7.6-r8
file-4.21-r1
module-init-tools-3.4
man-1.6e-r3
acl-2.2.45
pciutils-3.0.2
diffutils-2.8.7-r2
coreutils-6.10-r1
kbd-1.13-r1
net-tools-1.60-r13
sysvinit-2.86-r10
sed-4.1.5
less-416
binutils-config-1.9-r4
flex-2.5.33-r3
bison-2.3
libperl-5.8.8-r1
binutils-2.18-r1
gcc-4.1.2
autoconf-wrapper-4-r3
automake-wrapper-3-r1
automake-1.10.1
patch-2.5.9
autoconf-2.61-r1
gnuconfig-20070724
make-3.81
gcc-config-1.4.0-r4
libtool-1.5.24
m4-1.4.11
gettext-0.17
python-2.4.4-r13
perl-5.8.8-r5
cronbase-0.3.2-r1
psmisc-22.5-r2
procps-3.2.7
vixie-cron-4.1-r10
libxml2-2.6.30-r1
popt-1.10.7
openssl-0.9.8g-r2
gmp-4.2.2
glib-2.16.6
mpfr-2.2.1_p5
eventlog-0.2.9
expat-2.0.1
nano-2.0.6
pkgconfig-0.23

Что я не так сделал?
Извините за длинный листинг :(

Разобрался Проблема была с

Разобрался
Проблема была с dhcpcd
В вывод wpa_supplicant лучше отправлять в dev/null
ибо консоль он не отдает

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".