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.
};
enum hostapd_driver_if_type {
};
enum hostapd_driver_if_type {
- HOSTAPD_IF_VLAN, HOSTAPD_IF_WDS
};
struct wpa_init_params {
};
struct wpa_init_params {
int ret = -ENOBUFS;
#ifdef HOSTAPD
struct ifreq ifreq;
int ret = -ENOBUFS;
#ifdef HOSTAPD
struct ifreq ifreq;
-#ifndef NO_WEXT
- struct iwreq iwr;
-#endif /* NO_WEXT */
#endif /* HOSTAPD */
msg = nlmsg_alloc();
#endif /* HOSTAPD */
msg = nlmsg_alloc();
- 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;
default:
/* nothing */
break;
switch (type) {
case HOSTAPD_IF_VLAN:
return NL80211_IFTYPE_AP_VLAN;
switch (type) {
case HOSTAPD_IF_VLAN:
return NL80211_IFTYPE_AP_VLAN;
- case HOSTAPD_IF_WDS:
- return NL80211_IFTYPE_WDS;