Temat: OpenWRT Luci + WiFi USB TP-Link WN722N
Witam,
na routerku TP-Link 1043ND mam zainstalowane OpenWrt Attitude Adjustment 12.09.1 / LuCI 0.11 Branch (0.11+svn9881). Do niego mam podłączony HUB USB a w nim modem Huawei i WiFi USB WN722N. Chciałem wykorzystać kartę wifi usb do połączenia w trybie klienckim. Zainstalowałem więc odpowiedni sterownik:
opkg update
opkg install kmod-ath9k-htc
wifi detect >> /etc/config/wireless
po wykonaniu cat /proc/bus/usb/devices:T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 1/800 us ( 0%), #Int= 3, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.03
S: Manufacturer=Linux 3.3.8 ehci_hcd
S: Product=Generic Platform EHCI Controller
S: SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1a40 ProdID=0101 Rev= 1.11
S: Product=USB 2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1a40 ProdID=0101 Rev= 1.11
S: Product=USB 2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
T: Bus=01 Lev=03 Prnt=03 Port=02 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=0cf3 ProdID=9271 Rev= 1.08
S: Manufacturer=ATHEROS
S: Product=USB2.0 WLAN
S: SerialNumber=12345
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=00 Prot=00 Driver=
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1506 Rev= 1.02
S: Manufacturer=HUAWEI
S: Product=HUAWEI Mobile
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=cdc_ncm
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
I:* If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=cdc_ncm
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=03 Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
po wifi detect :
cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11ng'
option macaddr 'b0:48:7a:d2:d7:aa'
option htmode 'HT20'
list ht_capab 'SHORT-GI-40'
list ht_capab 'DSSS_CCK-40'
Sterownik wygląda na zainstalowany (lsmod):
lsmod
Module Size Used by Tainted: G
sierra 6736 0
option 15120 1
cdc_ncm 6448 0
usb_wwan 6560 1 option
cdc_ether 2992 0
usbserial 23792 5 sierra,option,usb_wwan
usblp 8288 0
usbnet 12032 2 cdc_ncm,cdc_ether
cdc_acm 11456 0
leds_wndr3700_usb 672 0
ath9k_htc 68208 0
ath79_wdt 2240 1
ledtrig_usbdev 2032 0
ledtrig_netdev 3184 0
nf_nat_irc 784 0
nf_conntrack_irc 2464 1 nf_nat_irc
nf_nat_ftp 976 0
nf_conntrack_ftp 4416 1 nf_nat_ftp
xt_HL 1200 0
xt_hl 720 0
xt_ecn 1168 0
ipt_ECN 1264 0
xt_CLASSIFY 496 0
xt_time 1456 0
xt_tcpmss 912 0
xt_statistic 688 2
xt_mark 592 58
xt_length 608 5
xt_DSCP 1360 0
xt_dscp 912 0
xt_string 672 0
xt_layer7 8944 0
ipt_MASQUERADE 976 3
iptable_nat 2544 1
nf_nat 10256 4 nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_recent 5680 0
xt_helper 784 0
xt_connmark 960 3
xt_connbytes 1424 0
pptp 13296 0
l2tp_ppp 12784 0
pppoe 7488 0
xt_conntrack 2048 3
xt_CT 1216 0
xt_NOTRACK 448 0
iptable_raw 560 1
xt_state 608 0
nf_conntrack_ipv4 4384 9 iptable_nat,nf_nat
nf_defrag_ipv4 656 1 nf_conntrack_ipv4
nf_conntrack 38320 16 nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,xt_layer7,ipt_MASQUERADE,iptable_nat,nf_nat,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_CT,xt_NOTRACK,xt_state,nf_conntrack_ipv4
pppox 1152 3 pptp,l2tp_ppp,pppoe
ipt_REJECT 1808 2
xt_TCPMSS 2560 2
ipt_LOG 6160 0
xt_comment 400 54
xt_multiport 1104 9
xt_mac 528 0
xt_limit 944 1
iptable_mangle 832 1
iptable_filter 592 1
ip_tables 9440 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp 1632 24
x_tables 9984 36 xt_HL,xt_hl,xt_ecn,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_MASQUERADE,iptable_nat,xt_recent,xt_helper,xt_connmark,xt_connbytes,xt_conntrack,xt_CT,xt_NOTRACK,iptable_raw,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,iptable_mangle,iptable_filter,ip_tables,xt_tcpudp
gre 896 1 pptp
ifb 2496 0
l2tp_netlink 6800 1 l2tp_ppp
l2tp_core 11920 2 l2tp_ppp,l2tp_netlink
ppp_mppe 4768 0
ppp_async 5952 1
ppp_generic 18848 10 pptp,l2tp_ppp,pppoe,pppox,ppp_mppe,ppp_async
slhc 4368 1 ppp_generic
vfat 7824 0
fat 41728 1 vfat
ath9k 92336 0
ath9k_common 1312 2 ath9k_htc,ath9k
ath9k_hw 370752 3 ath9k_htc,ath9k,ath9k_common
ath 12736 4 ath9k_htc,ath9k,ath9k_common,ath9k_hw
nls_iso8859_1 2800 0
nls_cp437 4336 0
mac80211 294048 2 ath9k_htc,ath9k
ts_fsm 2496 0
ts_bm 1344 0
ts_kmp 1264 0
crc_ccitt 944 1 ppp_async
cfg80211 169792 3 ath9k_htc,ath9k,mac80211
compat 11680 6 ath9k_htc,ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
sha1_generic 1392 0
ecb 1248 0
arc4 768 2
aes_generic 29808 0
crypto_blkcipher 9600 1 ecb
cryptomgr 1840 0
aead 3920 1 cryptomgr
usb_storage 33136 0
ohci_hcd 16160 0
ehci_hcd 33616 0
sd_mod 22240 0
ext4 237664 0
jbd2 37248 1 ext4
mbcache 3504 1 ext4
usbcore 99168 15 sierra,option,cdc_ncm,usb_wwan,cdc_ether,usbserial,usblp,usbnet,cdc_acm,ath9k_htc,ledtrig_usbdev,usb_storage,ohci_hcd,ehci_hcd
usb_common 480 1 usbcore
scsi_mod 69888 2 usb_storage,sd_mod
nls_base 4640 5 vfat,fat,nls_iso8859_1,nls_cp437,usbcore
crc16 944 1 ext4
crypto_hash 7888 1 sha1_generic
crypto_algapi 9200 7 ecb,arc4,aes_generic,crypto_blkcipher,cryptomgr,aead,crypto_hash
ledtrig_timer 1072 0
ledtrig_default_on 416 0
leds_gpio 1552 0
gpio_button_hotplug 3216 0
niestety po wylistowaniu ifconfig nie widzę wlan1, a w luci w zakładce wifi nie pojawia mi się dodatkowy interfejs radiowy. Co robię nie tak?