terminux
Posts: 2
Joined: Sun Mar 15, 2015 1:06 pm

RPI working as wlan router. loosing connection

Sun Mar 15, 2015 1:30 pm

Hey Folks,

i am using my RPi as wlan router with hostapd. Based on this tutorial with an EDIMAX EW-7612UAN wlan stick.
http://www.daveconroy.com/turn-your-ras ... s-chipset/
In order to avoid advertisement i also run dnsmasq for dns and dhcp on it. (dhcp is disabled on any other devices in the network)
I am loosing the wlan connection after a some time(15 min to half an hour). When i connect due a laptop i have the feeling that i can surf for a longer time than with my smartphone.
Anyway, the wlan connection stays alive but i am not able to ping the pi or reach the internet. I am not able to reconnect to the wifi.
After a reboot everything works fine for some time.

The RPi is not loosing its internet connection at any time. Even after it is not working as a wifirouter anymore, Dnsmasq is still working fine without any problems. Via cable i can ping the RPi and connect via ssh.

Code: Select all

Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux
interfaces:

Code: Select all

interfaces:

auto lo

iface lo inet loopback
iface eth0 inet dhcp


#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
auto br0
iface br0 inet static
bridge_ports eth0 wlan0
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.2 8.8.8.8
hostapd:

Code: Select all

interface=wlan0
driver=rtl871xdrv
bridge=br0
ssid=rasp
channel=1
wmm_enabled=1
wpa=2
wpa_passphrase=xxxxxxxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
wme_enabled=1
hw_mode=g
#country_code=DE
#ieee80211n=1
#ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40][SHORT-GI-20][MAX-AMSDU-7935]
#ht_capab=[HT40-][SHORT-GI-20][SHORT-GI40]
#eapol_version=1
I was playing around with the settings but i my linux skills are nearly not existend.

in /var/log/messages/syslog the only thing which seems strange to me was:

Code: Select all

/var/log/syslog

Mar 15 12:38:24 raspberrypi hostapd: wlan0:  IEEE 802.11: associated
Mar 15 12:38:28 raspberrypi hostapd: wlan0:  IEEE 802.11: deauthenticated due to local deauth request
Mar 15 12:38:28 raspberrypi hostapd: wlan0:  IEEE 802.11: disassociated
i tried to google it but found no solution.

It would be very nice if somebody could give me some suggestions or hints how to solve the problem.

Great thx!

netelbcn
Posts: 5
Joined: Wed Jan 01, 2014 11:24 pm

Re: RPI working as wlan router. loosing connection

Wed Jun 08, 2016 10:19 pm

Hi!

Did you found a solution for this issue? I'am with te same situation... :cry:

Thanks a lot!

Return to “Troubleshooting”