Не работает RaLink RT2561/RT61 Master Mode (hostapd)
Не получается поднять точку доступа в Master Mode на D-Link DWA-510 (по lspci RaLink RT2561/RT61 rev B 802.11g).
Ядро gentoo-sources-2.6.30-r4, hostapd-0.6.9.
Давно я с ней мучаюсь, но результата так добиться и не удалось. На 2.6.28 ядре удалось однажды, но работало не стабильно и в конце концов перестало вообще. На данный момент по логам поднимается вроде как успешно, но ноутбук точку не видит. При этом в режиме ad-hoc (без hostapd) карта отлично работает, но хочется всё таки master mode.
Конфиги:
/etc/conf.d/net
modules_wlan0=( "!iwconfig" "!wpa_supplicant" ) config_wlan0=( "192.168.200.1/24" ) essid_wlan0="Tux" mode_wlan0="master"
/etc/hostapd/hostapd.conf
interface=wlan0 driver=nl80211 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=Tux country_code=RU hw_mode=g #channel=5 macaddr_acl=0 # bit 0 = Open System Authentication # bit 1 = Shared Key Authentication (requires WEP) auth_algs=1 own_ip_addr=192.168.200.1 # bit0 = WPA # bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled) wpa=1 wpa_passphrase=secretpass #wpa_key_mgmt=WPA-PSK WPA-EAP wpa_key_mgmt=WPA-PSK #wpa_pairwise=TKIP CCMP wpa_pairwise=TKIP # Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value) #rsn_pairwise=CCMP
Вывод /etc/init.d/net.wlan0 start
* Starting wlan0 * Bringing up wlan0 * 192.168.200.1/24 [ ok ]
Вывод hostapd -dd hostapd.my
Configuration file: hostapd.my ctrl_interface_group=0 Opening raw packet socket for ifindex -1209843344 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf nl80211: Added 802.11b mode based on 802.11g information Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=14 dBm Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=14 dBm Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=14 dBm RATE[0] rate=10 flags=0x2 RATE[1] rate=20 flags=0x6 RATE[2] rate=55 flags=0x6 RATE[3] rate=110 flags=0x6 RATE[4] rate=60 flags=0x0 RATE[5] rate=90 flags=0x0 RATE[6] rate=120 flags=0x0 RATE[7] rate=180 flags=0x0 RATE[8] rate=240 flags=0x0 RATE[9] rate=360 flags=0x0 RATE[10] rate=480 flags=0x0 RATE[11] rate=540 flags=0x0 Passive scanning not supported Flushing old station entries Deauthenticate all stations Using interface wlan0 with hwaddr 00:21:91:82:61:2b and ssid 'Tux' SSID - hexdump_ascii(len=3): 54 75 78 Tux PSK (ASCII passphrase) - hexdump_ascii(len=10): 73 65 63 72 65 74 70 61 73 73 secretpass PSK (from passphrase) - hexdump(len=32): 1f a9 c0 65 c9 6e 47 97 93 1a 6d 33 20 c4 18 02 56 de c7 7b ab 5e 29 1d bd af a8 3e 77 cd 53 3b WPA: group state machine entering state GTK_INIT (VLAN-ID 0) GMK - hexdump(len=32): [REMOVED] GTK - hexdump(len=32): [REMOVED] WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0) wlan0: Setup of interface done.
Вывод iwconfig
wmaster0 no wireless extensions. wlan0 IEEE 802.11bg Mode:Master Frequency:2.422 GHz Tx-Power=off Retry min limit:7 RTS thr:off Fragment thr:off Encryption key:23C1-4E2F-FA9F-0581-1D17-7BD1-9B99-B8BE-7CCF-E98E-20EB-6848-E286-5234-12DA-5D45 [2] 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 mon.wlan0 IEEE 802.11bg Mode:Monitor Frequency:2.422 GHz Tx-Power=off Retry min limit:7 RTS thr:off Fragment thr:off 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
Вывод ifconfig
mon.wlan0 Link encap:UNSPEC HWaddr 00-21-91-82-61-2B-00-00-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 00:21:91:82:61:2b inet addr:192.168.200.1 Bcast:192.168.200.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:131586 errors:0 dropped:0 overruns:0 frame:0 TX packets:185347 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17445494 (16.6 MiB) TX bytes:194822067 (185.7 MiB) wmaster0 Link encap:UNSPEC HWaddr 00-21-91-82-61-2B-00-00-00-00-00-00-00-00-00-00 UP RUNNING MTU:0 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Вывод dmesg
wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge) cfg80211: Calling CRDA for country: RU cfg80211: Regulatory domain changed to country: RU (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
/etc/conf.d/net с которым всё работает в режиме ad-hoc
config_wlan0=( "192.168.200.1/24" ) mode_wlan0="ad-hoc" essid_wlan0="Tux" key_Tux="s:password enc open"
Конфиги ядра не привожу, там вроде всё что нужно включено.
- Для комментирования войдите или зарегистрируйтесь