aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-07 03:32:18 (GMT)
committerJouni Malinen <j@w1.fi>2008-02-07 03:32:18 (GMT)
commit68e3f635de9471b411c4ff5b9183097c59cea00f (patch)
tree6e65a7b30f899ae53da61049c9f41aacb944dc66
parente23412268996321067565d0de480c7a5fb5dcd26 (diff)
downloadhostap-history-68e3f635de9471b411c4ff5b9183097c59cea00f.zip
hostap-history-68e3f635de9471b411c4ff5b9183097c59cea00f.tar.gz
hostap-history-68e3f635de9471b411c4ff5b9183097c59cea00f.tar.bz2
nl80211 driver: remove bridge packets control
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 <johannes@sipsolutions.net>
-rw-r--r--hostapd/driver_nl80211.c46
1 files changed, 1 insertions, 45 deletions
diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c
index 7ed90b0..bf00624 100644
--- a/hostapd/driver_nl80211.c
+++ b/hostapd/driver_nl80211.c
@@ -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, int *supp_rates, int *basic_rates,
}
-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 *ifname, void *priv, int enabled)
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;
}