On 12/10/2024 4:44 PM, Jose Ignacio Tornos Martinez wrote:
Yes, Can you pls share the complete steps and commands?
Sure, I offered it before.
You need NetworkManager and of course NetworkManager-wifi packages installed
and working.
We are using Fedora/rhel with the default configuration and you can configure,
before the next steps, the wifi interface as sta from NetworkManager or not
(with no wifi configuration the same result happens) because it is going to
be unmanaged.
After booting (wlp1s0 is the wifi interface for ath11k and there are no other
wifi cards in the system), here the necessary steps with our network
configuration:
# nmcli device set wlp1s0 managed off
# ip link set wlp1s0 up
# ip link add name wifi_br0 type bridge
# ip addr add 192.168.254.1/24 dev wifi_br0
# ip link set wifi_br0 up
# iw dev wlp1s0 interface add wlp1s0_0 type __ap
# iw dev wlp1s0 interface add wlp1s0_1 type __ap
# systemd-run --unit hostapd1 hostapd -dd /tmp/hostapd1.conf
# systemd-run --unit hostapd2 hostapd -dd /tmp/hostapd2.conf
# dnsmasq \
--pid-file=/tmp/dnsmasq_wireless.pid \
--port=63 \
--no-hosts \
--interface=wifi_br0 \
--bind-interfaces \
--dhcp-range=192.168.254.2,192.168.254.205,60m \
--dhcp-option=option:router,192.168.254.1 \
--dhcp-leasefile=/var/lib/dnsmasq/hostapd.leases \
--dhcp-lease-max=200
After booting I get the same issue just doing:
# nmcli device set wlp1s0 managed off
# ip link set wlp1s0 up
And the step that you commented in a previous answer:
# iw dev wlp1s0 interface add wlp1s0_0 type __ap
# iw dev wlp1s0 interface add wlp1s0_1 type __ap
# hostapd hostapd1.conf &
# hostapd hostapd2.conf &
Got it, you use Networkmanager, so that the add interface type will
always be managed. But it's still work fine in my device that I use
"hostapd hostapd2.conf" to up the second ap.
So could you share your log about it? Enable debug and tracer about
ath11k and mac80211, and share the the recorded trace?
You can use whatever hostapd configuration (with the suitable interface name).
Thanks
Best regards
Jose Ignacio