]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused hostapd_wep_key_cmp()
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 10 Mar 2014 08:27:58 +0000 (10:27 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 10 Mar 2014 08:27:58 +0000 (10:27 +0200)
The only user was removed five years ago in commit
fb6d3575322369f33693a52d8e57759f6856ca9d.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_config.c
src/ap/ap_config.h

index f744985a00c57c6003945371355c7672df15e443..5252cbaab8490b7dbdf569f8ca20b3fa7c4783be 100644 (file)
@@ -338,20 +338,6 @@ int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf)
 }
 
 
-int hostapd_wep_key_cmp(struct hostapd_wep_keys *a, struct hostapd_wep_keys *b)
-{
-       int i;
-
-       if (a->idx != b->idx || a->default_len != b->default_len)
-               return 1;
-       for (i = 0; i < NUM_WEP_KEYS; i++)
-               if (a->len[i] != b->len[i] ||
-                   os_memcmp(a->key[i], b->key[i], a->len[i]) != 0)
-                       return 1;
-       return 0;
-}
-
-
 static void hostapd_config_free_radius(struct hostapd_radius_server *servers,
                                       int num_servers)
 {
index f6ca8b1f9a75b68a52983ae927fd6c8da6406b5c..638a21c973064b5f93e44148fd5d875435305f82 100644 (file)
@@ -608,8 +608,6 @@ void hostapd_config_free(struct hostapd_config *conf);
 int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries,
                          const u8 *addr, int *vlan_id);
 int hostapd_rate_found(int *list, int rate);
-int hostapd_wep_key_cmp(struct hostapd_wep_keys *a,
-                       struct hostapd_wep_keys *b);
 const u8 * hostapd_get_psk(const struct hostapd_bss_config *conf,
                           const u8 *addr, const u8 *p2p_dev_addr,
                           const u8 *prev_psk);