[PATCH] hostapd: fix compile error in driver_devicescape.c

Pavel Roskin proski at gnu.org
Thu Mar 22 19:43:19 EDT 2007


PRISM2_HOSTAPD_SET_ASSOC_AP_ADDR was removed from the mac80211 headers
because it has never been supported.  Remove the code that uses that
symbol, as it's guaranteed to fail anyway.

Signed-off-by: Pavel Roskin <proski at gnu.org>
---

 hostapd/driver_devicescape.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/hostapd/driver_devicescape.c b/hostapd/driver_devicescape.c
index b6f5441..f8bffb0 100644
--- a/hostapd/driver_devicescape.c
+++ b/hostapd/driver_devicescape.c
@@ -634,23 +634,6 @@ static int i802_send_eapol(void *priv, const u8 *addr, const u8 *data,
 }
 
 
-static int i802_set_assoc_ap(void *priv, const u8 *addr)
-{
-	struct i802_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))) {
-		printf("Could not set associated AP address to kernel "
-		       "driver.\n");
-		return -1;
-	}
-	return 0;
-}
-
-
 static int i802_sta_add(const char *ifname, void *priv, const u8 *addr,
 			u16 aid, u16 capability, u8 *supp_rates,
 			size_t supp_rates_len, int flags)
@@ -2013,7 +1996,6 @@ const struct wpa_driver_ops wpa_driver_devicescape_ops = {
 	.sta_remove = i802_sta_remove,
 	.set_ssid = i802_set_ssid,
 	.send_mgmt_frame = i802_send_mgmt_frame,
-	.set_assoc_ap = i802_set_assoc_ap,
 	.sta_add = i802_sta_add,
 	.get_inact_sec = i802_get_inact_sec,
 	.sta_clear_stats = i802_sta_clear_stats,

-- 
Regards,
Pavel Roskin




More information about the HostAP mailing list