diff --git a/hostapd/driver.h b/hostapd/driver.h index a79b91e95..bede01d18 100644 --- a/hostapd/driver.h +++ b/hostapd/driver.h @@ -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, diff --git a/hostapd/driver_hostap.c b/hostapd/driver_hostap.c index b2aaae775..0c8a3538d 100644 --- a/hostapd/driver_hostap.c +++ b/hostapd/driver_hostap.c @@ -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(¶m, 0, sizeof(param)); - param.cmd = PRISM2_HOSTAPD_SET_ASSOC_AP_ADDR; - memcpy(param.sta_addr, addr, ETH_ALEN); - if (hostapd_ioctl(drv, ¶m, 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, diff --git a/hostapd/driver_i.h b/hostapd/driver_i.h index ee281641b..f6716b794 100644 --- a/hostapd/driver_i.h +++ b/hostapd/driver_i.h @@ -198,14 +198,6 @@ hostapd_send_mgmt_frame(struct hostapd_data *hapd, const void *msg, size_t len, return hapd->driver->send_mgmt_frame(hapd->drv_priv, msg, len, flags); } -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) {