From 2c2bfebca407b529576bba4d133823ffdf6a5fd6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 26 Nov 2021 23:30:15 +0200 Subject: [PATCH] Fix bool type values for setband wpa_add_scan_freqs_list() was updated to use bool for the is_6ghz argument, but these callers were missed when updating the values from 0/1 to false/true. Signed-off-by: Jouni Malinen --- wpa_supplicant/scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index b8cba2ee9..b0094ca6c 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -752,13 +752,13 @@ static void wpa_setband_scan_freqs(struct wpa_supplicant *wpa_s, if (wpa_s->setband_mask & WPA_SETBAND_5G) wpa_add_scan_freqs_list(wpa_s, HOSTAPD_MODE_IEEE80211A, params, - 0); + false); if (wpa_s->setband_mask & WPA_SETBAND_2G) wpa_add_scan_freqs_list(wpa_s, HOSTAPD_MODE_IEEE80211G, params, - 0); + false); if (wpa_s->setband_mask & WPA_SETBAND_6G) wpa_add_scan_freqs_list(wpa_s, HOSTAPD_MODE_IEEE80211A, params, - 1); + true); }