I have a Pi 3 B+ setup as Wi-Fi access point and would like to simulate packet delays and packet loss for connected devices communicating through the AP. I thought that I could achieve this using tc and iptables to cause packet jitter and loss for connected devices communicating through the AP but those packets are unaffected. The only packets that are affected are packets from a connected device who's destination IP is the AP or AP packets who's destination who's destination IP is a connected device. Any insight on how to affect connected devices communicating through the AP would be greatly appreciated. Also I cannot modify the software or configuration on the devices connected to the AP. I tried commands similar to the ones below on the AP without success.
tc qdisc change dev wlan0 root netem delay 100ms 10ms
tc qdisc change dev wlan0 root netem loss 0.1
iptables -D INPUT -m statistic --mode random --probability 0.2 -j DROP
iptables -D OUTPUT -m statistic --mode random --probability 0.2 -j DROP
iptables -D FORWARD -m statistic --mode random --probability 0.2 -j DROP