--- a/wpa_supplicant/functions.sh +++ b/wpa_supplicant/functions.sh @@ -847,9 +847,10 @@ wpa_hysteresis_check () { local TIME local TIMESTAMP local TIMEWAIT + local TIMEDELTA=10 TIME=$(date +%s) - # current time minus 4 second event buffer - TIMEWAIT=$(($TIME-4)) + # current time minus TIMEDELTA second event buffer + TIMEWAIT=$((TIME-TIMEDELTA)) # get time of last event TIMESTAMP=$(cat $WPA_CLI_TIMESTAMP) # compare values, allowing new action to be processed