1 (edytowany przez robbb 2016-04-26 10:30:45)

Temat: Problem z instalacją usb wifi

Mam problem z zainstalowaniem dodatkowej karty usb wifi.
mój router:
Wersja firmware    OpenWrt Chaos Calmer 15.05.1 r49172 / LuCI for-15.05 branch (git-16.090.31416-605d1f1)
Wersja jądra    3.18.29

W trakcie instalacji pojawia się to:
Installing kmod-mt7601u (3.18.29+2016-01-10-1) to root...
Downloading http://dl.eko.one.pl/chaos_calmer/brcm6 … m63xx.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Configuring kmod-mt7601u.

Polecenie:
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices


T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=148f ProdID=7601 Rev= 0.00
S:  Manufacturer=MediaTek
S:  Product=802.11 n WLAN
S:  SerialNumber=1.0
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=160mA
I:* If#= 0 Alt= 0 #EPs= 8 Cls=ff(vend.) Sub=ff Prot=ff Driver=mt7601u
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=08(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=09(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Nie można go włączyć.

2

Odp: Problem z instalacją usb wifi

Pokaż uci show wireless

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Problem z instalacją usb wifi

root@OpenWrt:~# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.channel='11'
wireless.radio0.hwmode='11g'
wireless.radio0.path='pci0000:00/0000:00:01.0/ssb0:0'
wireless.radio0.country='PL'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='radio0'
wireless.@wifi-iface[0].network='lan'
wireless.@wifi-iface[0].mode='ap'
wireless.@wifi-iface[0].ssid='OpenWrt'
wireless.@wifi-iface[0].encryption='none'
wireless.@wifi-iface[0].disabled='1'
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.hwmode='11g'
wireless.radio1.path='platform/ehci-platform/usb1/1-2/1-2:1.0'
wireless.radio1.channel='1'
wireless.radio1.txpower='15'
wireless.radio1.htmode='HT40'
wireless.radio1.country='PL'
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device='radio1'
wireless.@wifi-iface[1].network='lan'
wireless.@wifi-iface[1].ssid='R22'
wireless.@wifi-iface[1].key='wswswswsxsdsd'
wireless.@wifi-iface[1].mode='ap'
wireless.@wifi-iface[1].encryption='psk+tkip'
wireless.@wifi-iface[1].wmm='0'

4

Odp: Problem z instalacją usb wifi

Zrób wifi, pokaż co wyszło na konsoli i co masz w logread

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Problem z instalacją usb wifi

Wifi włączone i pokazało to


Tue Apr 26 10:38:14 2016 daemon.notice netifd: radio1 (3455): command failed: Operation not supported (-122)
Tue Apr 26 10:38:14 2016 daemon.notice netifd: radio1 (3455): command failed: Operation not supported (-122)
Tue Apr 26 10:38:14 2016 daemon.notice netifd: radio1 (3455): Configuration file: /var/run/hostapd-phy1.conf
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): Could not read interface wlan1 flags: No such device
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): nl80211: Driver does not support authentication/association or connect commands
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): Could not read interface wlan1 flags: No such device
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): nl80211 driver initialization failed.
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): wlan1: interface state UNINITIALIZED->DISABLED
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): wlan1: AP-DISABLED
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): hostapd_free_hapd_data: Interface wlan1 wasn't started
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): cat: can't open '/var/run/wifi-phy1.pid': No such file or directory
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): Command failed: Invalid argument
Tue Apr 26 10:38:15 2016 daemon.notice netifd: radio1 (3455): Device setup failed: HOSTAPD_START_FAILED

6

Odp: Problem z instalacją usb wifi

Tak, hostapd nie potrafi uruchomić tego. Możesz zgłosić na dev.openwrt.org. Trunka też sprawdź bo on ma już kilka zmian wprowadzonych.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Problem z instalacją usb wifi

Mam inną kartę usb wifi która działa poprawnie, więc zostanę przy niej. Z CC  + wiele dodatków, jestem zadowolony i na razie nie będę go zmieniać.

8

Odp: Problem z instalacją usb wifi

Podepnę się pod temat, bo mam chyba podobny problem?

Sun May  1 08:12:29 2022 daemon.notice netifd: radio2 (4659): Failed to create interface wlan0
Sun May  1 08:12:29 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sun May  1 08:12:29 2022 daemon.err hostapd: Could not read interface wlan0 flags: No such device
Sun May  1 08:12:29 2022 daemon.notice hostapd: nl80211: Driver does not support authentication/association or connect commands
Sun May  1 08:12:29 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sun May  1 08:12:29 2022 daemon.err hostapd: Could not read interface wlan0 flags: No such device
Sun May  1 08:12:29 2022 daemon.err hostapd: nl80211 driver initialization failed.
Sun May  1 08:12:29 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sun May  1 08:12:29 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun May  1 08:12:29 2022 daemon.notice netifd: radio2 (4659): Command failed: Invalid argument
Sun May  1 08:12:29 2022 daemon.notice netifd: radio2 (4659): Device setup failed: HOSTAPD_START_FAILED
Sun May  1 08:12:29 2022 daemon.notice netifd: Wireless device 'radio2' set retry=0
Sun May  1 08:12:29 2022 daemon.crit netifd: Wireless device 'radio2' setup failed, retry=0
Sun May  1 08:12:29 2022 daemon.notice netifd: Wireless device 'radio2' is now down

czy może czegoś nie zainstalowałem?

9

Odp: Problem z instalacją usb wifi

Tak jak by karta nie potrafiła działać w trybie ap. Weź inną.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Problem z instalacją usb wifi

Sprawdziłem na windowsie, i teoretycznie obsługuje

    Driver                    : 802.11n USB Wireless LAN Card
    Vendor                    : Ralink Technology, Corp.
    Provider                  : Microsoft
    Date                      : 21.04.2015
    Version                   : 5.1.22.0
    INF file                  : netr28ux.inf
    Type                      : Native Wi-Fi Driver
    Radio types supported     : 802.11b 802.11g 802.11n
    FIPS 140-2 mode supported : Yes
    802.11w Management Frame Protection supported : Yes
    Hosted network supported  : Yes
    Authentication and cipher supported in infrastructure mode:
                                Open            None
                                Open            WEP-40bit
                                Open            WEP-104bit
                                Open            WEP
                                WPA-Enterprise  TKIP
                                WPA-Enterprise  CCMP
                                WPA-Personal    TKIP
                                WPA-Personal    CCMP
                                WPA2-Enterprise TKIP
                                WPA2-Enterprise CCMP
                                WPA2-Personal   TKIP
                                WPA2-Personal   CCMP
                                Vendor defined  TKIP
                                Vendor defined  CCMP
                                WPA2-Enterprise Vendor defined
                                WPA2-Enterprise Vendor defined
                                Vendor defined  Vendor defined
                                Vendor defined  Vendor defined
                                Vendor defined  Vendor defined
    Authentication and cipher supported in ad-hoc mode:
                                Open            None
                                Open            WEP-40bit
                                Open            WEP-104bit
                                Open            WEP
                                WPA2-Personal   CCMP
                                Vendor defined  Vendor defined

mam jeszcze ralink 5370 i tutaj niby jest sieć i niby działa, ale jak chcę się połączyć to jest takie coś:

Sun May  1 11:03:57 2022 daemon.notice hostapd: wlan2: STA 16:5e:7d:a6:7b:b3 IEEE 802.11: did not acknowledge authentication response

11

Odp: Problem z instalacją usb wifi

A tu się z klientem nie dogadała.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.