Debugging a live roam failure, step by step
A scanner stalls or drops every time someone walks it down one aisle. Capture the right evidence on the device, the APs and the air, then decide whether it is RF, authentication or the network behind the AP.
The scenario
A picker walks a rugged Android scanner from aisle 12 to aisle 14. Halfway down aisle 13 the scan app freezes for a few seconds, or shows “no connection”, then recovers. Other devices in other aisles are fine. Nobody changed anything (that anyone remembers).
A roam is a chain of small steps. When it breaks, exactly one link in the chain is usually slow or missing:
- Decide. The device notices the current AP is getting weak and scans for a better one.
- Join. It sends (re)association to the new AP and gets an answer.
- Keys. It proves it is allowed in: a full 802.1X login, or a fast roam (802.11r, OKC or PMK caching) and the 4-way handshake.
- Address. It still has a valid IP address on the right VLAN, and the network knows where it is now (ARP, switch MAC tables).
- Traffic. The app’s packets flow again.
Your job is to find which link is broken. Do not change settings until you know.
Before you start
- One device, one route, one time window. Pick one handheld that fails reliably and one walking route that triggers it. Write down the device’s Wi-Fi MAC address. Turn off MAC randomisation for that network on the device if your MDM allows it, or the MAC in your logs will not match.
- Clocks. Device, controller or cloud dashboard, and your capture laptop must agree on time (NTP). A timeline across three sources is useless if they are 40 seconds apart.
- A second person helps. One walks with the device, one watches the controller live. Or record the walk on your phone with the time visible.
- Authorised networks only. Only do this on networks you are authorised to administer. Tell the floor supervisors before a live walk or a capture. A monitor-mode capture will see nearby devices, not just yours. USB debugging and bug reports can contain more than Wi-Fi logs: follow your MDM policy.
- Evidence first, changes later. Collect evidence during the incident if you must; change settings only in a quiet window.
- Change nothing yet. You are collecting evidence. Every “quick fix” before you have the timeline destroys the evidence.
Steps
1. Write down the symptom precisely
- Which device model, OS version and Wi-Fi firmware (for Zebra, the LifeGuard/BSP level).
- Where exactly (aisle, rack height, which end), and which direction of travel.
- What the user sees: app frozen, “no network”, scan rejected, has to log in again, needs a reboot.
- How long: two seconds, twenty seconds, until reboot.
“Drops in aisle 13 when walking north, freezes about 5 seconds, recovers on its own” is a lead. “Wi-Fi is bad in the warehouse” is not.
2. Reproduce it with a constant traffic stream
You need traffic during the walk so you can see exactly when it stops. From a laptop on the wired network, ping the handheld’s IP once per second for the whole walk:
ping -t 10.20.30.57
Source: ping, Microsoft Learn
On Linux or macOS, ping runs until you stop it. On Linux (iputils) -D prints a timestamp in front of each reply, which makes the gaps easy to match to the clock:
ping -D 10.20.30.57
Source: ping(8), Linux man-pages
Note the clock time of the first lost reply and the first good one again. That gap is the outage you are hunting. Many handhelds go into power save and answer pings slowly; a few slow replies are normal, a run of timeouts is not.
3. Capture the client side
Android handhelds (including most rugged scanners). With USB debugging allowed by your MDM policy, start a log before the walk and stop it after:
adb logcat -v threadtime > roam-walk-01.log
Source: Logcat command-line tool, Android Developers
threadtime is the default format and shows date and time on every line, which you need for the timeline. Search the log for the Wi-Fi supplicant and connectivity lines around your outage time (look for the AP MAC addresses, “roam”, “disconnect”, “reason”, “DHCP”). Tag names differ between Android versions and vendors, so search by time first, tag second.
If you need everything in one file (for the vendor’s support desk), take a bug report right after the failure:
adb bugreport roam-walk-01
Source: Capture and read bug reports, Android Developers
Zebra devices also have their own Wi-Fi diagnostic and logging options in Wi-Fi Manager. Zebra says to use them only at the direction of Zebra Support, and logging can slow the device. Open a case first if you need them.
Windows laptops or vehicle-mount terminals. Two commands, as administrator. The current connection, with signal and the BSSID (the AP radio) you are on:
netsh wlan show interfaces
Source: netsh wlan, Microsoft Learn
And afterwards, the full history of connects, disconnects and reasons as an HTML report:
netsh wlan show wlanreport
Source: Analyze the wireless network report, Microsoft Support
What to note from the client side: the signal (RSSI) on the old AP just before it gave up, whether it tried a new AP at all, which one, and any disconnect reason.
4. Capture the infrastructure side
On the controller, cloud dashboard or the AP itself, look up the client by its MAC address and pull every event in your outage window:
- association and reassociation to which AP and radio, and the result code
- authentication result (RADIUS accept or reject, and how long RADIUS took)
- fast roam used or not (look for FT, OKC or PMK cache in the event text)
- DHCP events, if your system logs them
- deauthentication or disassociation sent by the AP and the reason code. “Sent by the AP” points at a steering feature, a timeout or a policy, not the client.
Also note the old AP and the new AP, their channels and their transmit power at that moment.
5. Capture the air (when steps 3 and 4 do not agree)
An over-the-air capture is the only neutral witness. You need a laptop Wi-Fi adapter that supports monitor mode (see the Wireshark wiki for your OS) and it must listen on the same channel as the AP. A roam crosses two channels, so either use two adapters (one per channel) or capture twice: once on the old AP’s channel, once on the new one.
Stand near the point where the device fails. Useful display filters, with the device’s MAC as an example (00:00:5e:00:53:2a):
wlan.addr == 00:00:5e:00:53:2a && (wlan.fc.type == 0 || eapol)
Source: IEEE 802.11 and EAPOL display filter fields, Wireshark
That shows management frames (probe, authentication, (re)association, deauthentication) and the EAPOL key frames of the 4-way handshake for that one device. Deauthentication and disassociation frames carry a reason code in wlan.fixed.reason_code.
If the WLAN uses WPA2/WPA3 the data frames are encrypted, so DHCP and ARP are only visible on the wire. Capture them on the AP’s switch port or the uplink, or on the DHCP server:
dhcp.hw.mac_addr == 00:00:5e:00:53:2a || arp.src.proto_ipv4 == 10.20.30.57
Source: DHCP and ARP display filter fields, Wireshark
Add a column for wlan_radio.signal_dbm to see how loud the device was at your capture point when it gave up.
6. Build the timeline, one line per event
Put the client log, the controller events, the capture and the ping gaps in one list, in time order. For example:
| Time | Source | Event |
|---|---|---|
| 10:42:11 | ping | last reply |
| 10:42:11 | client | RSSI on AP-13A at -79 dBm |
| 10:42:13 | air | reassociation request to AP-14B |
| 10:42:13 | air | reassociation response, success |
| 10:42:13 | air | EAPOL 1 of 4 … 4 of 4 complete |
| 10:42:14 | wire | DHCP request, no answer |
| 10:42:19 | wire | DHCP discover, offer, request, ack (new subnet) |
| 10:42:20 | ping | replies again (new IP) |
The example is invented to show the shape. Your times will differ.
7. Decide which link broke
Read the timeline in order and stop at the first link that is slow or missing:
| What you see | The broken link | Go to |
|---|---|---|
| Signal falls far below your design level and the device never tries another AP | Decide: the client holds on too long | W3 Sticky clients, W9 Coverage gaps |
| The device tries APs that are themselves weak, or flips between two APs | Decide: cell design or noise | W1 Channel overlap, W2 Power mismatch, W6 RF noise |
| The AP sends a deauthentication right before the drop | Join: a steering or load feature kicked it | W4 Band steering, W3 Sticky clients |
| Reassociation rejected, or authentication fails on one AP only | Join or keys: settings differ between APs | W5 SSID drift, W7 Controller config |
| A full 802.1X login (many EAP frames, a RADIUS round trip) on every roam | Keys: fast roaming not working | W5 SSID drift |
| Keys complete fine, then no traffic, a new DHCP exchange or a new IP | Address: VLAN or DHCP on roam | W8 VLAN and DHCP on roam |
| Only on 2.4 GHz, or only for one device model | Band or client | W10 2.4 vs 5 GHz split |
8. Fix one thing, then repeat the exact same walk
- Change one setting, write down what, where and when, and how to put it back.
- Do the change in a quiet window: many WLAN changes (security, 802.11r, channel width) make every client on that SSID or radio reconnect.
- Repeat step 2 to 6 with the same device, the same route and the same captures. Compare the timelines.
- The fix is proven when the gap in the ping stream is gone or short enough for the app, on several walks and in both directions.
What good and bad look like
- Good: on the walk, the device moves to the next AP while the old one is still at a usable level (common voice design guidance, such as the Cisco 8821 phone guide, puts the cell edge at about -67 dBm as a starting point, and Cisco’s own phone guides differ; see W9). Reassociation and keys finish without a full 802.1X login, the IP address does not change and the ping stream barely notices.
- Bad: the device clings until the signal is far below that, then disconnects, starts from scratch and asks DHCP for a new address.
- Unclear: the log and the controller disagree. Trust the over-the-air capture.
Traps
- Capturing on the wrong channel. You will see nothing and think the device sent nothing. Check the AP’s channel at that moment; automatic channel changes may have moved it.
- MAC randomisation. The device may use a different MAC per SSID. Use the MAC shown in the device’s connection details for that network.
- Logging too much. Verbose logging on the device or a debug on a busy controller can slow both. Time-box it and turn it off afterwards.
- One walk is an anecdote. Roaming depends on direction, speed, body position and stock in the racks. Repeat.
- Blaming the app. Some scan apps hold a TCP session that dies on any short gap, and some reconnect cleanly. If the network gap is short and the app still fails, talk to the app vendor with your timeline.
Client side vs infrastructure side
| Check on the device | Check on the infrastructure |
|---|---|
| Roam trigger and scan behaviour (vendor defaults first) | AP channel, power and neighbours at the failure spot |
| Band selection and channel mask (does it even scan the new AP’s channel?) | SSID security, fast-roam settings and VLAN on the old and the new AP |
| Fast-roam options (FT, OKC, PMKID) match the WLAN | Steering features (band steering, load balancing, sticky-client steering) |
| Firmware/BSP level, same across the fleet | Controller or cloud event log for the MAC |
| Power-save mode and the app’s reconnect behaviour | DHCP scope, lease time and relays; RADIUS response time |