cw1200: Make the "scan failed" message into a warning
authorSolomon Peachy <pizza@shaftnet.org>
Fri, 25 Oct 2013 22:15:42 +0000 (18:15 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:54:45 +0000 (14:54 -0500)
The reason that a scan failed for some reason (typically bad
parameters) should be logged even when debugging is turned off.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/scan.c

index 8c017bfd2ffcde11a71633ae63a9ba5294762a2b..9afcd4ce3368d37908a055df935f29cf4032f259 100644 (file)
@@ -173,8 +173,9 @@ void cw1200_scan_work(struct work_struct *work)
                        cw1200_set_pm(priv, &priv->powersave_mode);
 
                if (priv->scan.status < 0)
-                       wiphy_dbg(priv->hw->wiphy, "[SCAN] Scan failed (%d).\n",
-                                 priv->scan.status);
+                       wiphy_warn(priv->hw->wiphy,
+                                  "[SCAN] Scan failed (%d).\n",
+                                  priv->scan.status);
                else if (priv->scan.req)
                        wiphy_dbg(priv->hw->wiphy,
                                  "[SCAN] Scan completed.\n");