Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41464
b: refs/heads/master
c: 42a4cf9
h: refs/heads/master
v: v3
  • Loading branch information
matthieu castet authored and Jeff Garzik committed Dec 2, 2006
1 parent 105f707 commit 2f26d2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9308b06c049a107edfbd4e5271771564eb6024d
refs/heads/master: 42a4cf9576f036db69e15fa6b4e72986e17f0359
9 changes: 9 additions & 0 deletions trunk/net/ieee80211/ieee80211_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ static void ieee80211_networks_initialize(struct ieee80211_device *ieee)
&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;
Expand All @@ -133,6 +141,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
}
ieee = netdev_priv(dev);
dev->hard_start_xmit = ieee80211_xmit;
dev->change_mtu = ieee80211_change_mtu;

ieee->dev = dev;

Expand Down

0 comments on commit 2f26d2d

Please sign in to comment.