aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-23 14:17:41 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-23 14:17:41 (GMT)
commit0715247aa80d50cd96b59919bebaa13eba5bd7db (patch)
treeb17048afb86eacd02c8260ec7e3ff6633f5ad62f /src/drivers/driver_atheros.c
parentd994a9b54e0081555dc5af855dcbc6de9f3d27d2 (diff)
downloadhostap-0715247aa80d50cd96b59919bebaa13eba5bd7db.zip
hostap-0715247aa80d50cd96b59919bebaa13eba5bd7db.tar.gz
hostap-0715247aa80d50cd96b59919bebaa13eba5bd7db.tar.bz2
Remove unneeded set-MTU operation from drivers
This code was copied from driver_hostap.c where it is used with the special wlan#ap interface. It was not supposed to be used to change the MTU for a normal data interface.
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 82237a6..9122136 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -304,17 +304,6 @@ madwifi_set_iface_flags(void *priv, int dev_up)
return -1;
}
- if (dev_up) {
- memset(&ifr, 0, sizeof(ifr));
- os_strlcpy(ifr.ifr_name, drv->iface, IFNAMSIZ);
- ifr.ifr_mtu = HOSTAPD_MTU;
- if (ioctl(drv->ioctl_sock, SIOCSIFMTU, &ifr) != 0) {
- perror("ioctl[SIOCSIFMTU]");
- printf("Setting MTU failed - trying to survive with "
- "current value\n");
- }
- }
-
return 0;
}