Queue only wifi 2,4GHZ

To add only devices connected to the 2.4GHz Wi-Fi to the queue, you can use the interface property to check if the device is connected to the 2.4GHz interface. Assuming your 2.4GHz interface is named something like wlan1, you can modify your script as follows:

:local queueName “Client- $leaseActMAC”;

:if ($leaseBound = “1” && [/interface wireless registration-table get [find where mac-address=$leaseActMAC && interface=“wlan1”] interface] = “wlan1”) do={
/queue simple add name=$queueName target=($leaseActIP . “/32”) limit-at=60M/60M max-limit=60M/60M comment=[/ip dhcp-server lease get [find where active-mac-address=$leaseActMAC && active-address=$leaseActIP] host-name];
} else={
/queue simple remove $queueName
}

This script checks if the device is connected to the wlan1 interface (which represents the 2.4GHz network) before adding it to the queue. Adjust wlan1 to match your actual 2.4GHz interface name.