aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_init.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-03-30 08:48:27 +0530
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:46:41 -0400
commit32fbccafed7e935432b601f0453c2b702a385a25 (patch)
tree212c7ba1e0fd15dcb2dabe5367c7029525c763b1 /drivers/net/wireless/ath/ath9k/htc_drv_init.c
parent29bffa96e9bef4fb84740a49e93d5bd6ca126bac (diff)
downloadkernel_samsung_tuna-32fbccafed7e935432b601f0453c2b702a385a25.zip
kernel_samsung_tuna-32fbccafed7e935432b601f0453c2b702a385a25.tar.gz
kernel_samsung_tuna-32fbccafed7e935432b601f0453c2b702a385a25.tar.bz2
ath9k_htc: Fix TKIP encryption
Set IEEE80211_HW_RX_INCLUDES_FCS to indicate that the FCS is present in RX frames. Also, remove a redundant assignment of skb length and include the FCS_LEN when checking padding. Fixing this issue makes TKIP work. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index d8779b9..90cfd90 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -513,7 +513,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
hw->flags = IEEE80211_HW_SIGNAL_DBM |
IEEE80211_HW_AMPDU_AGGREGATION |
IEEE80211_HW_SPECTRUM_MGMT |
- IEEE80211_HW_HAS_RATE_CONTROL;
+ IEEE80211_HW_HAS_RATE_CONTROL |
+ IEEE80211_HW_RX_INCLUDES_FCS;
hw->wiphy->interface_modes =
BIT(NL80211_IFTYPE_STATION) |