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

Commit 083b9646 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: fix chan check in wil_p2p_listen"

parents 903b516e a3d1b577
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -114,7 +114,9 @@ int wil_p2p_listen(struct wil6210_priv *wil, unsigned int duration,
	u8 channel = P2P_DMG_SOCIAL_CHANNEL;
	int rc;

	if (chan)
	if (!chan)
		return -EINVAL;

	channel = chan->hw_value;

	wil_dbg_misc(wil, "%s: duration %d\n", __func__, duration);