sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
921 stars 126 forks source link

Wi-Fi router - configuration hostapd #73

Closed JBielanski closed 5 years ago

JBielanski commented 5 years ago

I tried to configure WiFi access point and my every attempts have failed. I used following tutorials: https://wiki.gentoo.org/wiki/Home_router https://wiki.gentoo.org/wiki/Hostapd When I try to start hostapd service then during starting net.wlan0 it's looking for connection to network instead of using hostapd configuration.

sakaki- commented 5 years ago

Are you still using NetworkManager? If so, you probably either need to disable it, or to add wlan0 to its list of ignored interfaces (see e.g. here).

sakaki- commented 5 years ago

@JBielanski, I believe you have posted the solution yourself to this problem on the Gentoo forums here? Your answer copied below for others who may come to this by search engine:

Problem has been solved. The source of problem was configuration file:

# DNS Domain
dns_domain_lo="astro-pi64.org"

# CONFIG eth0 [network access]
config_eth0="dhcp"

# WIFI ACCESS POINT
# ** network connection
#modules_wlan0="wpa_supplicant"
#config_wlan0="dhcp"
# ** access point
modules_wlan0="[b]!iw[/b] !iwconfig !wpa_supplicant"
config_wlan0="192.168.66.3/24 brd 192.168.66.0"
routes_wlan0="default via 192.168.66.1"
rc_net_wlan0_provide="!net" 

I missed to exclude completely iw interface (!iwconfig is not enough, I have to exclude also !iw). I had seen this mistake when I tried to setup AP on on computer for testing.

Thanks for posting this, closing now. Please re-open if I have got the wrong end of the stick, and these issues are not related.