I suppose your internet router is using a 5 GHz band. As @jake already noted in his comment there is a limitation of the wifi device on the RasPi. In my tutorial you have used, you will find in section ♦ Details - hostapd (Step 2):
Please set the channel to the same value than wlan0 is connected to the wifi from your router. It is the restriction from the hardware and may avoid confusion with channel setting. hostapd will always set the channel to the same value than from the client connection, no matter what you set here.
You can configure the internet router to use only the 2.4 GHz band. Then the access point on the RasPi will also use the same channel.
If the internet router is using dual band, you can restrict the RasPi client connection for the uplink (wlan0) to only use specific frequencies. In /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
add one of these lines just above the network={}
block (not inside it):
# for the 2.4 GHz band
freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
# for the 5 GHz band
freq_list=5170 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700
If you want to be independent from the uplink then you have to use an additional USB/WiFi dongle. How to use this you can look at Access point as WiFi router/repeater with additional WiFi-dongle.
ifconfig
orip addr
? – kuzeyron Jul 26 '19 at 11:00sudo cat /etc/hostapd/hostapd.conf |grep channel
,sudo iwlist wlan0 channel
– Ephemeral Jul 26 '19 at 12:52channel will need to be configured separately with iwconfig.`
– Ephemeral Jul 26 '19 at 13:17