Unable to connect to hotspot

I am unable to connect to the hotspot created from opensuse machince. I have set up the hotspot via NetworkManager using the following configuration:

nmcli con add type wifi ifname wlo1 con-name hotspot autoconnect yes ssid Lair
nmcli con modify hotspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify hotspot wifi-sec.key-mgmt wpa-psk
nmcli con modify hotspot wifi-sec.psk "12345678"

The connection has been successfully set up, but when i try to connect to it from my mobile device it is showing me an error stating that can’t connect to the wifi.

lspci -nnk

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: Lenovo Device [17aa:3974]
	Kernel driver in use: r8169
	Kernel modules: r8169
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852CE PCIe 802.11ax Wireless Network Controller [10ec:c852] (rev 01)
	DeviceName: Realtek
	Subsystem: Lenovo Device [17aa:5852]
	Kernel driver in use: rtw89_8852ce
	Kernel modules: rtw89_8852ce

When i try to connect my mobile devices abruptly show can’t connect error. I tried connecting while monitoring the dmesg logs for my wireless, but there was no errors.

journalctl -fu NetworkManager

Mar 05 16:51:01 Lair NetworkManager[9864]: <info>  [1772709661.2966] device (wlo1): state change: secondaries -> activated (reason 'none', managed-type: 'full')
Mar 05 16:51:01 Lair NetworkManager[9864]: <info>  [1772709661.2969] device (wlo1): Activation: successful, device activated.
Mar 05 16:51:01 Lair dnsmasq[19144]: started, version 2.92 cachesize 2000
Mar 05 16:51:01 Lair dnsmasq[19144]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 Lua TFTP conntrack ipset nftset auth DNSSEC loop-detect inotify dumpfile
Mar 05 16:51:01 Lair dnsmasq[19144]: chown of PID file /run/nm-dnsmasq-wlo1.pid failed: please add capability CAP_CHOWN
Mar 05 16:51:01 Lair dnsmasq-dhcp[19144]: DHCP, IP range 10.42.0.10 -- 10.42.0.254, lease time 1h
Mar 05 16:51:01 Lair dnsmasq[19144]: reading /etc/resolv.conf
Mar 05 16:51:01 Lair dnsmasq[19144]: using nameserver 127.0.2.2#53
Mar 05 16:51:01 Lair dnsmasq[19144]: using nameserver 127.0.2.3#53
Mar 05 16:51:01 Lair dnsmasq[19144]: cleared cache

Turning off protected management frames has let me connect to the hotspot.
nmcli con modify hotspot 802-11-wireless-security.pmf 1

But I am not getting internet access in my mobile, if I am connected to cloudflare warp in the PC. I was able share the internet via hotspot in arch linux before. Any help on this would be appreciated.

The issue is solved completely by turning on the firewall and allowing masquerade. If you want quick solution just copy paste the below

sudo firewall-cmd --add-masquerade --permanent
sudo firewall-cmd --reload 

If you don’t want the firewall just use kernel IP forwarding.
sudo sysctl -w net.ipv4.ip_forward=1