From: matthieu castet <castet.matthieu@free.fr>
To: netdev@vger.kernel.org
Cc: linville@tuxdriver.com
Subject: [PATH] Allow mtu bigger than 1500 for ieee80211
Date: Thu, 28 Sep 2006 19:57:25 +0200 [thread overview]
Message-ID: <451C0D05.4050705@free.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
Hi
this patch allow to set the mtu between 1500 and 2304 (max octets in an
MSDU) for devices using ieee80211 linux stack.
Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
[-- Attachment #2: ieee80211mtu --]
[-- Type: text/plain, Size: 773 bytes --]
Index: linux/net/ieee80211/ieee80211_module.c
===================================================================
--- linux.orig/net/ieee80211/ieee80211_module.c 2006-09-26 19:27:26.000000000 +0200
+++ linux/net/ieee80211/ieee80211_module.c 2006-09-28 19:50:53.000000000 +0200
@@ -118,6 +118,14 @@
&ieee->network_free_list);
}
+static int ieee80211_change_mtu(struct net_device *dev, int new_mtu)
+{
+ if ((new_mtu < 68) || (new_mtu > IEEE80211_DATA_LEN))
+ return -EINVAL;
+ dev->mtu = new_mtu;
+ return 0;
+}
+
struct net_device *alloc_ieee80211(int sizeof_priv)
{
struct ieee80211_device *ieee;
@@ -133,6 +141,7 @@
}
ieee = netdev_priv(dev);
dev->hard_start_xmit = ieee80211_xmit;
+ dev->change_mtu = ieee80211_change_mtu;
ieee->dev = dev;
next reply other threads:[~2006-09-28 17:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 17:57 matthieu castet [this message]
2006-09-29 7:38 ` [PATH] Allow mtu bigger than 1500 for ieee80211 Johannes Berg
2006-09-29 9:30 ` Joerg Roedel
2006-09-29 11:56 ` Johannes Berg
2006-09-29 15:47 ` Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=451C0D05.4050705@free.fr \
--to=castet.matthieu@free.fr \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.