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

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
...@@ -173,8 +173,9 @@ void cw1200_scan_work(struct work_struct *work) ...@@ -173,8 +173,9 @@ 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,
priv->scan.status); "[SCAN] Scan failed (%d).\n",
priv->scan.status);
else if (priv->scan.req) else if (priv->scan.req)
wiphy_dbg(priv->hw->wiphy, wiphy_dbg(priv->hw->wiphy,
"[SCAN] Scan completed.\n"); "[SCAN] Scan completed.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment