[ath5k-devel] [PATCH 8/8] ath9k: Use common crypt capabilities flags

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 7/8] ath9k: Use common ath key management functions

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 6/8] ath5k: Use common crypt capabilities flags

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 5/8] ath/ath9k: Replace common->splitmic with a flag

2010-09-08 Thread Bruno Randolf
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 ++--

[ath5k-devel] [PATCH 4/8] ath5k: Remove old ath5k key handling functions

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 3/8] ath5k: Use common ath key management functions

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 2/8] ath: Copy key cache management functions from ath9k to ath

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 1/8] ath: Copy cryptographic capability flags into ath

2010-09-08 Thread Bruno Randolf
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

[ath5k-devel] [PATCH 0/8] ath: Move key cache functions to ath common

2010-09-08 Thread Bruno Randolf
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