]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Don't assign pointer to bool
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 10 Jan 2024 12:33:59 +0000 (14:33 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 21:47:20 +0000 (23:47 +0200)
As it may result in compilation error.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/wpa_supplicant.c

index 1697d4a1f67c9dee65f9ef99ade82554e4784da3..63201b3dafa92ed0d54394a95553184a7cc9d191 100644 (file)
@@ -2014,7 +2014,7 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
                (wpa_s->connection_ht || wpa_s->connection_vht ||
                 wpa_s->connection_he || wpa_s->connection_eht);
        if (!wmm && bss)
-               wmm = wpa_bss_get_vendor_ie(bss, WMM_IE_VENDOR_TYPE);
+               wmm = !!wpa_bss_get_vendor_ie(bss, WMM_IE_VENDOR_TYPE);
        wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_WMM_ENABLED, wmm);
 
        if (!skip_default_rsne) {