diff mbox series

wpa_supplicant: Don't assign pointer to bool

Message ID 20240110123359.2312702-1-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series wpa_supplicant: Don't assign pointer to bool | expand

Commit Message

Andrei Otcheretianski Jan. 10, 2024, 12:33 p.m. UTC
As it may result in compilation error.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 wpa_supplicant/wpa_supplicant.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Jan. 13, 2024, 10:27 p.m. UTC | #1
On Wed, Jan 10, 2024 at 02:33:59PM +0200, Andrei Otcheretianski wrote:
> As it may result in compilation error.

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 134ba39c53..f988925c62 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -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) {