Browse Source

Remove unused set_assoc_ap() wpa_driver_ops

The need for this was removed with the experimental
hostapd-as-a-client-STA functionality.
Jouni Malinen 16 years ago
parent
commit
4f86ca6870
3 changed files with 0 additions and 25 deletions
  1. 0 1
      hostapd/driver.h
  2. 0 16
      hostapd/driver_hostap.c
  3. 0 8
      hostapd/driver_i.h

+ 0 - 1
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,

+ 0 - 16
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(&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,

+ 0 - 8
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)
 {