Skip to contentSkip to conversation

d80211: move 802.11 defines to linux/ieee80211.h

PATCH New Michael Wu 1 participant 1 message Dec 9, 2006

Subsystems (3)
lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/4 d80211: move 802.11 defines to linux/ieee80211.h

d80211: move 802.11 defines to linux/ieee80211.h

This moves 802.11 defines from net/d80211.h into linux/ieee80211.h.

It also renames IEEE80211_DATA_LEN to IEEE80211_MAX_DATA_LEN to better match the other definitions.

---

 include/linux/Kbuild      |    1 
 include/linux/ieee80211.h |  107 +++++++++++++++++++++++++++++++++++++++++++++
 include/net/d80211.h      |   90 --------------------------------------
 net/d80211/ieee80211.c    |    4 +-
 4 files changed, 111 insertions(+), 91 deletions(-)
include/linux/Kbuild +1 -0
index c051f75..e6dccc8 100644
@@ -72,6 +72,7 @@ header-y += hysdn_if.h
 header-y += i2c-dev.h
 header-y += i8k.h
 header-y += icmp.h
+header-y += ieee80211.h
 header-y += if_addr.h
 header-y += if_arcnet.h
 header-y += if_arp.h
include/linux/ieee80211.h new file +107 -0

107 lines not on this page · raw message

include/net/d80211.h +1 -89

102 lines not on this page · raw message

net/d80211/ieee80211.c +2 -2
index 5ea51a5..ec62c6e 100644
@@ -1941,7 +1941,7 @@ static int ieee80211_change_mtu(struct n
 {
 	/* FIX: what would be proper limits for MTU?
 	 * This interface uses 802.3 frames. */
-	if (new_mtu < 256 || new_mtu > IEEE80211_DATA_LEN - 24 - 6) {
+	if (new_mtu < 256 || new_mtu > IEEE80211_MAX_DATA_LEN - 24 - 6) {
 		printk(KERN_WARNING "%s: invalid MTU %d\n",
 		       dev->name, new_mtu);
 		return -EINVAL;
@@ -1959,7 +1959,7 @@ static int ieee80211_change_mtu_apdev(st
 {
 	/* FIX: what would be proper limits for MTU?
 	 * This interface uses 802.11 frames. */
-	if (new_mtu < 256 || new_mtu > IEEE80211_DATA_LEN) {
+	if (new_mtu < 256 || new_mtu > IEEE80211_MAX_DATA_LEN) {
 		printk(KERN_WARNING "%s: invalid MTU %d\n",
 		       dev->name, new_mtu);
 		return -EINVAL;