Browse Source

Remove dead code related to WDS setup

hostapd does not have any code that would actually call this, so there
is no current need to try to figure out how to set up WDS links with
nl80211.
Jouni Malinen 16 years ago
parent
commit
b8c4d6df5f
2 changed files with 1 additions and 18 deletions
  1. 1 1
      src/drivers/driver.h
  2. 0 17
      src/drivers/driver_nl80211.c

+ 1 - 1
src/drivers/driver.h

@@ -492,7 +492,7 @@ struct hostapd_freq_params {
 };
 
 enum hostapd_driver_if_type {
-	HOSTAPD_IF_VLAN, HOSTAPD_IF_WDS
+	HOSTAPD_IF_VLAN
 };
 
 struct wpa_init_params {

+ 0 - 17
src/drivers/driver_nl80211.c

@@ -2318,9 +2318,6 @@ static int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
 	int ret = -ENOBUFS;
 #ifdef HOSTAPD
 	struct ifreq ifreq;
-#ifndef NO_WEXT
-	struct iwreq iwr;
-#endif /* NO_WEXT */
 #endif /* HOSTAPD */
 
 	msg = nlmsg_alloc();
@@ -2379,18 +2376,6 @@ static int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
 				return -1;
 			}
 			break;
-		case NL80211_IFTYPE_WDS:
-#ifdef NO_WEXT
-			return -1;
-#else /* NO_WEXT */
-			memset(&iwr, 0, sizeof(iwr));
-			os_strlcpy(iwr.ifr_name, ifname, IFNAMSIZ);
-			iwr.u.addr.sa_family = ARPHRD_ETHER;
-			memcpy(iwr.u.addr.sa_data, addr, ETH_ALEN);
-			if (ioctl(drv->ioctl_sock, SIOCSIWAP, &iwr))
-				return -1;
-			break;
-#endif /* NO_WEXT */
 		default:
 			/* nothing */
 			break;
@@ -3779,8 +3764,6 @@ static enum nl80211_iftype i802_if_type(enum hostapd_driver_if_type type)
 	switch (type) {
 	case HOSTAPD_IF_VLAN:
 		return NL80211_IFTYPE_AP_VLAN;
-	case HOSTAPD_IF_WDS:
-		return NL80211_IFTYPE_WDS;
 	}
 	return -1;
 }