The kernel doesn't currently offer this control and thus it will always fail anyway, make it a stub to be implemented via nl80211. Signed-off-by: Johannes Berg --- hostapd/driver_nl80211.c | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) --- hostap.orig/hostapd/driver_nl80211.c 2008-01-31 20:01:02.000000000 +0100 +++ hostap/hostapd/driver_nl80211.c 2008-01-31 20:01:05.000000000 +0100 @@ -41,16 +41,6 @@ #include "radiotap.h" #include "radiotap_iter.h" -/* - * old definitions from the prism2/hostap driver interface that - * we still use temporarily - */ -#define PRISM2_IOCTL_PRISM2_PARAM (SIOCIWFIRSTPRIV + 0) -#define PRISM2_IOCTL_GET_PRISM2_PARAM (SIOCIWFIRSTPRIV + 1) - -#define PRISM2_PARAM_AP_BRIDGE_PACKETS 10 - - enum ieee80211_msg_type { ieee80211_msg_normal = 0, ieee80211_msg_tx_callback_ack = 1, @@ -356,38 +346,6 @@ static int i802_set_rate_sets(void *priv } -static int hostap_ioctl_prism2param_iface(const char *iface, - struct i802_driver_data *drv, - int param, int value) -{ - struct iwreq iwr; - int *i; - - memset(&iwr, 0, sizeof(iwr)); - os_strlcpy(iwr.ifr_name, iface, IFNAMSIZ); - i = (int *) iwr.u.name; - *i++ = param; - *i++ = value; - - if (ioctl(drv->ioctl_sock, PRISM2_IOCTL_PRISM2_PARAM, &iwr) < 0) { - char buf[128]; - snprintf(buf, sizeof(buf), - "%s: ioctl[PRISM2_IOCTL_PRISM2_PARAM]", iface); - perror(buf); - return -1; - } - - return 0; -} - - -static int hostap_ioctl_prism2param(struct i802_driver_data *drv, int param, - int value) -{ - return hostap_ioctl_prism2param_iface(drv->iface, drv, param, value); -} - - static int i802_set_ssid(const char *ifname, void *priv, const u8 *buf, int len) { @@ -1177,9 +1135,7 @@ static int i802_set_privacy(const char * static int i802_set_internal_bridge(void *priv, int value) { - struct i802_driver_data *drv = priv; - return hostap_ioctl_prism2param(drv, PRISM2_PARAM_AP_BRIDGE_PACKETS, - value); + return -1; } --