Remove dead code related to WDS setup
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 16 Apr 2009 16:08:58 +0000 (19:08 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 16 Apr 2009 16:08:58 +0000 (19:08 +0300)
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.

src/drivers/driver.h
src/drivers/driver_nl80211.c

index 6962942..54c3fe3 100644 (file)
@@ -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 {
index 2dcd6f2..f4734c2 100644 (file)
@@ -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;
 }