MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Fri Apr 08, 2016 12:42 am

I have been looking at making an AP using the TP_LINK TL-WN725N wifi module and the 8188eu drivers I compile. I have come up with a solution that works on a variety of different Pi's.

I have tested the same SD card using a Pi 1 B with 512M of ram, a Pi B+, a Pi 2 B and a Pi 3 B. The same card works on all 4 versions of the Pi. The same SD card, with a very minor change, also works as an AP with the Broadcom wifi module built in to the Pi 3 B.

I use a SandDisk Ultra class 10 16GB SD card. I created the initial card using a Pi 2 B, although you should be able to install it on any version of the Pi. You will just need to be sure to install the correct wifi drivers describe further down the post. I based my set up on http://www.daveconroy.com/turn-your-ras ... s-chipset/ but have made some changes.

So, first I formatted the SD card with SDFormatter v4.0 on my Windows 7 laptop, using full overwrite and Format Size Adjustment ON. I then copied the image, 2016-03-18-raspbian-jessie-lite, to the SD card using Win32DiskImager 0.9.5.

I inserted the card into the Pi 2 B, connected the 2 B to my network using an ethernet cable and powered on the Pi. Do not connect the wifi module until the wifi driver is installed. I connected to the Pi from my laptop using SSH and started to set it up. First ran

Code: Select all

sudo raspi-config
and expanded the file system, set timezone, hostname and boot to desktop. Then rebooted.

After booting ran

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install rpi-update
sudo rpi-update
and rebooted.

Logged in again and checked the kernel version using uname -a which was 4.1.21-v7+ #872. If uname -a returns a different value for the kernel and build you have replace the values in the commands below with those from uname -a to download the right version of the driver. Then downloaded and installed the wifi driver for the kernel I have using

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-4.1.21-v7-872.tar.gz
tar xzf 8188eu-4.1.21-v7-872.tar.gz
./install.sh
Use the ./install.sh command to install the driver and the other required file correctly. The ./install.sh command installs the driver and the driver conf file /etc/modprobe.d/8188eu.conf The conf file disables power management and disables the build in 8188eu wifi driver and the Pi 3 B's built in wifi module driver.

The driver installed above is specifically for the Pi 2 B and Pi 3 B. It would also be a good idea to install the driver for the Pi 1 and B+ so you can then use the SD card on any Pi. The Pi 1 B, B+ driver can be installed using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-4.1.21-872.tar.gz
tar xzf 8188eu-4.1.21-872.tar.gz
./install.sh
Essentially the same as for the PI 2 B and 3 B but without the "-v7" in the file name. With both drivers installed the SD card should be usable as an AP in any Pi with a wired network connector.

Now plug in the wifi adapter. You should now be able to check the wifi is working with command

Code: Select all

sudo iwlist wlan0 scan
This should show a list of wifi networks, provided of course there are any near you.

Now to configure the AP, first installing the necessary packages and files required.

Code: Select all

sudo apt-get update
sudo apt-get install bridge-utils hostapd
and now update hostapd to handle the realtek wifi

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/hostapd
sudo mv hostapd /usr/sbin/hostapd
sudo chown root.root /usr/sbin/hostapd
sudo chmod 755 /usr/sbin/hostapd
I originally downloaded the hostapd file from https://github.com/lostincynicism/hostapd-rtl8188 but after testing it did not work with the Pi B+ or Pi 1 B 512MB. I wasn't sure why but thought it might be because it may originally have been compiled on a Pi 2 using armv7 and didn't like running on an armv6 system. So I cloned the hostapd-rtl8188 repository and compiled the hostapd module myself on a Pi B+ and that version worked on all versions of the Pi I tested it with, Pi 1 512MB, B+, 2 B and 3 B so I have posted the re-compiled hostapd file on Dropbox.

Now set up the /etc/network/interfaces file like

Code: Select all

auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0
and the /etc/hostapd/hostapd.conf file like

Code: Select all

interface=wlan0
driver=nl80211
bridge=br0
ssid=Network-Name
channel=1
wmm_enabled=0
wpa=1
wpa_passphrase=Network-Password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0 
substituting the network name and password you want to use. An interesting point here is the driver name. In various tutorials and posts it uses the name driver=rtl871xdrv for Realtek wifi drivers, but I found with the version of hostapd I was using I would get an error "rtl_ioctl_hostapd invalid argument" using that name. I couldn't find any log details regarding the error. I tried commenting out a variety of lines in hostapd.conf which didn't help but just by chance changing the name to driver=nl80211 and the error disappeared and the AP worked.

The set up should now be ready to test so first reboot your Pi.

After logging in run command

Code: Select all

sudo hostapd -dd /etc/hostapd/hostapd.conf
to start the AP. I tested my AP by connecting my Windows laptop to the AP. I am currently generating this post with my windows laptop logged on to the Raspberry Pi forum via my AP current running on a Pi 1 B 512MB.

Once you determine the AP is working edit file /etc/default/hostapd to get the AP to automatically start when the Pi boots. In file /etc/default/hostapd uncomment line

Code: Select all

#DAEMON_CONF=""
and change it to

Code: Select all

DAEMON_CONF="/etc/hostapd/hostapd.conf"
After rebooting the AP should automatically start.

So that's it for the Pi 1 B 512MB, B+, Pi 2 B and Pi 3 B using the TL-WN725N wifi module.. For the Pi 3 the same setup will work with the built in Broadcom wifi module. However, to allow the Pi 3 Broadcom module to work it is necessary to edit the file /etc/modprobe.d/8188eu.conf and either comment out or remove the line blacklist brcmfmac to allow the built in wifi driver to run, and of course do not connect the TL-WN725N to the Pi 3 B if the built in wifi is enabled.

Using this set up I have tested the 4 versions of Pi as an AP just by moving the SD card from one Pi to another with no need to make any changes to the configuration using the TL-WN725N wifi. I have also tested the Pi 3 B using the built in Broadcom wifi using the change to the /etc/modprobe.d/8188eu.conf file described in the previous paragraph. All the tests appeared to run OK and if you try this setup hopefully you will find the same.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

DanCheetah
Posts: 2
Joined: Thu Apr 14, 2016 11:34 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Thu Apr 14, 2016 11:52 pm

I've been trying to make AP work with this dongle for some weeks now, and this is the first guide that actually works! (Other than ArchWiPi, which also works, but it's Arch... *scoot scoot*). The frustrating thing was that this TL-WN725N was the supposedly problem-free replacement dongle I'd bought to replace an RTL8187 that didn't want to play nice at all.

Many words made few, a big thanks to you for drivers that simply, work :)

welshwonder
Posts: 1
Joined: Wed Apr 20, 2016 9:16 am

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Apr 20, 2016 9:18 am

Just wanted to say thanks for the post.

Been wanting to do this for a while now and struggling to pull together the relevant (and working!) resources. Followed this through and it worked like a dream first time.

Thanks again!

MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Apr 20, 2016 3:23 pm

Glad to be able to help.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

maihoaomv
Posts: 32
Joined: Wed Oct 08, 2014 5:16 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Fri Apr 29, 2016 7:09 pm

hi MrEngman
i got it to work with my edimax ew-7811uac per this post more of less on the first try. i can connect to the ap and i can get internet access. it even assigns the same exact ip address from dhcp on my router as it would if i connected directly to the router.
my question is how do i get the connection speed up from 11mb/s to something a lot faster? i.e 100 / 150mb/s. also how do i get it to work in the ac mode? i have a couple androids that will connect to ac.

i like this particular edimax dongle because it has an external antenna and puts out a strong signal.

thanks

MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Fri Apr 29, 2016 9:47 pm

maihoaomv wrote:hi MrEngman
i got it to work with my edimax ew-7811uac per this post more of less on the first try. i can connect to the ap and i can get internet access. it even assigns the same exact ip address from dhcp on my router as it would if i connected directly to the router.
my question is how do i get the connection speed up from 11mb/s to something a lot faster? i.e 100 / 150mb/s. also how do i get it to work in the ac mode? i have a couple androids that will connect to ac.

i like this particular edimax dongle because it has an external antenna and puts out a strong signal.

thanks
I've no idea why it only shows 11MB/s, however I assume that is 11 MBytes. If it was 11Mbits I would expect it to show 11Mb/s.

I got it to use the 5GHz band by changing the channel and adding an additional line, hw_mode, in file /etc/hostapd/hostapd.conf

Code: Select all

channel=36
hw_mode=a
then it shows a bitrate of 54MB/s.

Downloading a file from Dropbox to a Pi via the AP using a Pi 2B with a Netgear A6100 with the 8812au driver at 5GHz, I see about 830KBytes/s. This is the limit of my internet connection. Transferring a file locally from a Pi via the AP to a windows laptop using pscp I have seen up to 2200KBytes/s.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

humphreybas
Posts: 8
Joined: Thu Apr 21, 2016 5:53 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed May 11, 2016 6:11 pm

I must confess, I didn't use a fresh install, but I followed the tutorial (thanks!). But I didn't get it to work. So now I would like to ask if someone can advice me on the following issues:

When I start hostapd I get the following error:
Configuration file: /etc/hostapd/hostapd.conf
Line 22: invalid/unknown driver 'nl80211'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Then I replaced the driver with driver=rtl871xdrv, hostapd succesfully runs (wlan0: Setup of interface done.), however connecting to the AP does not succeed.

On the Pi syslog:
kernel: [ 622.809372] RTL871X: OnDeAuth(wlan0) reason=3, ta=30:b5:c2:18:ee:4e
On the client syslog:
May 11 20:03:57 localhost wpa_supplicant[1283]: wlan2: Trying to associate with 14:cc:20:27:c8:4a (SSID='wn_mb_one' freq=2422 MHz)
May 11 20:03:57 localhost wpa_supplicant[1283]: wlan2: Association request to the driver failed
May 11 20:03:57 localhost NetworkManager[841]: <info> (wlan2): supplicant interface state: disconnected -> associating
May 11 20:03:57 localhost wpa_supplicant[1283]: wlan2: Associated with 14:cc:20:27:c8:4a
May 11 20:03:57 localhost kernel: [36861.337771] R8188EU: ERROR assoc success
May 11 20:03:57 localhost NetworkManager[841]: <info> (wlan2): supplicant interface state: associating -> associated
May 11 20:03:59 localhost ntpd[30162]: Deleting interface #4 wlan2, 192.168.42.100#123, interface stats: received=0, sent=0, dropped=0, active_time=308 secs
May 11 20:03:59 localhost ntpd[30162]: peers refreshed
May 11 20:04:07 localhost wpa_supplicant[1283]: wlan2: Authentication with 14:cc:20:27:c8:4a timed out.
uname -a
Linux wn-Pi2-v01 4.4.8-v7+ #881 SMP Sat Apr 30 12:16:50 BST 2016 armv7l GNU/Linux
Any suggestions?

MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed May 11, 2016 6:18 pm

Did you update hostapd with the one the link in the OP pointed to?



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

humphreybas
Posts: 8
Joined: Thu Apr 21, 2016 5:53 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed May 11, 2016 6:35 pm

Your question somehow led me to checking the hostapd command first (because I did replace the hostapd files):

Code: Select all

$ which hostapd
/usr/local/bin/hostapd
My hostapd command is not linking to the same location (as said, no fresh install, actually a very old install and on top of that upgraded from wheezy to jessie), so by simply substituting /usr/sbin/hostapd with /usr/local/bin/hostapd in your tutorial I got it all running!
Thanks for you quick support (and general dedication on this topic). Much appreciated.

MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed May 11, 2016 6:44 pm

Glad to be able to help.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

renoir
Posts: 8
Joined: Thu Dec 03, 2015 7:18 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Sun May 15, 2016 7:02 pm

I've followed everything up to starting up hostapd for the first time, but I'm getting this output:

Code: Select all

random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Failed to set interface 3 to mode 3: -19 (No such device)
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x13e46d0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x13e46d0)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0x13e5250 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x13e46d0)
hostapd_interface_free: free hapd 0x13e5250
hostapd_cleanup_iface(0x13e46d0)
hostapd_cleanup_iface_partial(0x13e46d0)
hostapd_cleanup_iface: free iface=0x13e46d0
Seems it can't see wlan0. Doing sudo ifup wlan0 results in:

Ignoring unknown interface wlan0=wlan0.

I'm trying to feed internet to the AP (wlan0) through another wireless interface (wlan1) which is an edimax that works out of the box. And so my /etc/network/interfaces file looks like:

Code: Select all

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto br0
iface br0 inet dhcp
bridge_ports wlan1 wlan0
Any idea what I could be doing wrong? How can I make sure wlan0 is up and configured on boot?

Thanks!

renoir
Posts: 8
Joined: Thu Dec 03, 2015 7:18 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Sun May 15, 2016 7:07 pm

FYI, running "sudo iwlist wlan0 scan" successfully returns output, so I suppose it's working but not being identified as a network interfaces? (I am guessing what the issue could be at this point)

Code: Select all

wlan0     Scan completed :
          Cell 01 - Address: [redacted]
                    ESSID:"[redacted]"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:300 Mb/s
                    Extra:wpa_ie=[redacted]
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=[redacted]
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    Quality=100/100  Signal level=100/100

maihoaomv
Posts: 32
Joined: Wed Oct 08, 2014 5:16 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Jul 20, 2016 5:36 am

is there a pre-compiled edimax kernel driver for 8188au-4.1.19-v7-858?
the eu version is there and i can download it but the au version doesn't appear to be. i'm getting a 404 error.
also i accidentally installed the eu version, how do i uninstall it?

thanks

MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Jul 20, 2016 7:51 am

maihoaomv wrote:is there a pre-compiled edimax kernel driver for 8188au-4.1.19-v7-858?
the eu version is there and i can download it but the au version doesn't appear to be. i'm getting a 404 error.
also i accidentally installed the eu version, how do i uninstall it?

thanks
Not sure what 8188au is. Do you mean 8812au? If so try 8812au-4.1.19-v7-858.

To delete 8188eu use

Code: Select all

sudo rm /lib/modules/4.1.19-v7+/kernel/drivers/net/wireless/8188eu.ko
sudo rm /etc/modprobe.d/8188eu.conf
sudo depmod -a


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

maihoaomv
Posts: 32
Joined: Wed Oct 08, 2014 5:16 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Jul 20, 2016 4:18 pm

a bit of a misspelling in my how-to. thank you very much mr. engman.

m
:D

seast
Posts: 7
Joined: Wed Jan 23, 2013 5:10 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Mon Aug 15, 2016 2:25 pm

Hi there,

I used to have the WN725N V2 working fine as an access point on my Pi 2B - but I now have to support the Pi 3 and in upgrading it has stopped working on both the 2B and the 3B.

So I did a full update the latest Pi kernel and distribution. I'm running on Wheeezy as Jessie seems to auto expand the file system on first startup which is not what I want.

I've followed your new instructions for installing the drivers based on the kernel version and those seem to install fine.

I've installed the updated version of hostapd (as well as a few other builds people have done) but all seem to give the same results. If I switch off the wpa password by setting wpa=0 then I can connect to the Pi fine as an access point.

But if I switch on wpa=2 then I cannot connect and the connecting device say after a while incorrect password.

My hostapd.conf looks like this:

Code: Select all

interface=wlan0
ssid=my_ssid
channel=3
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=my_password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
driver=rtl871xdrv
#ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek
and this is what hostapd produced when I run it from the shell:

Code: Select all

random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1b64638
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm
...
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 3  Frequency: 2422 MHz
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
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 14:cc:20:11:60:4a and ssid 'my_ssid'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=10):
     69 43 6f 6e 76 65 72 74 6f 72                     my_ssid      
PSK (ASCII passphrase) - hexdump_ascii(len=13): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
urandom: Got 20/20 bytes from /dev/urandom
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
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)
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, iConvertor,10
rtl871x_set_acl
wlan0: Setup of interface done.
When I try and connect with wpa=2 I see no further output from hostapd - it does not seem to be processing the WPA part of the process at all.

I can see the following in the log when I try to connect:

Code: Select all

Aug 15 16:44:33 raspberrypi authpriv.notice sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/local/bin/hostapd /etc/hostapd/hostapd.conf -dd
Aug 15 16:44:33 raspberrypi authpriv.info sudo: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Aug 15 16:44:33 raspberrypi user.warn kernel: [  126.451050] ==> rtl8188e_iol_efuse_patch 
Aug 15 16:44:33 raspberrypi user.warn kernel: [  126.738391] RTL871X: nolinked power save leave
Aug 15 16:44:33 raspberrypi user.warn kernel: [  126.900982] RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES
Aug 15 16:44:33 raspberrypi user.warn kernel: [  126.912283] RTL871X: assoc success
Aug 15 16:44:33 raspberrypi daemon.info ifplugd(wlan0)[1769]: Link beat detected.
Aug 15 16:44:34 raspberrypi daemon.info ifplugd(wlan0)[1769]: Executing '/etc/ifplugd/ifplugd.action wlan0 up'.
Aug 15 16:44:34 raspberrypi auth.info sshd[2101]: Received signal 15; terminating.
Aug 15 16:44:34 raspberrypi auth.info sshd[2232]: Server listening on 0.0.0.0 port 22.
Aug 15 16:44:34 raspberrypi daemon.info ifplugd(wlan0)[1769]: Program executed successfully.
Aug 15 16:44:35 raspberrypi daemon.info ntpd[1723]: Listen normally on 4 wlan0 192.168.0.2 UDP 123
Aug 15 16:44:35 raspberrypi daemon.info ntpd[1723]: peers refreshed
Aug 15 16:45:18 raspberrypi user.warn kernel: [  171.262758] RTL871X: OnDisassoc(wlan0) reason=8, ta=9c:f3:87:41:2c:15
Aug 15 16:45:32 raspberrypi authpriv.info sudo: pam_unix(sudo:session): session closed for user root
Aug 15 16:45:32 raspberrypi daemon.info ifplugd(wlan0)[1769]: Link beat lost.
Aug 15 16:45:35 raspberrypi user.warn kernel: [  188.731215] RTL871X: nolinked power save enter
Aug 15 16:45:42 raspberrypi daemon.info ifplugd(wlan0)[1769]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'.
Aug 15 16:45:43 raspberrypi user.warn kernel: [  196.181919] ==> rtl8188e_iol_efuse_patch 
Aug 15 16:45:43 raspberrypi daemon.err dhcpd: receive_packet failed on wlan0: Network is down
Aug 15 16:45:43 raspberrypi user.warn kernel: [  196.483161] RTL871X: nolinked power save leave
Aug 15 16:45:43 raspberrypi daemon.info ifplugd(wlan0)[1769]: Program executed successfully.
Aug 15 16:45:44 raspberrypi daemon.info ntpd[1723]: Deleting interface #4 wlan0, 192.168.0.2#123, interface stats: received=0, sent=0, dropped=0, active_time=69 secs
Aug 15 16:45:44 raspberrypi daemon.info ntpd[1723]: peers refreshed
Aug 15 16:45:45 raspberrypi user.warn kernel: [  198.511310] RTL871X: nolinked power save enter
Any pointers on what I need to do to debug this?

Thanks, Simon.

seast
Posts: 7
Joined: Wed Jan 23, 2013 5:10 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Mon Aug 15, 2016 10:58 pm

OK so in the end I have found a work-around for this which was NOT to update to the latest 4.4 kernel - it seems to break something fairly fundamental in WPA authentication.

When I downgraded to 4.1.21 as you are using in this post it all started working again.

Now works on a B+ and 3B with the v6 and v7 drivers perfectly.

Thanks, Simon.

macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Mon Oct 10, 2016 5:57 am

According to this it seems custom-built hostapd may not be needed anymore with recent 4.4 distributions. Have not tested yet though, but worth a try.

macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Wed Oct 12, 2016 6:41 am

Confirmed on 4.4.23+ #913 (updated Jessy lite image as of date), baseline hostapd (v 2.3) works unmodified, with WPA authentication. No need to install custom-built hostapd from Realtek.
Cheers.


MrEngman
Posts: 3872
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Thu May 25, 2017 9:11 pm

rekinomiha wrote:MrEngman,
Can you reupload this link?
https://dl.dropboxusercontent.com/u/80256631/hostapd
Try this

Code: Select all

wget https://www.dropbox.com/s/n934j6wf68a2ng4/hostapd

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

rekinomiha
Posts: 2
Joined: Thu May 25, 2017 7:15 pm

Re: Wifi AP using TL-WN725N for Pi 1 512MB, B+, 2B or 3B

Fri May 26, 2017 12:45 am

MrEngman wrote:
rekinomiha wrote:MrEngman,
Can you reupload this link?
https://dl.dropboxusercontent.com/u/80256631/hostapd
Try this

Code: Select all

wget https://www.dropbox.com/s/n934j6wf68a2ng4/hostapd

MrEngman
Many thanks! It finally works.

Return to “Networking and servers”