ath10k: pass frames with invalid peer status to upper layer
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Thu, 13 Feb 2014 15:50:00 +0000 (17:50 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Feb 2014 15:53:10 +0000 (17:53 +0200)
Pass frames with invalid peer status to upper layer.
Next mac80211 will validate frames and drop if required.
This is required to detect spurious frames and pass
this info to user mode (detect CLASS2 CLASS3 frames from
nonauthenticated/nonassociated stations).

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c

index 820c8ba3b1ec6055bb458d39c5862be491ff2053..4767c24bf8194113b7e89ea77930efa93e3a701b 100644 (file)
@@ -948,6 +948,7 @@ static void ath10k_htt_rx_handler(struct ath10k_htt *htt,
 
                        if (status != HTT_RX_IND_MPDU_STATUS_OK &&
                            status != HTT_RX_IND_MPDU_STATUS_TKIP_MIC_ERR &&
+                           status != HTT_RX_IND_MPDU_STATUS_ERR_INV_PEER &&
                            !htt->ar->monitor_enabled) {
                                ath10k_dbg(ATH10K_DBG_HTT,
                                           "htt rx ignoring frame w/ status %d\n",