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

Commit 809c5255 authored by Solomon Peachy's avatar Solomon Peachy Committed by John W. Linville
Browse files

cw1200: Make the "scan failed" message into a warning



The reason that a scan failed for some reason (typically bad
parameters) should be logged even when debugging is turned off.

Signed-off-by: default avatarSolomon Peachy <pizza@shaftnet.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5f5deff3
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -173,7 +173,8 @@ void cw1200_scan_work(struct work_struct *work)
			cw1200_set_pm(priv, &priv->powersave_mode);
			cw1200_set_pm(priv, &priv->powersave_mode);


		if (priv->scan.status < 0)
		if (priv->scan.status < 0)
			wiphy_dbg(priv->hw->wiphy, "[SCAN] Scan failed (%d).\n",
			wiphy_warn(priv->hw->wiphy,
				   "[SCAN] Scan failed (%d).\n",
				   priv->scan.status);
				   priv->scan.status);
		else if (priv->scan.req)
		else if (priv->scan.req)
			wiphy_dbg(priv->hw->wiphy,
			wiphy_dbg(priv->hw->wiphy,