3

I'd like to use my Pi4 as a wifi repeater for some home automation devices which only accept 2.4GHz networks. I've successfully set up the pi as a wifi repeater, and I'm able to connect to the network from my phone. However, even though I tried to configure hostapd for 802.11g, the network ends up being 5GHz. How can I fix this?

The hostapd.conf file:

interface=ap0
driver=nl80211
ssid=RPiNet
country_code=US
hw_mode=g
channel=1
auth_algs=1
wpa=2
wpa_passphrase=****
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

In case it's relevant, I'm using systemd-networkd to manage a repeater between the wlan0 and ap0 interfaces, following instructions here.

srossd
  • 151
  • 4

1 Answers1

2

It turns out this was happening because I was trying to use the same wifi card as both a client and an access point. It was connecting to the WLAN network on channel 100, so depsite the hostapd settings, the AP could only operate on channel 100. I changed my wpa_supplicant settings (using the freq_list parameter) to force wpa_supplicant to connect via 2.4GHz. The AP is now broadcasting at 2.4GHz as well.

srossd
  • 151
  • 4