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.