Remove unused set_assoc_ap() wpa_driver_ops
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 25 Mar 2009 14:45:57 +0000 (16:45 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 25 Mar 2009 14:45:57 +0000 (16:45 +0200)
The need for this was removed with the experimental
hostapd-as-a-client-STA functionality.

hostapd/driver.h
hostapd/driver_hostap.c
hostapd/driver_i.h

index a79b91e..bede01d 100644 (file)
@@ -122,7 +122,6 @@ struct wpa_driver_ops {
        int (*set_countermeasures)(void *priv, int enabled);
        int (*send_mgmt_frame)(void *priv, const void *msg, size_t len,
                               int flags);
-       int (*set_assoc_ap)(void *priv, const u8 *addr);
        /* note: sta_add() is deprecated; use sta_add2() instead */
        int (*sta_add)(const char *ifname, void *priv, const u8 *addr, u16 aid,
                       u16 capability, u8 *supp_rates, size_t supp_rates_len,
index b2aaae7..0c8a353 100644 (file)
@@ -727,21 +727,6 @@ static int hostap_sta_clear_stats(void *priv, const u8 *addr)
 }
 
 
-static int hostap_set_assoc_ap(void *priv, const u8 *addr)
-{
-       struct hostap_driver_data *drv = priv;
-       struct prism2_hostapd_param param;
-
-       memset(&param, 0, sizeof(param));
-       param.cmd = PRISM2_HOSTAPD_SET_ASSOC_AP_ADDR;
-       memcpy(param.sta_addr, addr, ETH_ALEN);
-       if (hostapd_ioctl(drv, &param, sizeof(param)))
-               return -1;
-
-       return 0;
-}
-
-
 static int hostapd_ioctl_set_generic_elem(struct hostap_driver_data *drv)
 {
        struct prism2_hostapd_param *param;
@@ -1245,7 +1230,6 @@ const struct wpa_driver_ops wpa_driver_hostap_ops = {
        .sta_remove = hostap_sta_remove,
        .set_ssid = hostap_set_ssid,
        .send_mgmt_frame = hostap_send_mgmt_frame,
-       .set_assoc_ap = hostap_set_assoc_ap,
        .sta_add = hostap_sta_add,
        .get_inact_sec = hostap_get_inact_sec,
        .sta_clear_stats = hostap_sta_clear_stats,
index ee28164..f6716b7 100644 (file)
@@ -199,14 +199,6 @@ hostapd_send_mgmt_frame(struct hostapd_data *hapd, const void *msg, size_t len,
 }
 
 static inline int
-hostapd_set_assoc_ap(struct hostapd_data *hapd, const u8 *addr)
-{
-       if (hapd->driver == NULL || hapd->driver->set_assoc_ap == NULL)
-               return 0;
-       return hapd->driver->set_assoc_ap(hapd->drv_priv, addr);
-}
-
-static inline int
 hostapd_set_countermeasures(struct hostapd_data *hapd, int enabled)
 {
        if (hapd->driver == NULL || hapd->driver->set_countermeasures == NULL)