aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilb@qca.qualcomm.com>2011-07-11 14:32:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-13 14:49:35 -0400
commit0472ade031b5c0c69c21cf96acf64c50eb9ba3c2 (patch)
tree83e514d64a1b925572dc7153aace4d81a40ac584 /drivers
parent2a897d41a30b0af2dbc61c18aa3d2edd9b80fe6a (diff)
ath9k_hw: Fix incorrect key_miss handling
Decryping frames on key_miss handling shouldn't be done for Michael MIC failed frames as h/w would have already decrypted such frames successfully anyway. Also leaving CRC and PHY error(where the frame is going to be dropped anyway), we are left to prcoess Decrypt error for which s/w decrypt is selected anway and so having key_miss as a separate check doesn't serve anything. So making key_miss handling mutually exlusive with other RX status handling makes much more sense. This patch addresses an issue with STA not reporting MIC failure events resulting in STA being disconnected immediately. Cc: stable@kernel.org Signed-off-by: Senthil Balasubramanian <senthilb@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mac.c3
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
index 575e185f454f..8ff0b88a29b9 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
@@ -625,8 +625,7 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
625 rxs->rs_status |= ATH9K_RXERR_DECRYPT; 625 rxs->rs_status |= ATH9K_RXERR_DECRYPT;
626 else if (rxsp->status11 & AR_MichaelErr) 626 else if (rxsp->status11 & AR_MichaelErr)
627 rxs->rs_status |= ATH9K_RXERR_MIC; 627 rxs->rs_status |= ATH9K_RXERR_MIC;
628 628 else if (rxsp->status11 & AR_KeyMiss)
629 if (rxsp->status11 & AR_KeyMiss)
630 rxs->rs_status |= ATH9K_RXERR_DECRYPT; 629 rxs->rs_status |= ATH9K_RXERR_DECRYPT;
631 } 630 }
632 631
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index c2091f1f4096..b6b523a897e5 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -645,8 +645,7 @@ int ath9k_hw_rxprocdesc(struct ath_hw *ah, struct ath_desc *ds,
645 rs->rs_status |= ATH9K_RXERR_DECRYPT; 645 rs->rs_status |= ATH9K_RXERR_DECRYPT;
646 else if (ads.ds_rxstatus8 & AR_MichaelErr) 646 else if (ads.ds_rxstatus8 & AR_MichaelErr)
647 rs->rs_status |= ATH9K_RXERR_MIC; 647 rs->rs_status |= ATH9K_RXERR_MIC;
648 648 else if (ads.ds_rxstatus8 & AR_KeyMiss)
649 if (ads.ds_rxstatus8 & AR_KeyMiss)
650 rs->rs_status |= ATH9K_RXERR_DECRYPT; 649 rs->rs_status |= ATH9K_RXERR_DECRYPT;
651 } 650 }
652 651