[PATCH] mac80211: remove crypto algorithm typedef
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 18 Sep 2007 21:29:21 +0000 (17:29 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:53:00 +0000 (16:53 -0700)
The typedef is not required, we can just use "enum ieee80211_key_alg"
instead of "ieee80211_key_alg"

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c
drivers/net/wireless/iwlwifi/iwlwifi.h
include/net/mac80211.h
net/mac80211/ieee80211_key.h
net/mac80211/key.c

index 8acda640df25239f0aaac7e9853ef0ce32d452b9..0700076e55b2fdb4a2fe038b3ce5dd50557b6f35 100644 (file)
@@ -7293,7 +7293,7 @@ out_unlock:
        return rc;
 }
 
-static int iwl_mac_set_key(struct ieee80211_hw *hw, set_key_cmd cmd,
+static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
                           const u8 *local_addr, const u8 *addr,
                           struct ieee80211_key_conf *key)
 {
index 7b9227c562b7b13a79b8b9371b2698bf7d507808..7bc25f74e3abb6a4b8e45a7a11679e7b7815fcd4 100644 (file)
@@ -7690,7 +7690,7 @@ out_unlock:
        return rc;
 }
 
-static int iwl_mac_set_key(struct ieee80211_hw *hw, set_key_cmd cmd,
+static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
                           const u8 *local_addr, const u8 *addr,
                           struct ieee80211_key_conf *key)
 {
index 00c79e200c688464c0c0e74c5127dc8a53ff2a0b..e0b97c3412153fee5f6b729d506d5b9f77b8da08 100644 (file)
@@ -412,7 +412,7 @@ struct iwl_tid_data {
 };
 
 struct iwl_hw_key {
-       ieee80211_key_alg alg;
+       enum ieee80211_key_alg alg;
        int keylen;
        u8 key[32];
 };
index fcca9c39b9e77c73885d2da066e3ffb24e8eb2fa..8fb975f0bed4cb45aecf89a506bf27a306450655 100644 (file)
@@ -551,12 +551,12 @@ struct ieee80211_if_conf {
  * @ALG_TKIP: TKIP
  * @ALG_CCMP: CCMP (AES)
  */
-typedef enum ieee80211_key_alg {
+enum ieee80211_key_alg {
        ALG_NONE,
        ALG_WEP,
        ALG_TKIP,
        ALG_CCMP,
-} ieee80211_key_alg;
+};
 
 
 /**
@@ -596,7 +596,7 @@ enum ieee80211_key_flags {
  * @key: key material
  */
 struct ieee80211_key_conf {
-       ieee80211_key_alg alg;
+       enum ieee80211_key_alg alg;
        u8 hw_key_idx;
        u8 flags;
        s8 keyidx;
@@ -616,9 +616,9 @@ struct ieee80211_key_conf {
  * @SET_KEY: a key is set
  * @DISABLE_KEY: a key must be disabled
  */
-typedef enum set_key_cmd {
+enum set_key_cmd {
        SET_KEY, DISABLE_KEY,
-} set_key_cmd;
+};
 
 
 /**
@@ -1014,7 +1014,7 @@ struct ieee80211_ops {
                                 unsigned int *total_flags,
                                 int mc_count, struct dev_addr_list *mc_list);
        int (*set_tim)(struct ieee80211_hw *hw, int aid, int set);
-       int (*set_key)(struct ieee80211_hw *hw, set_key_cmd cmd,
+       int (*set_key)(struct ieee80211_hw *hw, enum set_key_cmd cmd,
                       const u8 *local_address, const u8 *address,
                       struct ieee80211_key_conf *key);
        int (*set_ieee8021x)(struct ieee80211_hw *hw, int use_ieee8021x);
index ae49418f18b47d387629c0021af8afe611cdf428..fc770e98d47b44f3ba64250600db08823714c423 100644 (file)
@@ -114,7 +114,7 @@ struct ieee80211_key {
 
 struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata,
                                          struct sta_info *sta,
-                                         ieee80211_key_alg alg,
+                                         enum ieee80211_key_alg alg,
                                          int idx,
                                          size_t key_len,
                                          const u8 *key_data);
index c10e53afbb4f82883d3702c64d9dccb37696ff08..f13d46b2c13c57310d8c80327ece465e51ddaa2b 100644 (file)
@@ -113,7 +113,7 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key)
 
 struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata,
                                          struct sta_info *sta,
-                                         ieee80211_key_alg alg,
+                                         enum ieee80211_key_alg alg,
                                          int idx,
                                          size_t key_len,
                                          const u8 *key_data)