erik36699
Posts: 1
Joined: Sun Nov 05, 2017 3:48 am

TL-WN722N Access Point

Sun Nov 05, 2017 4:16 am

Hello,

I bought a TL-WN722N V2 Wifi-adapte to create an access point with my P2.

I have already tried lots of tutorials and use this configuration: https://thepi.io/how-to-use-your-raspbe ... ess-point/
But I can’t connect...

Code: Select all

[    2.924871] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[    3.035648] usb 1-1.4: New USB device found, idVendor=2357, idProduct=010c
[    3.049596] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.063633] usb 1-1.4: Product: 802.11n NIC
[    3.075112] usb 1-1.4: Manufacturer: Realtek
[    3.088229] usb 1-1.4: SerialNumber: 00E04C0001
[    3.419570] udevd[173]: starting version 175
[    4.315908] cfg80211: Calling CRDA to update world regulatory domain
[    4.559842] RTL871X: module init start
[    4.573118] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[    4.588035] RTL871X: build time: Jun 25 2017 21:03:43
[    4.620697] bFWReady == _FALSE call reset 8051...
[    4.681805] RTL871X: rtw_ndev_init(wlan0)
[    4.710137] usbcore: registered new interface driver rtl8188eu
[    4.725620] RTL871X: module init ret=0
[    4.860486] cfg80211: World regulatory domain updated:
[    4.874869] cfg80211:  DFS Master region: unset
[    4.879475] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    4.893279] bcm2835-rng 3f104000.rng: hwrng registered
[    4.920471] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    4.926286] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    4.952278] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    4.969368] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    4.984350] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    5.000863] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    5.018181] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    5.033217] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    5.048078] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    6.556327] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.810955] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.897448] random: dd urandom read with 94 bits of entropy available
[   11.495394] ==> rtl8188e_iol_efuse_patch 
[   11.496093] random: nonblocking pool is initialized
[   11.830753] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   13.436371] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[   13.771884] RTL871X: nolinked power save enter
[   27.065880] ==> rtl8188e_iol_efuse_patch 
[   27.164933] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS
[   27.388079] RTL871X: nolinked power save leave
[   27.754589] 8021q: 802.1Q VLAN Support v1.8
[   27.768965] RTL871X: assoc success
[   27.773929] RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES
[   38.658527] uart-pl011 3f201000.uart: no DMA platform data
[   84.357529] RTL871X: OnDisassoc(wlan0) reason=8, ta=f0:99:bf:31:aa:d5

Code: Select all

$ uname -a
Linux raspberrypi 4.1.19-v7+ #858

$ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 2357:010c 
my interface config

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.146.0.3
netmask 255.0.0.0
gateway 10.0.0.1
wpa-driver wired
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.50.1
netmask 255.255.255.0
network 192.168.50.0
broadcast 192.168.50.255
hostadp config

Code: Select all

interface=wlan0
driver=nl80211

hw_mode=g
channel=6
ieee80211n=1
wmm_enabled=1
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
macaddr_acl=0
ignore_broadcast_ssid=0

auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

ssid=NETWORK
wpa_passphrase=PASSWORD
hostadp log

Code: Select all

sudo hostapd -dd /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 3
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=15
nl80211: Add own interface ifindex 15
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2457-2482 @ 20 MHz
nl80211: 2474-2494 @ 20 MHz
nl80211: 5170-5250 @ 80 MHz
nl80211: 5250-5330 @ 80 MHz
nl80211: 5490-5730 @ 160 MHz
nl80211: 5735-5835 @ 80 MHz
nl80211: 57240-63720 @ 2160 MHz
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 3  Frequency: 2422 MHz
nl80211: Set freq 2422 (ht_enabled=0 sec_channel_offset=0)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
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
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr d4:6e:0e:09:49:17 and ssid 'fhem'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=4):
     66 68 65 6d                                       fhem            
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
VLAN: vlan_set_name_type(name_type=2)
nl80211: Set beacon (beacon_set=0)
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=16 entropy=0
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=3 alg=3 addr=0x89168 key_idx=1 set_tx=1 seq_len=0 key_len=16
   broadcast key
wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
Failed to set TX queue parameters for queue 0.
Failed to set TX queue parameters for queue 1.
Failed to set TX queue parameters for queue 2.
Failed to set TX queue parameters for queue 3.
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan0 is up
RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface mon.wlan0 is up
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
nl80211: if_removed already cleared - ignore event
VLAN: vlan_newlink(wlan0)
nl80211: Event message available
nl80211: New station f0:99:bf:31:aa:d5
nl80211: Event message available
nl80211: Delete station f0:99:bf:31:aa:d5
Any idea?
Thank you.

4flattires
Posts: 2
Joined: Sat Nov 18, 2017 6:47 am

Re: TL-WN722N Access Point

Sat Nov 18, 2017 7:12 am

The old version of that card had an ath9k chipset and worked out of the box. The chipset in the newer ones like yours isn't supported by default, but there should be a driver somewhere. Follow instructions in the readme to install.

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 10 guests