wl1251: fix scan behaviour while not associated
[pandora-wifi.git] / drivers / net / wireless / wl12xx / wl1251_main.c
index 86672df..57b09a1 100644 (file)
@@ -907,6 +907,7 @@ static int wl1251_op_hw_scan(struct ieee80211_hw *hw,
        ret = wl1251_cmd_scan(wl, ssid, ssid_len, req->channels,
                              req->n_channels, WL1251_SCAN_NUM_PROBES);
        if (ret < 0) {
+               wl1251_debug(DEBUG_SCAN, "scan failed %d", ret);
                wl->scanning = false;
                goto out_sleep;
        }