[PATCH] NAN: Fix remain-on-channel retry timeout unit

Jouni Malinen j at w1.fi
Fri Nov 20 01:56:26 PST 2026


On Thu, Nov 19, 2026 at 09:26:04AM +0800, Zhao Dongdong wrote:
> wpas_nan_usd_start_listen_cb() schedules the listen retry with
> eloop_register_timeout(0, 500, ...).  The second argument is
> microseconds (src/utils/eloop.h), so the "Restart the listen state
> after a delay" retry actually fires after 0.5 ms.  With a persistent
> remain-on-channel failure this is a tight retry loop: measured on
> mac80211_hwsim with the failure branch forced, 7018 ROC requests in
> the 5 s discovery wait (~1.4 kHz).
> 
> Use 500 ms (0, 500000) instead: 11 requests in 5 s in the same test.
> The original commit specifies no delay value; 500 ms is a sane retry
> backoff.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list