jvpdedz
Posts: 5
Joined: Thu Apr 26, 2018 4:33 pm

RPi 3 B+ access point

Thu Apr 26, 2018 5:52 pm

Hello,

I'm trying to make a WiFi access point out of a Raspberry Pi 3 Model B+ and I met some difficulties.

While using the regulatory domain for France, I try to use the 5 GHz band. As the bulk of this band require Dynamic Frequency Selection (DFS), I tried to use the Automatic Channel Selection (ACS) feature of hostapd.

Here is the result:

Code: Select all

~ $ sudo hostapd /etc/hostapd/hostapd.wlan0.conf
Configuration file: /etc/hostapd/hostapd.wlan0.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
ACS: Automatic channel selection started, this may take a bit
wlan0: interface state COUNTRY_UPDATE->ACS
wlan0: ACS-STARTED 
ACS: Unable to collect survey data
ACS: All study options have failed
Interface initialization failed
wlan0: interface state ACS->DISABLED
wlan0: AP-DISABLED 
ACS: Possibly channel configuration is invalid, please report this along with your config file.
ACS: Failed to start
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: interface state DISABLED->DISABLED
wlan0: interface state DISABLED->DISABLED
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started
~ $ 
The ACS do not work and hostapd stops.

Code: Select all

~ $ grep PRETTY /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"

Code: Select all

~ $ cat /etc/debian_version
9.4

Code: Select all

~ $ uname -a
Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

Code: Select all

~ $ iw reg get
global
country FR: DFS-ETSI
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 40), (N/A)

Code: Select all

~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

auto wibr
iface wibr inet manual
	bridge_ports none
	#bridge_ports eth0
	# hostapd will add wlan0
	bridge_stp off
	bridge_waitport 0
	bridge_fd 0
	#post-up ifup wlan0
	#pre-down ifdown wlan0
Obviously, dhcpcd was removed.

Code: Select all

~ $ ip link ls
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether b8:27:eb:26:a2:1a brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether b8:27:eb:73:f7:4f brd ff:ff:ff:ff:ff:ff
4: wibr: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff

Code: Select all

~ $ sudo cat /etc/hostapd/hostapd.wlan0.conf
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
ctrl_interface=/var/run/hostapd.wlan0
ctrl_interface_group=0
channel=acs_survey
chanlist=98-142
hw_mode=a
country_code=FR
ieee80211d=1
# limit the frequencies used to those allowed in the country
wme_enabled=1
# QoS support
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]

# Beacon interval in kus (1.024 ms)
beacon_int=100

# DTIM (delivery trafic information message)
dtim_period=2

# RTS/CTS threshold; 2347 = disabled (default)
rts_threshold=2347

# Fragmentation threshold; 2346 = disabled (default)
fragm_threshold=2346

#
ssid=rpi
auth_algs=1
wpa=2
wpa_passphrase=****************
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
macaddr_acl=0
# only if in bridged mode
bridge=wibr
Is there anything to be done? Is it a limitation with the brcmfmac driver?
Can I hope that this will work someday?

Thanks

Potatismoose
Posts: 1
Joined: Wed Aug 12, 2020 11:25 am

Re: RPi 3 B+ access point

Wed Aug 12, 2020 11:27 am

Hi. Did you solve this? I´ve been trying to find a solution because I have the exact same problem. Been trying now for 3 days without luck. I´m starting to believe it´s my router (mesh) that is the problem.

Return to “Networking and servers”