Re: Trying to configure wifi AP (with VPN)
Posted: Wed Jun 01, 2016 5:40 pm
Just rebooted. Standing about 4 feet from it. I'll try now forgetting the network and trying again and then on another device...Be 5 minutes..
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=149920
Code: Select all
# Basic AP parameters
ssid=worky
wpa_psk=6aad4c3ee371b077d2eb402ffe2428eb41021e4e8926da0e4da3d87859d48d4e
interface=wlan0
bridge=br0
channel=1
country_code=GB
# From Realtek docs
max_num_sta=8
# hostapd-rtl specific driver
driver=rtl871xdrv
# WPA 2 PSK
wpa=2
auth_algs=1
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
# 2.4 GHz
hw_mode=g
# Wifi-N
ieee80211n=1
# QoS support - Can't find out if it's called wme or wmm !!
wme_enabled=1
wmm_enabled=1
# Avoid crash at startup with Realtek RTL8188CUS
noscan=1
# from Realtek's docs Quick_Start_Guide_for_SoftAP.pdf and
# SoftAP_Mode_features.pdf. The [DSSS_CCK-40][MAX-AMSDU-7935]
# part comes from the interweb. Use [HT40-] or [HT40+]
ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+][DSSS_CCK-40][MAX-AMSDU-7935]
Code: Select all
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_hwpwrp_detect=0 rtw_ips_mode=1
# From Realtek's doc
# rtw_power_mgnt=1 is Min powersaving, =2 is max powersave, =0 is disable
# rtw_enusbss=0 is default, disable USB autosuspend =1 is enable.
# rtw_hwpwrp_detect=0 is disable hw power pin "RF on/off" detection, =1 is enab$
# rtw_ips_mode=0 is default, max powersave when unassociated, =1 is the faster,$
#
# From: http://curiouser.cheshireeng.com/2015/05/27/raspberry-pi-wifi-stability/
# options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1
Well I understood that was an AP right now or...iOS_Neil wrote:I'm so sorry for all this!
Code: Select all
root@raspberrypi:/etc/hostapd# diff hostapd.conf hostapd.conf.epoch1970
2d1
< ssid=worky
3a3
> ssid=worky
7c7
< country_code=GB
---
> country_code=FR
9a10
>
31c32,33
< ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+][DSSS_CCK-40][MAX-AMSDU-7935]
\ No newline at end of file
---
> ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+][DSSS_CCK-40][MAX-AMSDU-7935]
>
root@raspberrypi:/etc/hostapd# I don't know... I'm not too good at reading hostapd traces, mine or yours.iOS_Neil wrote:Just wish I could be looking into things at this end too but I'm completely clueless! Do you think it's tje RPi itself that can't handle it?
I think *we* terribly want to see this Pi run hostapd under raspbianJPWhite wrote:Rather than get Raspbian to act as a wifi device/AP why not install OpenWrt instead?
https://www.all4os.com/router/how-to-in ... ry-pi.html
JP
"Unable to join the network "worky" "epoch1970 wrote:This is an OPEN ap config. I could connect an iphone and an ipad, same as half the neighborhood I guess
I have gzipped the file. Uncompress it with "gzip -d hostapd.conf.open.gz"
Then try it with "sudo hostapd -d ./hostapd.conf.open"
Agreed...Thanks JP. I'm at a point now where, "this bloody thing isn't going to beat me, it WILL work"! Ultimately, if it's because my Pi can't handle it, fair enough and I will need to look at something else so will definitely keep it in mind.epoch1970 wrote:I think *we* terribly want to see this Pi run hostapd under raspbianJPWhite wrote:Rather than get Raspbian to act as a wifi device/AP why not install OpenWrt instead?
https://www.all4os.com/router/how-to-in ... ry-pi.html
JP![]()
But this is certainly a good option if we fail in the end.
Man, I don't know what to say. With open, we remove any chance the Pi spends too much time computing keys or stuff. Gzip removes the copy-paste operation.iOS_Neil wrote:"Unable to join the network "worky" "epoch1970 wrote:This is an OPEN ap config. I could connect an iphone and an ipad, same as half the neighborhood I guess
I have gzipped the file. Uncompress it with "gzip -d hostapd.conf.open.gz"
Then try it with "sudo hostapd -d ./hostapd.conf.open"![]()
Is he angry, now?Hopefully, my B.I.L. will be round soon - I'll let you know how that goes...I'm starting to be pretty convinced it's my Pi.
He'll be angry if it works and I refuse to give him his Pi backepoch1970 wrote: Is he angry, now?
Code: Select all
dtparam=audio=on
Code: Select all
max_usb_current=1
Code: Select all
wlan0: Setup of interface done.
+rtl871x_get_sta_wpaie, 20:10:7a:26:c4:15 is sta's address
wlan0: Event ASSOC (0) received
wlan0: STA 20:10:7a:26:c4:15 IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
New STA
ap_sta_add: register ap_handle_timer timeout for 20:10:7a:26:c4:15 (300 seconds - ap_max_inactivity)
wlan0: AP-STA-CONNECTED 20:10:7a:26:c4:15
wlan0: STA 20:10:7a:26:c4:15 RADIUS: starting accounting session 574F3F7C-00000000
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 20:10:7a:26:c4:15 (300 seconds - ap_max_inactivity)
^CSignal 2 received - terminating
hostapd_interface_deinit_free(0x8df128)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x8df128)
wlan0: interface state ENABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: STA 20:10:7a:26:c4:15 MLME: MLME-DEAUTHENTICATE.indication(20:10:7a:26:c4:15, 1)
wlan0: STA 20:10:7a:26:c4:15 MLME: MLME-DELETEKEYS.request(20:10:7a:26:c4:15)
Removing station 20:10:7a:26:c4:15
wlan0: AP-STA-DISCONNECTED 20:10:7a:26:c4:15
+rtl871x_sta_remove_ops, 20:10:7a:26:c4:15 is sta address removed
hostapd_ht_operation_update current operation mode=0x0
hostapd_ht_operation_update new operation mode=0x0 changes=0
ap_free_sta: cancel ap_handle_timer for 20:10:7a:26:c4:15
wlan0: Flushing old station entries
wlan0: Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=3
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0x8dfd28 (wlan0))
hostapd_free_hapd_data(wlan0)
hostapd_interface_deinit_free: driver=0x7582c drv_priv=0x8df640 -> hapd_deinit
hostapd_interface_free(0x8df128)
hostapd_interface_free: free hapd 0x8dfd28
hostapd_cleanup_iface(0x8df128)
hostapd_cleanup_iface_partial(0x8df128)
hostapd_cleanup_iface: free iface=0x8df128
ELOOP: remaining socket: sock=7 eloop_data=0x8e03c0 user_data=(nil) handler=0x435a8
pi@raspberrypi:/etc/hostapd $
"Incorrect password" - easypeasyepoch1970 wrote:
I don't know why but I couldn't manage adding 2 attachments to the same post. Here is the wpa2-only file. I'm signing off for now, but I'm subscribed to the thread. Yell if your can make it work...
Did you ctrl-c in the window? I'm not sure that trace was showing something bad.^CSignal 2 received - terminating
No, didn't crtl-c out.epoch1970 wrote:Did you ctrl-c in the window? I'm not sure that trace was showing something bad.^CSignal 2 received - terminating
And yeah, tough luck.
Now you see why my original forum post was written as it was... Perhaps if you can put the SD in a Pi2 it would work?
This is getting seriously weird. This is a long post, make sure you don't miss the hostapd-rt binary package I've linked at the end.iOS_Neil wrote:Evening
Well...Borrowed the Pi2 and facing the same problems I had with mine. I think I may wait until the weekend with spare time and start from scratch again, format card and start right at the top.
Neil.
Code: Select all
root@raspberrypi:~# uname -a
Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux
root@raspberrypi:/home/pi# cat /proc/cmdline
dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x50b5d749 smsc95xx.macaddr=B8:27:EB:XX:YY:ZZ bcm2708_fb.fbswap=1 bcm2709.uart_clock=3000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
root@raspberrypi:~# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwaitCode: Select all
root@raspberrypi:/home/pi# cat /etc/wpa_supplicant/wpa_supplicant.conf
country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1Code: Select all
root@raspberrypi:/usr/src# md5sum hostapd-rtl_2.4-4_armhf.deb
773fc8b363b697a90a9f30c28cd4ea0d hostapd-rtl_2.4-4_armhf.debCode: Select all
sudo dpkg -i hostapd-rtl_2.4-4_armhf.deb