LinuxForum.Fans
Тема

WI-FI не видим и не видит сеть (RT2070 Wireless Adapter)

Автор: rusooo 3 сообщений 3410 просмотров
#228452

WI-FI не видим и не видит сеть
1. ставил firmware-ralink
2. заменял на rmware RT28XX/RT30XX USB series (RT2870/RT2770/RT3572/RT3070) с оф. сайта Ralink

в режиме АР не видим и не видит ничего
то же самое в режиме ad-hoc

вчера спрыгнул с Ubuntu 64 на Debian squeeze 64
... так на убунте с этими же показателями всё работает

куда копать???

root@debian:~# lsusb -vvv -d 148f:2070

Показать
root@debian:~# lsusb -vvv -d 148f:2070

Bus 001 Device 006: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x148f Ralink Technology, Corp.
idProduct 0x2070 RT2070 Wireless Adapter
bcdDevice 1.01
iManufacturer 1 Ralink
iProduct 2 802.11 g WLAN
iSerial 3 1.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 67
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 450mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 7
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 5 1.0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
root@debian:~#

root@debian:~# lshw -C network

Показать
root@debian:~# lshw -C network
*-network:0 DISABLED
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: 2
bus info: pci@0000:06:02.0
logical name: eth1
version: 10
serial: 00:a1:b0:11:de:6c
size: 10MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=32 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10MB/s
resources: irq:18 ioport:b800(size=256) memory:f9b31400-f9b314ff memory:f9b00000-f9b1ffff(prefetchable)
*-network:1
description: Ethernet interface
product: 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller
vendor: Intel Corporation
physical id: 8
bus info: pci@0000:06:08.0
logical name: eth0
version: 01
serial: 00:13:20:80:23:09
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.24-k2-NAPI duplex=full firmware=N/A ip=10.9.64.159 latency=32 link=yes maxlatency=56 mingnt=8 multicast=yes port=MII speed=100MB/s
resources: irq:20 memory:f9b30000-f9b30fff ioport:b400(size=64)
*-network DISABLED
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 00:0c:43:20:e5:bc
capabilities: ethernet physical wireless
configuration: broadcast=yes ip=10.0.0.1 multicast=yes wireless=IEEE 802.11bgn
root@debian:~#

root@debian:~# ifconfig -a

Показать
root@debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:13:20:80:23:09
inet addr:10.9.64.159 Bcast:10.9.65.255 Mask:255.255.254.0
inet6 addr: fe80::213:20ff:fe80:2309/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54441 errors:0 dropped:0 overruns:0 frame:0
TX packets:31018 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36986620 (35.2 MiB) TX bytes:5435578 (5.1 MiB)

eth1 Link encap:Ethernet HWaddr 00:a1:b0:11:de:6c
BROADCAST 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)
Interrupt:18 Base address:0x400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:804 errors:0 dropped:0 overruns:0 frame:0
TX packets:804 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:637541 (622.5 KiB) TX bytes:637541 (622.5 KiB)

mon.wlan0 Link encap:UNSPEC HWaddr 00-0C-43-20-E5-BC-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)

ppp0 Link encap:Point-to-Point Protocol
inet addr:188.xxx.xxx.xxx P-t-P:195.138.80.133 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:38434 errors:0 dropped:0 overruns:0 frame:0
TX packets:30457 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:34792497 (33.1 MiB) TX bytes:4746956 (4.5 MiB)

wlan0 Link encap:Ethernet HWaddr 00:0c:43:20:e5:bc
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
BROADCAST 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)

root@debian:~#

root@debian:~# iw list

Показать
root@debian:~# iw list
Wiphy phy2
Band 1:
Capabilities: 0x23f2
HT20/HT40
Static SM Power Save
RX Greenfield
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 3-streams
Max AMSDU length: 7935 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 2 usec (0x04)
HT RX MCS rate indexes supported: 0-7, 32
TX unequal modulation not supported
HT TX Max spatial streams: 1
HT TX MCS rate indexes supported may differ
Frequencies:
* 2412 MHz [1] (27.0 dBm)
* 2417 MHz [2] (26.0 dBm)
* 2422 MHz [3] (26.0 dBm)
* 2427 MHz [4] (25.0 dBm)
* 2432 MHz [5] (24.0 dBm)
* 2437 MHz [6] (24.0 dBm)
* 2442 MHz [7] (23.0 dBm)
* 2447 MHz [8] (23.0 dBm)
* 2452 MHz [9] (22.0 dBm)
* 2457 MHz [10] (22.0 dBm)
* 2462 MHz [11] (21.0 dBm)
* 2467 MHz [12] (disabled)
* 2472 MHz [13] (disabled)
* 2484 MHz [14] (disabled)
Bitrates (non-HT):
* 1.0 Mbps
* 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
max # scan SSIDs: 4
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
Supported commands:
* new_interface
* set_interface
* new_key
* new_beacon
* new_station
* new_mpath
* set_mesh_params
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* set_wiphy_netns
* connect
* disconnect
root@debian:~#

hostapd.conf

Показать
interface=wlan0
driver=nl80211
ieee80211n=1
ieee8021x=0
wmm_enabled=1
hw_mode=g
channel=8
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
ap_max_inactivity=300
ssid=Wi-Fi
wpa_passphrase=хххххххххххх

ПРОДОЛЖУ...
сижу играюсь с /etc/modprobe.d/blacklist.conf
по очереди пробую:
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
blacklist rt2870sta
...
то ad-hoc не работает, то hostapd, то наоборот
то в ad-hoc сеть не видит, то hostapd
устанавливаю iw .. а мне - удалите aircrack-ng
устанавливаю aircrack-ng .. а мне - удалите iw
то iwlist wlan0 scan
wlan0 No scan results
то airodump-ng wlan0 ни черта не видит

P.S. риторический вопрос кто виноват, и что делать?
почему в убунту это всё работало одновременно
и этот кусок железа (размером с две SIM карты) ,выломаный из китайского недо-бука давал 6 М\байт в сек, именно мегабайт ,а не мегабит

#228491

Какое ядро?
dmesg | grep -i rt2

#228536

это в убунте
root@ubuntu:~# uname -a
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 16:18:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:~#

root@ubuntu:~# dmesg | grep -i rt2
[ 16.033491] Registered led device: rt2800usb-phy0::radio
[ 16.033599] Registered led device: rt2800usb-phy0::assoc
[ 16.033705] Registered led device: rt2800usb-phy0::quality
[ 16.034086] usbcore: registered new interface driver rt2800usb
root@ubuntu:~#

"шас" попробую загрузить дебиан
(я немного "убил его" пытаясь обновить до sid)
и напишу

в дебиане было ядро 2.6....

... "утро - вечера мудреней, ляж поспи и всЁ пройдет" :rolleyes:
привел "быстренько" систему в чувство wink

root@debian:/home/rusooo# uname -a
Linux debian 3.2.0-1-amd64 #1 SMP Sun Feb 5 15:17:15 UTC 2012 x86_64 GNU/Linux
root@debian:/home/rusooo# dmesg | grep -i rt2
[ 8.553577] Registered led device: rt2800usb-phy0::radio
[ 8.553631] Registered led device: rt2800usb-phy0::assoc
[ 8.553687] Registered led device: rt2800usb-phy0::quality
[ 8.553749] usbcore: registered new interface driver rt2800usb
root@debian:/home/rusooo#

на третьем "ведре" всЁ завелось!!!
... правда соединение проверить пока не могу (нет другого девайса)
но!!! "iwlist wlan0 scan" видит всЁ!!!

[РЕШЕНО]

Войдите или зарегистрируйтесь, чтобы ответить.