Bananian

BPi - R1 setup 15.08 - hostapd /8192cu problem

3 1782
Tido  
Edited by Tido at Dec 20, 2015 23:33

Hi,

I have tried to setup the BPi - R1with the latest Bananian 15.08. Unfortunately, it doesn't work.
It comes with rtl8192 v3.3.2 added from Bananian and the hostapd v2.3 from Debian.
I have tried different combinations, but I always received:

invalid/unknown driver 'rtl871xdrv'

I see the only solution in packaging a 'PowerTeam' that works together.

I was wondering if the:
  • hostapd
  • hostapd_cli
  • rtl8192
from armbian 3.4.108 could be copied into the bananian APT repository?
On the other hand, I don't know if the rtl8192 is the big exception and doesn't fit into the
BananaPi-all-in-one distro.

If someone else got Bananian working with BPi-R1 with standard software please tell me how.

Cheers
Tido
swipon  
There is a patch to have hostapd compatible to this driver.

You can download my precompiled deb here:
https://www.dropbox.com/sh/whrzs ... .4-4_armhf.deb?dl=0


Tido  
Hi Swipon,

Finally someone who answers
I will check your .deb and come back with my findings

Tido  
Tido replied at Jan 06, 2016 08:54
I will check your .deb and come back with my findings ...

During install it asked me to replace my config-files with the one from your .deb.
I ignored that, but had a look at the differences. One that caught my attention:

nano /etc/init.d/hostapd
  1. -PIDFILE=/run/hostapd.pid
  2. +PIDFILE=/var/run/hostapd.pid
Copy the Code
Especially the "-PIDFILE=/run/hostapd.pid" I suggest to adjust this, because:

Modern Linux distributions include a /run directory as a temporary filesystem (tmpfs) which stores volatile runtime data, following the FHS version 3.0. According to the FHS version 2.3, this data should be stored in /var/run but this was a problem in some cases because this directory isn't always available at early boot.
more: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
or Debian here  

For some reason it lists the 5GHz band although it is not capable.
  hostapd -dd /etc/hostapd/hostapd.conf
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm


I can ping GOOGLE on the R1 with SSH and my mobile does connect to the R1 and gets its IP-Address but I get no connection to the internet

from the daemon.log
  1. Jan 16 22:15:50 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: associated
  2. Jan 16 22:15:50 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: associated
  3. Jan 16 22:15:51 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: received EAPOL-Key msg 2/4 in invalid state (10) - dropped
  4. Jan 16 22:15:51 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: received EAPOL-Key with invalid MIC
  5. Jan 16 22:15:51 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 RADIUS: starting accounting session 569AB2B4-00000000
  6. Jan 16 22:15:51 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: pairwise key handshake completed (RSN)
  7. Jan 16 22:15:54 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: disassociated
  8. Jan 16 22:15:54 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: disassociated
  9. Jan 16 22:16:06 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: associated
  10. Jan 16 22:16:06 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: associated
  11. Jan 16 22:16:07 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: received EAPOL-Key msg 2/4 in invalid state (10) - dropped
  12. Jan 16 22:16:07 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: received EAPOL-Key with invalid MIC
  13. Jan 16 22:16:07 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 RADIUS: starting accounting session 569AB2B4-00000001
  14. Jan 16 22:16:07 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 WPA: pairwise key handshake completed (RSN)
  15. Jan 16 22:16:10 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: disassociated
  16. Jan 16 22:16:10 bananapi hostapd: wlan0: STA 10:68:3f:70:65:37 IEEE 802.11: disassociated
Copy the Code

Any idea what I can test?

You have to log in before you can reply Login | Sign Up

Points Rules