ap_set_wireless: Fix BSS_max_Idle_period value check

strtol() result comparison againts LONG_MIN/LONG_MAX does no make sense
with the typecast to int, so move that typecast to happen only after
this check.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
1 file changed