From: Jouni Malinen Date: Fri, 26 Nov 2021 21:30:15 +0000 (+0200) Subject: Fix bool type values for setband X-Git-Tag: hostap_2_10~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2bfebca407b529576bba4d133823ffdf6a5fd6;p=thirdparty%2Fhostap.git 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 --- 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); }