diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-12 11:22:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:33 -0400 |
commit | 71fca6e983ebbf70b2d1089c66f0ec945ae16dc0 (patch) | |
tree | f8ad8420655a9cc0ff23c4fad67b022b40d4122b | |
parent | 9cc3271faa3967754ca1d6ac982e91e347c55489 (diff) |
ath9k_hw: remove ATH9K_CAP_TKIP_MIC
TKIP MIC support is always enabled anyway.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 8 |
4 files changed, 0 insertions, 34 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c index a26bc5696523..03100e3cdfc4 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c | |||
@@ -571,14 +571,6 @@ static void ath9k_init_crypto(struct ath9k_htc_priv *priv) | |||
571 | ath9k_hw_keyreset(priv->ah, (u16) i); | 571 | ath9k_hw_keyreset(priv->ah, (u16) i); |
572 | 572 | ||
573 | /* | 573 | /* |
574 | * Whether we should enable h/w TKIP MIC. | ||
575 | * XXX: if we don't support WME TKIP MIC, then we wouldn't | ||
576 | * report WMM capable, so it's always safe to turn on | ||
577 | * TKIP MIC in this case. | ||
578 | */ | ||
579 | ath9k_hw_setcapability(priv->ah, ATH9K_CAP_TKIP_MIC, 0, 1, NULL); | ||
580 | |||
581 | /* | ||
582 | * Check whether the separate key cache entries | 574 | * Check whether the separate key cache entries |
583 | * are required to handle both tx+rx MIC keys. | 575 | * are required to handle both tx+rx MIC keys. |
584 | * With split mic keys the number of stations is limited | 576 | * With split mic keys the number of stations is limited |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index d908f78da42b..f1d9918a11bd 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -2259,15 +2259,6 @@ bool ath9k_hw_getcapability(struct ath_hw *ah, enum ath9k_capability_type type, | |||
2259 | u32 capability, u32 *result) | 2259 | u32 capability, u32 *result) |
2260 | { | 2260 | { |
2261 | switch (type) { | 2261 | switch (type) { |
2262 | case ATH9K_CAP_TKIP_MIC: | ||
2263 | switch (capability) { | ||
2264 | case 0: | ||
2265 | return true; | ||
2266 | case 1: | ||
2267 | return (ah->sta_id1_defaults & | ||
2268 | AR_STA_ID1_CRPT_MIC_ENABLE) ? true : | ||
2269 | false; | ||
2270 | } | ||
2271 | case ATH9K_CAP_TKIP_SPLIT: | 2262 | case ATH9K_CAP_TKIP_SPLIT: |
2272 | return (ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) ? | 2263 | return (ah->misc_mode & AR_PCU_MIC_NEW_LOC_ENA) ? |
2273 | false : true; | 2264 | false : true; |
@@ -2299,14 +2290,6 @@ bool ath9k_hw_setcapability(struct ath_hw *ah, enum ath9k_capability_type type, | |||
2299 | u32 capability, u32 setting, int *status) | 2290 | u32 capability, u32 setting, int *status) |
2300 | { | 2291 | { |
2301 | switch (type) { | 2292 | switch (type) { |
2302 | case ATH9K_CAP_TKIP_MIC: | ||
2303 | if (setting) | ||
2304 | ah->sta_id1_defaults |= | ||
2305 | AR_STA_ID1_CRPT_MIC_ENABLE; | ||
2306 | else | ||
2307 | ah->sta_id1_defaults &= | ||
2308 | ~AR_STA_ID1_CRPT_MIC_ENABLE; | ||
2309 | return true; | ||
2310 | case ATH9K_CAP_MCAST_KEYSRCH: | 2293 | case ATH9K_CAP_MCAST_KEYSRCH: |
2311 | if (setting) | 2294 | if (setting) |
2312 | ah->sta_id1_defaults |= AR_STA_ID1_MCAST_KSRCH; | 2295 | ah->sta_id1_defaults |= AR_STA_ID1_MCAST_KSRCH; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 7456850f08b8..5574daa28b4d 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -207,7 +207,6 @@ enum ath9k_hw_caps { | |||
207 | }; | 207 | }; |
208 | 208 | ||
209 | enum ath9k_capability_type { | 209 | enum ath9k_capability_type { |
210 | ATH9K_CAP_TKIP_MIC, | ||
211 | ATH9K_CAP_TKIP_SPLIT, | 210 | ATH9K_CAP_TKIP_SPLIT, |
212 | ATH9K_CAP_MCAST_KEYSRCH, | 211 | ATH9K_CAP_MCAST_KEYSRCH, |
213 | ATH9K_CAP_DS | 212 | ATH9K_CAP_DS |
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 8bb866d52e2a..f66b357ba4d1 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -380,14 +380,6 @@ static void ath9k_init_crypto(struct ath_softc *sc) | |||
380 | ath9k_hw_keyreset(sc->sc_ah, (u16) i); | 380 | ath9k_hw_keyreset(sc->sc_ah, (u16) i); |
381 | 381 | ||
382 | /* | 382 | /* |
383 | * Whether we should enable h/w TKIP MIC. | ||
384 | * XXX: if we don't support WME TKIP MIC, then we wouldn't | ||
385 | * report WMM capable, so it's always safe to turn on | ||
386 | * TKIP MIC in this case. | ||
387 | */ | ||
388 | ath9k_hw_setcapability(sc->sc_ah, ATH9K_CAP_TKIP_MIC, 0, 1, NULL); | ||
389 | |||
390 | /* | ||
391 | * Check whether the separate key cache entries | 383 | * Check whether the separate key cache entries |
392 | * are required to handle both tx+rx MIC keys. | 384 | * are required to handle both tx+rx MIC keys. |
393 | * With split mic keys the number of stations is limited | 385 | * With split mic keys the number of stations is limited |