]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ath10k: add more debugging for receive errors
authorBen Greear <greearb@candelatech.com>
Wed, 5 Feb 2014 21:58:33 +0000 (13:58 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Feb 2014 14:31:58 +0000 (16:31 +0200)
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c
drivers/net/wireless/ath/ath10k/txrx.c

index fe8bd1b59f0e2651ee27b742087aedeb5e96a56c..6a548a25bda6be884b4c686bc418f9f172e03c15 100644 (file)
@@ -937,6 +937,8 @@ static void ath10k_htt_rx_handler(struct ath10k_htt *htt,
                        }
 
                        if (ath10k_htt_rx_has_decrypt_err(msdu_head)) {
+                               ath10k_dbg(ATH10K_DBG_HTT,
+                                          "htt rx dropping due to decrypt-err\n");
                                ath10k_htt_rx_free_msdu_chain(msdu_head);
                                continue;
                        }
@@ -975,6 +977,15 @@ static void ath10k_htt_rx_handler(struct ath10k_htt *htt,
                        info.skb     = msdu_head;
                        info.fcs_err = ath10k_htt_rx_has_fcs_err(msdu_head);
                        info.mic_err = ath10k_htt_rx_has_mic_err(msdu_head);
+
+                       if (info.fcs_err)
+                               ath10k_dbg(ATH10K_DBG_HTT,
+                                          "htt rx has FCS err\n");
+
+                       if (info.mic_err)
+                               ath10k_dbg(ATH10K_DBG_HTT,
+                                          "htt rx has MIC err\n");
+
                        info.signal  = ATH10K_DEFAULT_NOISE_FLOOR;
                        info.signal += rx->ppdu.combined_rssi;
 
index 74f45fa6f428de9d297c2af388ab1acb15247b60..b11e478e2e8f2fed9c7aef0ccfc8fa4dae2b3904 100644 (file)
@@ -259,7 +259,7 @@ void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info)
        status->freq = ch->center_freq;
 
        ath10k_dbg(ATH10K_DBG_DATA,
-                  "rx skb %p len %u %s%s%s%s%s %srate_idx %u vht_nss %u freq %u band %u\n",
+                  "rx skb %p len %u %s%s%s%s%s %srate_idx %u vht_nss %u freq %u band %u flag 0x%x fcs-err %i\n",
                   info->skb,
                   info->skb->len,
                   status->flag == 0 ? "legacy" : "",
@@ -271,7 +271,7 @@ void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info)
                   status->rate_idx,
                   status->vht_nss,
                   status->freq,
-                  status->band);
+                  status->band, status->flag, info->fcs_err);
        ath10k_dbg_dump(ATH10K_DBG_HTT_DUMP, NULL, "rx skb: ",
                        info->skb->data, info->skb->len);