wil6210: improve dmesg for fw error handling
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Tue, 28 Oct 2014 14:50:09 +0000 (16:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 30 Oct 2014 19:26:51 +0000 (15:26 -0400)
In case of FW error, make it clear (in dmesg) what branch is taken
in the error recovery code.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/main.c

index b3a84ae04ce39e93962291809d3ecbca3188c387..92705c0d97a4b2b1a7cd8e839185ac6fe2c38883 100644 (file)
@@ -267,9 +267,12 @@ static void wil_fw_error_worker(struct work_struct *work)
                break;
        case NL80211_IFTYPE_AP:
        case NL80211_IFTYPE_P2P_GO:
+               wil_info(wil, "No recovery for AP-like interface\n");
                /* recovery in these modes is done by upper layers */
                break;
        default:
+               wil_err(wil, "No recovery - unknown interface type %d\n",
+                       wdev->iftype);
                break;
        }
        mutex_unlock(&wil->mutex);