Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 877cb0d4 authored by Holger Schurig's avatar Holger Schurig Committed by John W. Linville
Browse files

libertas: fix mode initialization problem



After moving lbs_find_best_network_ssid() from scan.c to assoc.c gcc was
able to deduce that new_mode might stay uninitialized.

Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bfe87dbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ void lbs_association_worker(struct work_struct *work)
	}

	if (find_any_ssid) {
		u8 new_mode;
		u8 new_mode = assoc_req->mode;

		ret = lbs_find_best_network_ssid(priv, assoc_req->ssid,
				&assoc_req->ssid_len, assoc_req->mode, &new_mode);