]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused if_update() driver op
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 9 Dec 2009 13:47:20 +0000 (15:47 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 9 Dec 2009 13:47:20 +0000 (15:47 +0200)
hostapd/driver_i.h
src/drivers/driver.h
src/drivers/driver_ndis.c
src/drivers/driver_nl80211.c
src/drivers/driver_test.c

index f639d253c2c3175967ca780f5b2077af2327eaa7..f1cac8f535f8286544ce3fa471aae4e002919d35 100644 (file)
@@ -406,15 +406,6 @@ hostapd_if_add(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
                                    ifname, addr);
 }
 
-static inline int
-hostapd_if_update(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
-                 char *ifname, const u8 *addr)
-{
-       if (hapd->driver == NULL || hapd->driver->if_update == NULL)
-               return -1;
-       return hapd->driver->if_update(hapd->drv_priv, type, ifname, addr);
-}
-
 static inline int
 hostapd_if_remove(struct hostapd_data *hapd, enum hostapd_driver_if_type type,
                  char *ifname, const u8 *addr)
index 0cfafbcf593f291f22ef8e8ccdee02653207ad32..a113064cbf338bb5fbebcec23ab96063df10322a 100644 (file)
@@ -1123,8 +1123,6 @@ struct wpa_driver_ops {
        int (*if_add)(const char *iface, void *priv,
                      enum hostapd_driver_if_type type, char *ifname,
                      const u8 *addr);
-       int (*if_update)(void *priv, enum hostapd_driver_if_type type,
-                        char *ifname, const u8 *addr);
        int (*if_remove)(void *priv, enum hostapd_driver_if_type type,
                         const char *ifname, const u8 *addr);
        int (*set_sta_vlan)(void *priv, const u8 *addr, const char *ifname,
index b38d9a0c9408642ae3dd6db68e0b846f236611fd..40d62595683d3469a8a8a9e8e8a0386657045ff0 100644 (file)
@@ -3239,7 +3239,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
        NULL /* bss_remove */,
        NULL /* valid_bss_mask */,
        NULL /* if_add */,
-       NULL /* if_update */,
        NULL /* if_remove */,
        NULL /* set_sta_vlan */,
        NULL /* commit */,
index fd31bf535502ac8daf3ad07c00bf276e0eb0b9f8..e03ee9f8cd5e5654c588b38ac6e323f019bfb7cb 100644 (file)
@@ -4371,14 +4371,6 @@ static int i802_if_add(const char *iface, void *priv,
 }
 
 
-static int i802_if_update(void *priv, enum hostapd_driver_if_type type,
-                         char *ifname, const u8 *addr)
-{
-       /* unused at the moment */
-       return -1;
-}
-
-
 static int i802_if_remove(void *priv, enum hostapd_driver_if_type type,
                          const char *ifname, const u8 *addr)
 {
@@ -4624,7 +4616,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = {
        .bss_add = i802_bss_add,
        .bss_remove = i802_bss_remove,
        .if_add = i802_if_add,
-       .if_update = i802_if_update,
        .if_remove = i802_if_remove,
        .set_sta_vlan = i802_set_sta_vlan,
 #endif /* HOSTAPD */
index 9dece958917ca154c333dd5f5b3dd4a52721bbfe..595242107e8a69d71a8e83d39f06eb78d9974562 100644 (file)
@@ -1053,14 +1053,6 @@ static int test_driver_if_add(const char *iface, void *priv,
 }
 
 
-static int test_driver_if_update(void *priv, enum hostapd_driver_if_type type,
-                                char *ifname, const u8 *addr)
-{
-       wpa_printf(MSG_DEBUG, "%s(type=%d ifname=%s)", __func__, type, ifname);
-       return 0;
-}
-
-
 static int test_driver_if_remove(void *priv, enum hostapd_driver_if_type type,
                                 const char *ifname, const u8 *addr)
 {
@@ -2484,7 +2476,6 @@ const struct wpa_driver_ops wpa_driver_test_ops = {
        .bss_add = test_driver_bss_add,
        .bss_remove = test_driver_bss_remove,
        .if_add = test_driver_if_add,
-       .if_update = test_driver_if_update,
        .if_remove = test_driver_if_remove,
        .valid_bss_mask = test_driver_valid_bss_mask,
        .hapd_set_ssid = test_driver_set_ssid,