Page 35 of 41

Posted: Wed 04 Jul 2018, 12:34
by rcrsn51
TP-WN722N
Do you mean TL-WN722N?

Have you installed the PET that I linked to on the previous page for the Atheros wifi driver?

I have a TL-WN721N adapter that uses the same Atheros driver. I set up wlanmaker in Xenialpup and it's working for me.

Posted: Thu 05 Jul 2018, 05:20
by sancxjo
Yes TL-WN722N
First I tried without a driver. Then I installed the driver atheros_kernel_modules-4.4.95noPAE-xenial32.pet
Screenshot of the terminal already with the driver.
Android tries to connect, but claims an IP configuration error.
As if I configured. As far as I understand there IP dynamic is issued.
The adapter is new, android also does not work network

Posted: Thu 05 Jul 2018, 07:48
by rcrsn51
With the wifi adapter plugged in, run the command: lsmod | grep ath
Do you see: ath9k_htc?

Posted: Thu 05 Jul 2018, 09:05
by sancxjo
ath9k_hw
Another modification?

Posted: Thu 05 Jul 2018, 12:20
by rcrsn51
sancxjo wrote:ath9k_hw
So you do NOT see ath9k_htc?

Then your adapter must have a different chipset that is not compatible.

Are you using the TP-LINK adapter on the "server" machine or the "client" machine?

Does your "server" computer have a built-in Realtek adapter?

Is the TP-LINK adapter actually wlan1?

Posted: Fri 06 Jul 2018, 06:09
by sancxjo
Yes, I do not see ath9k_htc
I have a home computer, nettop.
There is a network card (Realtek), but there is nowhere to connect it.
The interface I have wlan0

Posted: Fri 06 Jul 2018, 07:01
by sancxjo
IThe command shows the presence of a wireless adapter. But there is no antenna protruding from the case and I did not know about it.

Code: Select all

root# lspci | grep -i 'net'
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)

Posted: Fri 06 Jul 2018, 10:11
by rcrsn51
If this hidden internal wifi card is wlan0, then where is the TP-LINK adapter?

Is it also plugged in?

Then the command should be

Code: Select all

wlan1 sancxjo none usb0

Posted: Fri 06 Jul 2018, 10:32
by sancxjo
Probably I've mixed the interfaces. wlan0 is an internal adapter, wlan1 is an external adapter- TP-LINK

Code: Select all

root# wlanmaker wlan1 sancxjo none usb0
Configuration file: /tmp/hostapd.conf
Line 2: invalid/unknown driver 'rtl871xdrv'
1 errors found in configuration file '/tmp/hostapd.conf'
Failed to set up interface with /tmp/hostapd.conf
Failed to initialize interface
And yet

Code: Select all

root# lshw -class network
*-network DISABLED
       description: Wireless interface
       product: AR9285 Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 01
       serial: 48:5d:60:7c:ca:f2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.4.95 firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 memory:febf0000-febfffff

Posted: Fri 06 Jul 2018, 11:50
by rcrsn51
1. Have you installed the version of hostapd from the Xenial repo? This is bad.

2. Your TP-LINK adapter has a different chipset than mine. I suspect that it is a Realtek r8188eu.

Run: iwconfig wlan1
Run: lsmod | grep cfg

Posted: Fri 06 Jul 2018, 11:57
by sancxjo

Code: Select all

root# iwconfig wlan1
wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root# lsmod | grep cfg
cfg80211              206686  5 ath,ath9k_common,ath9k,mac80211,r8188eu
rfkill                 12246  1 cfg80211

Posted: Fri 06 Jul 2018, 12:05
by rcrsn51
1. YOU NEVER ANSWERED MY FIRST QUESTION!

2. Your TP-LINK is a Realtek r8188eu. I also have one of these and wlanmaker works fine with it in Xenial.

Posted: Fri 06 Jul 2018, 12:08
by sancxjo
hostapd from the default repository ubunt-xenial-main probably. Delete?

Posted: Fri 06 Jul 2018, 12:09
by rcrsn51
You do NOT need to do this - wlanmaker has its own version of hostapd.

Install the .deb again.

Posted: Fri 06 Jul 2018, 12:28
by sancxjo
If I correctly understood to reinstall wlanmaker. I reinstalled.

Posted: Fri 06 Jul 2018, 12:40
by sancxjo
wlanmaker wlan1 sancxjo none usb0 reconnects

Posted: Fri 06 Jul 2018, 13:01
by rcrsn51
Are you saying that internet sharing is now working?

Is the client computer getting internet access through usb0?

If not, how close is the client computer to the server computer?

Posted: Fri 06 Jul 2018, 13:19
by sancxjo
I do not have a second computer, now Android. He sees the network, connects, then stores, then receives the IP and reconnects. And so it repeats. The distance is almost near. About a meter.
I do not go to the Internet from Android.

Posted: Fri 06 Jul 2018, 13:26
by rcrsn51
Then there is nothing else I can do to help you.

Wlanmaker is running correctly, but your Android client cannot use the connection it provides.

Try this: wlanmaker wlan1 sancxjo none

Does the Android stay connected?

However, this will not get it internet access.

Posted: Fri 06 Jul 2018, 13:39
by sancxjo
Also reconnected.
In general, the wlanmaker is not adapted for my case.