I would like to know if AP6181 wifi chipset and its driver ap6210 has the capability to run simultaneosly at the same time as AP and as a STATION mode (like in some mobile phones and tablets where the wifi chipset can run in AP mode (hotspot) and in Station mode so one side it allows connecting to the other clients while the wifi chipset itself is connecting to a wifi router.
I want to know if this AP6181 has the capability (being on SDIO interface) to run simultaneously at the same time in both AP and STATION mode?
If you use a Raspbian-like distro, navigate and share connection is a simple task. In first, you will need to configure a dhcp server to offer IPs. You can use this link as example to perform this task:
After that, you need configure a few firewall rules. Make a file named firewall.sh (example with 192.168.0.0 network):
#!/bin/sh
/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp
echo “1” >/proc/sys/net/ipv4/ip_forward
/sbin/iptables -P FORWARD DROP
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
/sbin/iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
/sbin/iptables -A FORWARD -d 192.168.0.0/24 -mstate --state ESTABLISHED,RELATED -j ACCEPT
Save the file and make it an executable:
chmod 750 firewall.sh
./firewall