airtime_policy: Convert Boolean to C99 bool

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-04-24 01:38:10 +03:00 committed by Jouni Malinen
parent f75a0339d5
commit 2c55e67aaf

View file

@ -134,8 +134,8 @@ static void update_airtime_weights(void *eloop_data, void *user_data)
unsigned int num_sta_min = 0, num_sta_prod = 1, num_sta_sum = 0, unsigned int num_sta_min = 0, num_sta_prod = 1, num_sta_sum = 0,
wt_sum = 0; wt_sum = 0;
unsigned int quantum; unsigned int quantum;
Boolean all_div_min = TRUE; bool all_div_min = true;
Boolean apply_limit = iface->conf->airtime_mode == AIRTIME_MODE_DYNAMIC; bool apply_limit = iface->conf->airtime_mode == AIRTIME_MODE_DYNAMIC;
int wt, num_bss = 0, max_wt = 0; int wt, num_bss = 0, max_wt = 0;
size_t i; size_t i;
@ -169,7 +169,7 @@ static void update_airtime_weights(void *eloop_data, void *user_data)
* integers. */ * integers. */
if (bss->num_backlogged_sta && if (bss->num_backlogged_sta &&
bss->num_backlogged_sta % num_sta_min > 0) bss->num_backlogged_sta % num_sta_min > 0)
all_div_min = FALSE; all_div_min = false;
/* If we're in LIMIT mode, we only apply the weight /* If we're in LIMIT mode, we only apply the weight
* scaling when the BSS(es) marked as limited would a * scaling when the BSS(es) marked as limited would a
@ -178,7 +178,7 @@ static void update_airtime_weights(void *eloop_data, void *user_data)
if (!apply_limit && bss->conf->airtime_limit) { if (!apply_limit && bss->conf->airtime_limit) {
if (bss->num_backlogged_sta * wt_sum > if (bss->num_backlogged_sta * wt_sum >
bss->conf->airtime_weight * num_sta_sum) bss->conf->airtime_weight * num_sta_sum)
apply_limit = TRUE; apply_limit = true;
} }
} }
if (all_div_min) if (all_div_min)