mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-18 09:12:43 +01:00
dpp: scale PKEX timeout by the number of frequencies used
If the number of frequencies used is very small reduce the timeout to avoid waiting for extended periods of time.
This commit is contained in:
parent
294426b450
commit
b5aff74e3b
@ -59,6 +59,7 @@
|
||||
#define DPP_FRAME_RETRY_TIMEOUT 1
|
||||
#define DPP_AUTH_PROTO_TIMEOUT 10
|
||||
#define DPP_PKEX_PROTO_TIMEOUT 120
|
||||
#define DPP_PKEX_PROTO_PER_FREQ_TIMEOUT 10
|
||||
|
||||
static uint32_t netdev_watch;
|
||||
static struct l_genl_family *nl80211;
|
||||
@ -4284,7 +4285,8 @@ static void __dpp_pkex_start_enrollee(struct dpp_sm *dpp)
|
||||
{
|
||||
dpp->current_freq = dpp->freqs[0];
|
||||
|
||||
dpp_reset_protocol_timer(dpp, DPP_PKEX_PROTO_TIMEOUT);
|
||||
dpp_reset_protocol_timer(dpp,
|
||||
dpp->freqs_len * DPP_PKEX_PROTO_PER_FREQ_TIMEOUT);
|
||||
|
||||
l_debug("PKEX start enrollee (id=%s)", dpp->pkex_id ?: "unset");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user