How do I control background scanning for roaming Wi-Fi devices?

Answer

When using the supplicant, this can be set either as a global parameter or in a network block:

 bgscan="simple:15:-75:60" simple is the algorithm 15 is the scan interval in a low signal condition -75 is the RSSI threshold defining low or high signal condition 60 is the scan interval in a high signal condition