staging: r8188eu: fix the number of probereq retries
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 15:42:51 +0000 (16:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:26:13 +0000 (13:26 +0100)
commit77833c305dc897c094e5c5419c27568509346609
tree19a23569a132335febba3f4fb2cbe186d85354e7
parente0e14bbee1811209435d3ba29008769bd7a45057
staging: r8188eu: fix the number of probereq retries

issue_probereq_ex sends a probe request and retries if this fails. There's
no point in making the number of retries configurable. Hard-code the value
that's used by issue_probereq_ex's only caller.

Simplify the code to check the loop condition only once.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221126154253.178275-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h