Use common crypt capabilities flags from common ath and remove corresponding
ath9k HW capabilities flags.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath9k/hw.c | 12 +--
drivers/net/wireless/ath/ath9k/hw.h | 40 +++
2 files changed, 23 i
Use key management functions which have been moved to ath/key.c and remove
ath9k copies of these functions and other now unused definitions.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath9k/common.c | 270
drivers/net/wireless/ath/ath9k/common.h
Replace ah_aes_support and ah_combined_mic with common ath_crypt_caps
ATH_CRYPT_CAP_CIPHER_AESCCM and ATH_CRYPT_CAP_MIC_COMBINED.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath5k/ath5k.h |2 --
drivers/net/wireless/ath/ath5k/attach.c | 10 ++
drivers/net/wireless/at
Replace common->splitmic with ATH_CRYPT_CAP_MIC_COMBINED flag.
splitmic has to be used when the ATH_CRYPT_CAP_MIC_COMBINED capability flag is
not set.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath.h |2 +-
drivers/net/wireless/ath/ath9k/common.c | 12 ++--
Remove the old ath5k key handling functions, since we now use the key
management in ath common.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath5k/ath5k.h |5 -
drivers/net/wireless/ath/ath5k/pcu.c | 191
drivers/net/wireless/ath/ath5k/reg.h
Use common ath key management functions in ath5k. This fixes problems with HW
encryption in AP mode, which was broken in the ath5k implementation.
Before (with the ath5k implementation) only one client could connect to the AP
using HW encryption and WPA. When a second client connected, the first c
Copied the key cache management functions from ath9k (common.c and hw.c) to
ath/key.c so we can use them from ath5k, later.
Minor changes have been made:
- renamed ath9k_* to ath_*
- replaced ah->caps.keycache_size with common->keymax
- removed ATH9K_IS_MIC_ENABLED since it is always true.
- t
This will be used later in this patch series.
Signed-off-by: Bruno Randolf
---
drivers/net/wireless/ath/ath.h | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index a706202..057fdd7 100644
--- a/dri
The following series moves the key cache management functions from ath9k to
the common ath/key.c so we can also use them from ath5k. Both ath5k and
ath9k are changed to use the common key functions.
This is necessary since HW encryption in ath5k was broken for AP mode and
software encryption was e