summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath9k/mac.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-03-02 16:06:31 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-03-05 22:39:38 +0300
commit672903b329579ff43ae3d553cf55bd82041921c1 (patch)
tree50f06169a9563f45fd0630d7287c373421fcbebf /drivers/net/wireless/ath9k/mac.h
parente65c22633c14eabe9593a71a727f81544378b892 (diff)
downloadlinux-672903b329579ff43ae3d553cf55bd82041921c1.tar.xz
ath9k: Document keycache operations
There are number of small details about the keycache operations that are very easy to miss (and forget), so better include detailed comments in ath9k_hw_set_keycache_entry() to avoid having to figure out this every time when having to touch this area. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/mac.h')
-rw-r--r--drivers/net/wireless/ath9k/mac.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath9k/mac.h b/drivers/net/wireless/ath9k/mac.h
index 862a63f7634b..fbd2d6ad2a53 100644
--- a/drivers/net/wireless/ath9k/mac.h
+++ b/drivers/net/wireless/ath9k/mac.h
@@ -588,9 +588,11 @@ struct ath9k_keyval {
u8 kv_type;
u8 kv_pad;
u16 kv_len;
- u8 kv_val[16];
- u8 kv_mic[8];
- u8 kv_txmic[8];
+ u8 kv_val[16]; /* TK */
+ u8 kv_mic[8]; /* Michael MIC key */
+ u8 kv_txmic[8]; /* Michael MIC TX key (used only if the hardware
+ * supports both MIC keys in the same key cache entry;
+ * in that case, kv_mic is the RX key) */
};
enum ath9k_key_type {