Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Czołem,
mam kartę TL WN727N v.4.1 i chciałbym z niej zrobić AP.
W systemie wykrywalna jako
Bus 004 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Jako, że standardowe drivery nie pozwalają użyć tej karty jako AP, skompilowałem inne. Teraz karta wykrywana jest jako interfejs ra0.
Niestety, w iw list jej nie widać. Natomiast gdy próbuję ją podnieść za pomocą hostapd, otrzymuję: [
random: Trying to read entropy from /dev/random Configuration file: /etc/hostapd/hostapd.conf nl80211: Driver does not support authentication/association or connect commands nl80211: deinit ifname=ra0 disabled_11b_rates=0 nl80211: Remove monitor interface: refcount=0 netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP) nl80211: Set mode ifindex 4 iftype 2 (STATION) nl80211: Failed to set interface 4 to mode 2: -19 (No such device) nl80211 driver initialization failed. hostapd_interface_deinit_free(0x55c6a72da950) hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1 hostapd_interface_deinit(0x55c6a72da950) ra0: interface state UNINITIALIZED->DISABLED hostapd_bss_deinit: deinit bss ra0 [b]ra0: AP-DISABLED[/b] hostapd_cleanup(hapd=0x55c6a72dbc80 (ra0)) ra0: CTRL-EVENT-TERMINATING hostapd_free_hapd_data: Interface ra0 wasn't started hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit hostapd_interface_free(0x55c6a72da950) hostapd_interface_free: free hapd 0x55c6a72dbc80 hostapd_cleanup_iface(0x55c6a72da950) hostapd_cleanup_iface_partial(0x55c6a72da950) hostapd_cleanup_iface: free iface=0x55c6a72da950
hostapd.conf
interface=ra0 ssid=MyAccessPoint driver=nl80211 hw_mode=g channel=6 auth_algs=1 # to enable N-Mode # UPDATE: N-Mode is still problematic #ieee80211n=1 #wmm_enabled=1 # config for WPA security macaddr_acl=0 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=MyPassphrase123 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP
Z tego co czytałem, ta karta bez problemu może pracować jako AP. Testowałem w sumie to na Win8, za pomocą Connectify HotSpot.
Ktoś może podrzucić jakieś wskazówki?
Pzdr
Offline
Zacznij od wyniku:
dmesg | egrep -i 'firmware|ra0|ralink'
Offline
root@mail:~# dmesg | egrep -i 'firmware|ra0|ralink' [ 0.276495] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored [ 57.165454] device ra0 entered promiscuous mode root@mail:~#
Offline
Po włączeniu a nie po kilku godzinach.
Powinny się pokazać szczegóły sterownika i firmware, a wynik masz praktycznie zerowy.
Offline
root@mail:~# dmesg | egrep -i 'firmware|ra0|ralink' [ 0.276492] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored root@mail:~# uptime 21:14:06 up 3 min, 1 user, load average: 0,66, 1,16, 0,56 root@mail:~#
Offline
Nie wiem co (i jak kompilowałeś), ale ten sterownik po prostu u ciebie nie działa.
Offline
Jeśli ten sterownik nie działa, to w takim razie dlaczego podczas iwlist scan, pokazuje mi dostępne sieci WiFi?
Offline
Pokaż wynik:
iw dev
Offline
iw dev zwraca pusty wynik, pomimo tego, że ra0 jest normalnie pokazane w ifconfig
root@mail:~# iw dev root@mail:~# ifconfig ra0 ra0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 inet6 fe80::f6f2:6dff:fe11:4be5 prefixlen 64 scopeid 0x20<link> ether f4:f2:6d:11:4b:e5 txqueuelen 1000 (Ethernet) RX packets 4417 bytes 1161504 (1.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@mail:~#
Aaaale. Zrobiłem mały myk i postawiłem virtualkę gdzie karta była wpięta w momencie instalacji debiana.
Jest ona wykryta jako wlxf4f26d114be5
dmesg pokazuje
root@ap:~# dmesg | egrep -i 'firmware|wlxf4f26d114be5|ralink' [ 55.468978] mt7601u 1-1:1.0 wlxf4f26d114be5: renamed from wlan0 root@ap:~#
natomiast iw dev
root@ap:~# iw dev phy#0 Interface wlxf4f26d114be5 ifindex 3 wdev 0x1 addr f4:f2:6d:11:4b:e5 type managed txpower 0.00 dBm root@ap:~#
A dodatkowo
Wiphy phy0 max # scan SSIDs: 4 max scan IEs length: 2257 bytes max # sched scan SSIDs: 0 max # match sets: 0 max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP-128 (00-0f-ac:4) * CCMP-256 (00-0f-ac:10) * GCMP-128 (00-0f-ac:8) * GCMP-256 (00-0f-ac:9) Available Antennas: TX 0 RX 0 Supported interface modes: * managed * monitor Band 1: Capabilities: 0x17e HT20/HT40 SM Power Save disabled RX Greenfield RX HT20 SGI RX HT40 SGI RX STBC 1-stream Max AMSDU length: 3839 bytes No DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 2 usec (0x04) HT TX/RX MCS rate indexes supported: 0-7, 32 Bitrates (non-HT): * 1.0 Mbps (short preamble supported) * 2.0 Mbps (short preamble supported) * 5.5 Mbps (short preamble supported) * 11.0 Mbps (short preamble supported) * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (20.0 dBm) (no IR) * 2472 MHz [13] (20.0 dBm) (no IR) Supported commands: * new_interface * set_interface * new_key * start_ap * new_station * new_mpath * set_mesh_config * set_bss * authenticate * associate * deauthenticate * disassociate * join_ibss * join_mesh * set_tx_bitrate_mask * frame * frame_wait_cancel * set_wiphy_netns * set_channel * set_wds_peer * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * set_qos_map * connect * disconnect Supported TX frame types: * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 Supported RX frame types: * IBSS: 0x40 0xb0 0xc0 0xd0 * managed: 0x40 0xd0 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * mesh point: 0xb0 0xc0 0xd0 * P2P-client: 0x40 0xd0 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * P2P-device: 0x40 0xd0 software interface modes (can always be added): * monitor interface combinations are not supported HT Capability overrides: * MCS: ff ff ff ff ff ff ff ff ff ff * maximum A-MSDU length * supported channel width * short GI for 40 MHz * max A-MPDU length exponent * min MPDU start spacing Device supports TX status socket option. Device supports HT-IBSS. Device supports SAE with AUTHENTICATE command Device supports low priority scan. Device supports scan flush. Device supports AP scan. Device supports per-vif TX power setting Driver supports full state transitions for AP/GO clients Driver supports a userspace MPM Device supports active monitor (which will ACK incoming frames) Device supports configuring vdev MAC-addr on create.
Ostatnio edytowany przez lewyx84 (2018-07-03 23:50:16)
Offline
Time (s) | Query |
---|---|
0.00007 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00044 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.143.241.253' WHERE u.id=1 |
0.00098 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.143.241.253', 1732363843) |
0.00024 | SELECT * FROM punbb_online WHERE logged<1732363543 |
0.00071 | SELECT topic_id FROM punbb_posts WHERE id=319986 |
0.00004 | SELECT id FROM punbb_posts WHERE topic_id=30522 ORDER BY posted |
0.00061 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=30522 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00127 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=30522 ORDER BY p.id LIMIT 0,25 |
0.00091 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30522 |
Total query time: 0.00536 s |