RPi + Runeaudio +Wifi as Accesspoint

Raspberry Pi related support

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby johnbanks » 29 Aug 2016, 14:34

Frank ...

Here is my file copied from nano /etc/hostapd/hostapd.conf ...

# interface and driver
interface=wlan0
driver=nl80211

# WIFI-Config
ssid=Rune_AP
channel=7
hw_mode=g
wmm_enabled=1
auth_algs=1
max_num_sta=10

# WIFI authorization
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
wpa_passphrase=guglielmo

Additionally, here is the output from redis-cli hgetall AccessPoint

[root@runeaudio ~]# redis-cli hgetall AccessPoint
1) "enabled"
2) "1"
3) "ip-address"
4) "192.168.12.1"
5) "broadcast"
6) "192.168.12.255"
7) "ssid"
8) "Rune_AP"
9) "passphrase"
10) "guglielmo"
11) "dhcp-range"
12) "192.168.12.2,192.168.12.254,24h"
13) "dhcp-option"
14) "option:dns-server,192.168.12.1"
15) "enable-NAT"
16) "0"
[root@runeaudio ~]#

Now I will power down, remove the Edimax and insert a Ralink dongle ... as before everything works with Ralink - I can connect to Rune_AP from my laptop and can puTTy in to 192.168.12.1.

I then puTTy'd in to the ip address for eth0, did the following and got the following ...

[root@runeaudio ~]# systemctl stop hostapd
[root@runeaudio ~]# /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 00:0f:54:12:c4:2d and ssid "Rune_AP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Now I will again power down and re-insert a different Edimax (to eliminate that as a problem) ... as before with Edimax, Rune_AP is broadcasting but I cannot connect to it from my laptop.

Again I did (puTTy to eth0) and got this result which is different to what I reported earlier (perhaps because I did not then first stop hostapd) ...

[root@runeaudio ~]# systemctl stop hostapd
[root@runeaudio ~]# /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 80:1f:02:76:54:a1 and ssid "Rune_AP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

Do you need more info?
Thx
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby hondagx35 » 29 Aug 2016, 14:54

Hi johnbanks,

all looks fine now.
And you are not able to connect to the EDIMAX access point?
This is really strange.

Try to connect and check the output from
Code: Select all
journalctl -xe

This should give you some more information.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby johnbanks » 29 Aug 2016, 17:53

Frank ...

I still cannot connect from my laptop using Edimax.

It's been fun & games but here is the Ralink journal ...
journal_Ralink.zip
(14.34 KiB) Downloaded 481 times


And here's the Edimax journal ...
journal_Edimax.zip
(14.99 KiB) Downloaded 512 times


Ralink line 1382 seems to be equivalent to Edimax line 1457
But thereafter things are quite different.

Any ideas?
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby hondagx35 » 29 Aug 2016, 18:40

Hi johnbanks,

thank you for providing the logs.

It is really strange, because i can see no errors in your journal.

EDIMAX
Code: Select all
Aug 29 16:51:19 runeaudio systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
-- Subject: Unit netctl-auto@wlan0.service has begun shutting down
-- Unit netctl-auto@wlan0.service has begun shutting down.
Aug 29 16:51:21 runeaudio systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
-- Unit netctl-auto@wlan0.service has finished shutting down.
Aug 29 16:51:21 runeaudio netctl-auto[918]: /usr/bin/netctl-auto: line 222: kill: (331) - No such process
Aug 29 16:51:21 runeaudio systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
-- Unit hostapd.service has finished starting up.
-- The start-up result is done.
Aug 29 16:51:21 runeaudio hostapd[944]: Configuration file: /etc/hostapd/hostapd.conf
Aug 29 16:51:21 runeaudio hostapd[944]: Using interface wlan0 with hwaddr 80:1f:02:76:54:a1 and ssid "Rune_AP"
Aug 29 16:51:21 runeaudio systemd[1]: Starting A lightweight DHCP and caching DNS server...
-- Subject: Unit dnsmasq.service has begun start-up
-- Unit dnsmasq.service has begun starting up.
Aug 29 16:51:21 runeaudio dnsmasq[948]: dnsmasq: syntax check OK.
Aug 29 16:51:21 runeaudio hostapd[944]: wlan0: interface state UNINITIALIZED->ENABLED
Aug 29 16:51:21 runeaudio hostapd[944]: wlan0: AP-ENABLED
Aug 29 16:51:21 runeaudio systemd[1]: Started A lightweight DHCP and caching DNS server.
-- Unit dnsmasq.service has finished starting up.
-- The start-up result is done.
Aug 29 16:51:21 runeaudio dnsmasq[952]: started, version 2.76 cachesize 150
Aug 29 16:51:21 runeaudio dnsmasq[952]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Aug 29 16:51:21 runeaudio dnsmasq[952]: DBus support enabled: connected to system bus
Aug 29 16:51:21 runeaudio dnsmasq[952]: warning: interface wlan0 does not currently exist
Aug 29 16:51:21 runeaudio dnsmasq-dhcp[952]: DHCP, IP range 192.168.12.2 -- 192.168.12.254, lease time 1d
Aug 29 16:51:21 runeaudio dnsmasq[952]: reading /etc/resolv.conf
Aug 29 16:51:21 runeaudio dnsmasq[952]: using nameserver 192.168.0.1#53
Aug 29 16:51:21 runeaudio dnsmasq[952]: bad address at /etc/hosts line 3
Aug 29 16:51:21 runeaudio dnsmasq[952]: read /etc/hosts - 2 addresses


RALINK
Code: Select all
Aug 29 17:51:24 runeaudio systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
-- Subject: Unit netctl-auto@wlan0.service has begun shutting down
-- Unit netctl-auto@wlan0.service has begun shutting down.
Aug 29 17:51:24 runeaudio netctl-auto[918]: /usr/bin/netctl-auto: line 222: kill: (331) - No such process
Aug 29 17:51:25 runeaudio systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
-- Unit netctl-auto@wlan0.service has finished shutting down.
Aug 29 17:51:26 runeaudio systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
-- Unit hostapd.service has finished starting up.
-- The start-up result is done.
Aug 29 17:51:26 runeaudio hostapd[950]: Configuration file: /etc/hostapd/hostapd.conf
Aug 29 17:51:26 runeaudio systemd[1]: Starting A lightweight DHCP and caching DNS server...
-- Unit dnsmasq.service has begun starting up.
Aug 29 17:51:26 runeaudio dnsmasq[954]: dnsmasq: syntax check OK.
Aug 29 17:51:26 runeaudio hostapd[950]: Using interface wlan0 with hwaddr 00:0f:54:12:c4:2d and ssid "Rune_AP"
Aug 29 17:51:26 runeaudio systemd[1]: Started A lightweight DHCP and caching DNS server.
-- Unit dnsmasq.service has finished starting up.
-- The start-up result is done.
Aug 29 17:51:26 runeaudio dnsmasq[959]: started, version 2.76 cachesize 150
Aug 29 17:51:26 runeaudio dnsmasq[959]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
Aug 29 17:51:26 runeaudio dnsmasq[959]: DBus support enabled: connected to system bus
Aug 29 17:51:26 runeaudio dnsmasq[959]: warning: interface wlan0 does not currently exist
Aug 29 17:51:26 runeaudio dnsmasq-dhcp[959]: DHCP, IP range 192.168.12.2 -- 192.168.12.254, lease time 1d
Aug 29 17:51:26 runeaudio dnsmasq[959]: reading /etc/resolv.conf
Aug 29 17:51:26 runeaudio dnsmasq[959]: using nameserver 192.168.0.1#53
Aug 29 17:51:26 runeaudio dnsmasq[959]: bad address at /etc/hosts line 3
Aug 29 17:51:26 runeaudio dnsmasq[959]: read /etc/hosts - 2 addresses
Aug 29 17:51:26 runeaudio hostapd[950]: wlan0: interface state UNINITIALIZED->ENABLED
Aug 29 17:51:26 runeaudio hostapd[950]: wlan0: AP-ENABLED
Aug 29 17:52:42 runeaudio hostapd[950]: wlan0: STA ec:08:6b:0a:14:08 IEEE 802.11: authenticated
Aug 29 17:52:42 runeaudio hostapd[950]: wlan0: STA ec:08:6b:0a:14:08 IEEE 802.11: associated (aid 1)
Aug 29 17:52:42 runeaudio hostapd[950]: wlan0: AP-STA-CONNECTED ec:08:6b:0a:14:08
Aug 29 17:52:42 runeaudio hostapd[950]: wlan0: STA ec:08:6b:0a:14:08 RADIUS: starting accounting session CCB67F09-00000000
Aug 29 17:52:42 runeaudio hostapd[950]: wlan0: STA ec:08:6b:0a:14:08 WPA: pairwise key handshake completed (RSN)
Aug 29 17:52:43 runeaudio dnsmasq-dhcp[959]: DHCPREQUEST(wlan0) 192.168.12.22 ec:08:6b:0a:14:08
Aug 29 17:52:43 runeaudio dnsmasq-dhcp[959]: DHCPACK(wlan0) 192.168.12.22 ec:08:6b:0a:14:08 John-Lenovo

Here you can see (last 7 lines) how it should look like when a device connects to the AP.

I have no idea why it doesn't work with your EDIMAX.
On my test installation all works fine, even with an EDIMAX dongle.

Sorry, but at the moment i only can tell you:
"Do not use the EDIMAX dongle!"

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby hondagx35 » 29 Aug 2016, 21:08

Hi johnbanks,

what you can try next is to start hostapd in debug mode

Code: Select all
killall hostapd
hostapd -d /etc/hostapd/hostapd.conf



Code: Select all
root@runeaudio(rw):~# hostapd -d /etc/hostapd/hostapd.conf
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: Setup AP(wlan0) - device_ap_sme=1 use_monitor=1
nl80211: Enable Probe Request reporting nl_preq=0x1e8dab8
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x1e8dab8 match=
nl80211: Add own interface ifindex 3
nl80211: if_indices[16]: 3
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=DE (DFS-ETSI)
nl80211: 2400-2483 @ 40 MHz 20 mBm
nl80211: 5150-5250 @ 80 MHz 20 mBm (no outdoor)
nl80211: 5250-5350 @ 80 MHz 20 mBm (no outdoor) (DFS)
nl80211: 5470-5725 @ 160 MHz 26 mBm (DFS)
nl80211: 57000-66000 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
Completing interface initialization
Mode: IEEE 802.11g  Channel: 7  Frequency: 2442 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2442 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2442 MHz, cf2=0 MHz)
  * freq=2442
  * vht_enabled=0
  * ht_enabled=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
hostapd_setup_bss(hapd=0x1e8d450 (wlan0), first=1)
wlan0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan0 (all)
wlan0: Deauthenticate all stations
nl80211: sta_remove -> DEL_STATION wlan0 ff:ff:ff:ff:ff:ff --> -22 (Invalid argument)
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 80:1f:02:c5:d1:f0 and ssid "RuneAudioAP"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=11):
     52 75 6e 65 41 75 64 69 6f 41 50                  RuneAudioAP
PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=62): 80 00 00 00 ff ff ff ff ff ff 80 1f 02 c5 d1 f0 80 1f 02 c5 d1 f0 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 0b 52 75 6e 65 41 75 64 69 6f 41 50 01 08 82 84 8b 96 0c 12 18 24 03 01 07
nl80211: Beacon tail - hexdump(len=57): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=3
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=11):
     52 75 6e 65 41 75 64 69 6f 41 50                  RuneAudioAP
  * beacon_int=100
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x2
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x10
nl80211: group_cipher=0x10
nl80211: SMPS mode - off
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x8f418 key_idx=1 set_tx=1 seq_len=0 key_len=16
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   broadcast key
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
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: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: Setup of interface done.
ctrl_iface not configured!
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 6c:f3:73:15:c3:81
nl80211: Assoc Req IEs - hexdump(len=71): 00 0b 52 75 6e 65 41 75 64 69 6f 41 50 01 08 82 84 8b 96 24 30 48 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 32 04 0c 12 18 60 dd 09 00 10 18 02 00 00 04 00 00 dd 07 00 50 f2 02 00 01 00
wlan0: Event ASSOC (0) received
wlan0: STA 6c:f3:73:15:c3:81 IEEE 802.11: associated
STA included RSN IE in (Re)AssocReq
  New STA
ap_sta_add: register ap_handle_timer timeout for 6c:f3:73:15:c3:81 (300 seconds - ap_max_inactivity)
nl80211: Set STA flags - ifname=wlan0 addr=6c:f3:73:15:c3:81 total_flags=0x0 flags_or=0x0 flags_and=0xfffffff1 authorized=0
wlan0: STA 6c:f3:73:15:c3:81 WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1e92f08 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=6c:f3:73:15:c3:81
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
wlan0: STA 6c:f3:73:15:c3:81 WPA: start authentication
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1e92f08 key_idx=0 set_tx=1 seq_len=0 key_len=0
   addr=6c:f3:73:15:c3:81
nl80211: Set STA flags - ifname=wlan0 addr=6c:f3:73:15:c3:81 total_flags=0x0 flags_or=0x0 flags_and=0xfffffffe authorized=0
wlan0: STA 6c:f3:73:15:c3:81 IEEE 802.1X: unauthorizing port
WPA: 6c:f3:73:15:c3:81 WPA_PTK_GROUP entering state IDLE
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state AUTHENTICATION
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state AUTHENTICATION2
WPA: Re-initialize GMK/Counter on first station
GMK - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x8f418 key_idx=1 set_tx=1 seq_len=0 key_len=16
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   broadcast key
WPA: Assign ANonce - hexdump(len=32): 33 75 89 73 57 de 20 42 b4 9c 1a 0e 9a 37 b9 4e 66 f7 88 1d 6a 90 99 fa 1b 4f 15 fb 44 97 f6 14
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state INITPSK
Searching a PSK for 6c:f3:73:15:c3:81 prev_psk=(nil)
Searching a PSK for 6c:f3:73:15:c3:81 prev_psk=(nil)
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state PTKSTART
wlan0: STA 6c:f3:73:15:c3:81 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
WPA: Use EAPOL-Key timeout of 100 ms (retry counter 1)
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 6c:f3:73:15:c3:81 (300 seconds - ap_max_inactivity)
wlan0: Event EAPOL_RX (24) received
IEEE 802.1X: 121 bytes from 6c:f3:73:15:c3:81
   IEEE 802.1X: version=1 type=3 length=117
WPA: Received EAPOL-Key from 6c:f3:73:15:c3:81 key_info=0x10a type=2 key_data_length=22
WPA: Received Key Nonce - hexdump(len=32): af 12 19 fd 4b e7 db a6 13 10 ee 03 d0 d7 f3 6f 17 c6 fb d1 b8 db 89 f6 db 51 67 a9 fa 54 3c f6
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
wlan0: STA 6c:f3:73:15:c3:81 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state PTKCALCNEGOTIATING
Searching a PSK for 6c:f3:73:15:c3:81 prev_psk=(nil)
WPA: PTK derivation - A1=80:1f:02:c5:d1:f0 A2=6c:f3:73:15:c3:81
WPA: Nonce1 - hexdump(len=32): 33 75 89 73 57 de 20 42 b4 9c 1a 0e 9a 37 b9 4e 66 f7 88 1d 6a 90 99 fa 1b 4f 15 fb 44 97 f6 14
WPA: Nonce2 - hexdump(len=32): af 12 19 fd 4b e7 db a6 13 10 ee 03 d0 d7 f3 6f 17 c6 fb d1 b8 db 89 f6 db 51 67 a9 fa 54 3c f6
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: KEK - hexdump(len=16): [REMOVED]
WPA: TK - hexdump(len=16): [REMOVED]
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 6c:f3:73:15:c3:81 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=1 kde_len=46 keyidx=1 encr=1)
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED]
WPA: Use EAPOL-Key timeout of 100 ms (retry counter 1)
wlan0: Event EAPOL_RX (24) received
IEEE 802.1X: 99 bytes from 6c:f3:73:15:c3:81
   IEEE 802.1X: version=1 type=3 length=95
WPA: Received EAPOL-Key from 6c:f3:73:15:c3:81 key_info=0x30a type=2 key_data_length=0
WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
wlan0: STA 6c:f3:73:15:c3:81 WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 6c:f3:73:15:c3:81 WPA_PTK entering state PTKINITDONE
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x1e92f08 key_idx=0 set_tx=1 seq_len=0 key_len=16
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   addr=6c:f3:73:15:c3:81
wlan0: AP-STA-CONNECTED 6c:f3:73:15:c3:81
nl80211: Set STA flags - ifname=wlan0 addr=6c:f3:73:15:c3:81 total_flags=0x1 flags_or=0x1 flags_and=0xffffffff authorized=1
wlan0: STA 6c:f3:73:15:c3:81 IEEE 802.1X: authorizing port
wlan0: STA 6c:f3:73:15:c3:81 RADIUS: starting accounting session 2A0CB9A2-00000000
wlan0: STA 6c:f3:73:15:c3:81 WPA: pairwise key handshake completed (RSN)

Signal 2 received - terminating
hostapd_interface_deinit_free(0x1e8c8c0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1e8c8c0)
wlan0: interface state ENABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: STA 6c:f3:73:15:c3:81 MLME: MLME-DEAUTHENTICATE.indication(6c:f3:73:15:c3:81, 1)
Removing station 6c:f3:73:15:c3:81
wlan0: AP-STA-DISCONNECTED 6c:f3:73:15:c3:81
ap_free_sta: cancel ap_handle_timer for 6c:f3:73:15:c3:81
wlan0: Deauthenticate all stations
nl80211: sta_remove -> DEL_STATION wlan0 ff:ff:ff:ff:ff:ff --> -22 (Invalid argument)
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0x1e8d450 (wlan0))
hostapd_free_hapd_data(wlan0)
hostapd_interface_deinit_free: driver=0x9d65c drv_priv=0x1e8ddb0 -> hapd_deinit
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Disable Probe Request reporting nl_preq=0x89605231
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=3)
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Teardown AP(wlan0) - device_ap_sme=1 use_monitor=1
hostapd_interface_free(0x1e8c8c0)
hostapd_interface_free: free hapd 0x1e8d450
hostapd_cleanup_iface(0x1e8c8c0)
hostapd_cleanup_iface_partial(0x1e8c8c0)
hostapd_cleanup_iface: free iface=0x1e8c8c0


This is with my EDIMAX dongle and a connection from my Samsung tablet.
Code: Select all
Bus 001 Device 005: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby johnbanks » 30 Aug 2016, 15:42

Frank ...

Herewith my info both for Edimax and for Ralink
Ralink & Edimax info.zip
(9.73 KiB) Downloaded 543 times


For each dongle it contains lsmod, lsusb & output from a hostapd debug.

Please take a look at https://github.com/oblique/create_ap/blob/master/howto/realtek.md and let me know yr opinion about this quote in particular ...

Realtek's driver is using an old subsystem which is called wireless-extensions (or wext). Hostapd works only with the new subsystem (which is called nl80211).

Have you taken special measures?

I have done the intial pacman & Rpi updates as you suggested in yr first post - should I also do the git pull for the nightly update?

Thx
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby hondagx35 » 30 Aug 2016, 17:12

Hi johnbanks,

thank you for your time and effort in helping to get the EDIMAX dongle working.
The provided logs are very helpful.

For the protocol:
- The new AP feature works on RuneAudio (RP2/RP3)!
- Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] does not work on all installations!

Please take a look at https://github.com/oblique/create_ap/bl ... realtek.md and let me know yr opinion about this quote in particular ...

The instructions from your link are from Mar 4, 2015.
Many things have changed since then.
The kernel we are using (4.4.19-1) has a new driver (nl80211 compatible) for the Realtek dongles.
Without this you wouldn't be able to start hostapd, because it would fail immediately.
The problem is that the modified hostapd does not work with the latest kernel, so we have to use the default one.

Please try this hostapd.conf:
Code: Select all
# interface and driver
interface=wlan0
driver=nl80211

# WIFI-Config
ssid=RuneAudioAP
channel=7
hw_mode=g
wmm_enabled=1
auth_algs=1
max_num_sta=10
macaddr_acl=0
ignore_broadcast_ssid=0

# WIFI authorization
wpa=2
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP CCMP
#rsn_pairwise=CCMP
wpa_passphrase=RuneAudio



Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby johnbanks » 30 Aug 2016, 20:31

Frank ...

I've tried yr suggested hostapd.conf but without success.
The hostapd debug report hits exactly the same problem ...
hostapd debug rev conf.zip
(2.53 KiB) Downloaded 511 times


I even tried another variant - no security/open AP - but still no success.

Thank you for yr explanation re kernel & Realtek drivers. That will save me time spent on fruitless experiments.

It makes no sense - we are both using RPi2 and the same Edimax dongle. Would there be any value in us exchanging SDHC images by private mail and each trying the other's?

Given it's a kernel/driver/Rpi problem - would it make sense to ask the RaspberryPi organisation for help?

Clearly I'm clutching at straws

Do you have further suggestions?

Should I do the git pull for the nightly update?

Regards
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby hondagx35 » 31 Aug 2016, 09:18

Hi johnbanks,

Do you have further suggestions?

No.

Should I do the git pull for the nightly update?

You can, but there is nothing that belongs to networking.

Would there be any value in us exchanging SDHC images by private mail and each trying the other's?

If you really like to know what the problem is, this would be best option.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi + Runeaudio +Wifi as Accesspoint

Postby dror » 08 Sep 2016, 15:54

Hi Frank,

I was reviewing your post for the AP tweak and just noticed a change from what I did -
The instructions to edit the config.txt file and delete the raspberry.conf file - what are they used for? I'm quite sure they weren't there on your original post, but maybe I've missed them.

Anyway my configuration doesn't include those changes.. are they necessary?

Thanks,
Dror
dror
 
Posts: 140
Joined: 03 Dec 2015, 10:14

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 10 guests