Roam margin (roaming hysteresis)
How much stronger a candidate access point must be than the current one before a client agrees to move to it.
The network analogy
Hysteresis on a routing metric or a thermostat: the new path has to beat the old one by a set amount before traffic switches, so small fluctuations do not cause flapping.
Why it matters for wireless
The client, not the network, decides when to roam, and its margin sets how early or late that happens. Too small and a client bounces between two access points, too large and it clings to a weak one, and either way each roam is a gap your application's timeout has to cover.
Roam margin is the signal advantage a candidate access point needs over the current one before a client roams to it. It is the client’s hysteresis.
The published figures differ by platform. Apple documents that an iPhone or iPad needs a candidate 8 dB stronger while it is transmitting and 12 dB while idle1, and a Mac needs 12 dB. In Apple’s example, an iPhone at -75 dBm looks for a candidate at -67 dBm or better, where a Mac needs -63 dBm. In Linux, the same decision sits in wpa_supplicant_need_to_roam_within_ess in events.c. It compares the candidate’s signal with the current one against a min_diff value. A 2023 proposed patch2 would lower that value by 2 when the current signal is at or below the background-scan threshold and the candidate is above it, on top of reductions already in the code. This page did not confirm that the patch was merged. An earlier 2012 patch3 proposed verifying that the selected BSS has a better signal level before roaming, because a signal-level delta alone had caused a roam to a weaker BSS. This page does not give wpa_supplicant’s base value, because the source opened here does not state a current one.
The margin has two failure modes. Too small, and a client between two access points sees each one as better in turn. A patent on adaptive hysteresis describes a larger margin as a way to avoid flip-flopping between two APs of similar signal, and notes that a 2 dB gain may not justify a roam. That is ping-pong roaming. Too large, and the client stays on a distant access point while a much closer one is available. The same patent calls this behavior sticky, and it is the sticky client problem.
A margin does not make a roam faster. It only decides when the gap starts. See the Apple device page, the macOS page and the wpa_supplicant page for each client’s documented behavior.
Check the margin before you blame the access point for a roam you did not expect.
About this page
Built from 4 sources: 3 protocol owners and alliances and 1 research paper or thesis. Researched and drafted with AI assistance. How pages are made
- First published
- Last updated
Cite this page
Plain
Ben Rutter. "Roam margin (roaming hysteresis)." OT Wireless, published October 18, 2026. https://otwireless.com/glossary/roam-margin/
APA 7
Rutter, B. (2026, October 18). Roam margin (roaming hysteresis). OT Wireless. https://otwireless.com/glossary/roam-margin/
BibTeX
@misc{rutter2026roammargin,
author = {Rutter, Ben},
title = {{Roam margin (roaming hysteresis)}},
year = {2026},
howpublished = {\url{https://otwireless.com/glossary/roam-margin/}},
organization = {OT Wireless},
}