iwl3945 kernel 2.6.25-gentoo-r6 [РЕШЕНО для 2.6.28 и выше]
alex000090 18 июля, 2008 - 19:06
Здравствуйте!
Установил на ноутбук ASUS F7Sr Gentoo 2008.0-r1. Хочу настроить беспроводную сеть.
Собрал модулями iwl3945 и mac80211. Пытаюсь настроить работу через wpa_supplicant (WPA-PSK/TKIP), но не понимаю, как заставить его работать с драйвером. Не понимаю, что писать в /etc/conf.d/net. Помогите пожалуйста...
»
- Для комментирования войдите или зарегистрируйтесь
У меня
У меня так:
/etc/conf.d/net:
wpa_supplicant_wlan0="-Dwext"
config_wlan0="dhcp"
######################
# Так написано в http://gentoo-wiki.com/HARDWARE_ipw3945
dhcpcd_wlan0="-t 5 -A"
######################
dhcp_wlan0="release nodns nontp nonis"
##########################
/etc/wpa_supplicant/wpa_supplicant.conf
update_config=1
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
eapol_version=2
network={
key_mgmt=NONE
# priority=-9999999
priority=2
}
network={"
ssid="Ha0s_WiFi"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
#psk="
psk=75aa433613489cfa7ed8ee3e5543375f428c05bd
}
P.S. Ну и конечно
man wpa_supplicant
man wpa_supplicant.conf
:)
Палишь psk ключ ;)
Палишь psk ключ ;)
ща поедем все
ща поедем все дружно искать где Lupo Alberto живет ))
опачки гомель =)
опачки гомель, правда долго искать :(
товарищи из
товарищи из гомеля СРОЧНО подключаемся к поиску ))
Не палю :)
Ай-ай-ай, такой большой, а в сказки веришь :)
P. S. Ключ изменён :)
Может
Может кто-нибудь попробовать соединиться к точке wpa-psk ( aes) mode wds+ap и кинуть конфиг?
у меня сыпется такое
# wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Trying to associate with SSID 'ouch'
конфиг
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=2
update_config=0
network={
bssid=00:19:5B:XX:XX:XX
ssid="ouch"
psk="XXXXXXXXXXXXX"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
priority=1
}
ядро 2.6.24-tuxonice-r9
Можно увидеть
Можно увидеть вывод ifconfig.
Попробуйте запустить
# wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -d(или даже -dd)
# wpa_supplicant -Dwext
# wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
ap_scan=2
update_config=0
Line: 6 - start of a new network block
BSSID - hexdump(len=6): 00 19 5b XX XX XX
ssid - hexdump_ascii(len=4):
6f 75 63 68 ouch
PSK (ASCII passphrase) - hexdump_ascii(len=13): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x10
group: 0x10
priority=1 (0x1)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 17 - start of a new network block
key_mgmt: 0x4
priority=2 (0x2)
disabled=1 (0x1)
Priority group 2
id=1 ssid=''
Priority group 1
id=0 ssid='ouch'
Initializing interface (2) 'eth1'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:19:d2:XX:XX:XX
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
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Setting scan request: 0 sec 100000 usec
ctrl_interface_group=0
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'ouch'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): blaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaablaaaaaaaaaaaaaaaaaaa
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 60 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])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 452 bytes of scan results (2 BSSes)
Scan results: 2
crtl+C^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x0 - wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - No keys have been configured - skip key clearing
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
ifconfig всё время стремится в down и txpower в off
Попробуй
Попробуй обновиться до 2.6.26-го ядра, у меня только с ним wifi заработал. До этого похожими ошибками сыпал.
на 26 коечто
на 26 коечто другое не пашет.. =\
Так может кто-нибудь попробовал бы выставить такие настройки и подключиться?
А у меня вот так:
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
ap_scan=1
Line: 10 - start of a new network block
ssid - hexdump_ascii(len=4):
48 6f 6d 65 Home
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x18
scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=60): [REMOVED]
priority=2 (0x2)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 2
id=0 ssid='Home'
Initializing interface (2) 'wlan0'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCSIFFLAGS: No such file or directory
Could not set interface 'wlan0' UP
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1c:bf:57:14:d6
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
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
ctrl_interface_group=0
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Failed to add interface wlan0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - No keys have been configured - skip key clearing
Ошибка сегментирования
Та же фигня :(
shur@shur /etc/init.d $ sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
ap_scan=1
Line: 10 - start of a new network block
ssid - hexdump_ascii(len=4):
73 68 75 72 shur
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
priority=1 (0x1)
Priority group 1
id=0 ssid='shur'
Initializing interface (2) 'wlan0'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:19:7e:ae:54:7d
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
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
ctrl_interface_group=0
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
Failed to add interface wlan0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
____________________________________________
while (!$success) $try ++;
ждём 28 ядро ;)
ждём 28 ядро ;)
Дрова из ядра - кака
Как пользователь такой же карточки ОЧЕНЬ, ОЧЕНЬ не советую пользоваться дровами из ядра - словами не передать, насколько они отстают от основной ветки. Про инъекцию пакетов вообще можно забыть. Так что http://linuxwireless.org/ ваш лучший друг =) а на ноуте, имхо, лучше пользоваться NetworkManager'ом, благо он уже весьма юзабелен.
Знание некоторых принципов легко возмещает незнание некоторых фактов. (с)К. Гельвеций
Включите в ядро драйвер карты
Включите в ядро драйвер карты (iwl3945) и включите необходимые модули криптографии (AES,CCM,GCM). Насчет последнего могу ошибаться, но я для верности включаю.
Ядро 2.6.28:
Ядро 2.6.29,2.6.30:
Пример /etc/conf.d/net:
Пример /etc/wpa_supplicant/wpa_supplicant.conf:
Собственно, работает)
Вероятно, поначалу, проблема была в сырости драйвера. Потом - в невнимательности к ucode.
Всем спасибо за помощь!