diff options
| author | Prasanna S. Panchamukhi <prasannax.s.panchamukhi@intel.com> | 2010-01-26 21:44:44 -0500 |
|---|---|---|
| committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-05-11 17:03:45 -0400 |
| commit | 080de04e6229c49be41b811f5d5429afd6ed736d (patch) | |
| tree | f3c716dfcba9f463e57299ced80bcd1a87e4fffa | |
| parent | 4818d14de36228a749f714b450a85c1b35542e6f (diff) | |
wimax/i2400m: move I2400M_MAX_MTU enum from netdev.c to i2400m.h
This patch moves I2400M_MAX_MTU enum defined in netdev.c to i2400m.h.
Follow up changes will make use of this value in other location,
thus requiring it to be moved to a global header file i2400m.h.
Signed-off-by: Prasanna S. Panchamukhi <prasannax.s.panchamukhi@intel.com>
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
| -rw-r--r-- | drivers/net/wimax/i2400m/i2400m.h | 10 | ||||
| -rw-r--r-- | drivers/net/wimax/i2400m/netdev.c | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h index 820b128705ec..da218b98e27f 100644 --- a/drivers/net/wimax/i2400m/i2400m.h +++ b/drivers/net/wimax/i2400m/i2400m.h | |||
| @@ -160,6 +160,16 @@ | |||
| 160 | #include <linux/wimax/i2400m.h> | 160 | #include <linux/wimax/i2400m.h> |
| 161 | #include <asm/byteorder.h> | 161 | #include <asm/byteorder.h> |
| 162 | 162 | ||
| 163 | enum { | ||
| 164 | /* netdev interface */ | ||
| 165 | /* | ||
| 166 | * Out of NWG spec (R1_v1.2.2), 3.3.3 ASN Bearer Plane MTU Size | ||
| 167 | * | ||
| 168 | * The MTU is 1400 or less | ||
| 169 | */ | ||
| 170 | I2400M_MAX_MTU = 1400, | ||
| 171 | }; | ||
| 172 | |||
| 163 | /* Misc constants */ | 173 | /* Misc constants */ |
| 164 | enum { | 174 | enum { |
| 165 | /* Size of the Boot Mode Command buffer */ | 175 | /* Size of the Boot Mode Command buffer */ |
diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index b811c2f1f5e9..fc3754acc73f 100644 --- a/drivers/net/wimax/i2400m/netdev.c +++ b/drivers/net/wimax/i2400m/netdev.c | |||
| @@ -84,12 +84,6 @@ | |||
| 84 | 84 | ||
| 85 | enum { | 85 | enum { |
| 86 | /* netdev interface */ | 86 | /* netdev interface */ |
| 87 | /* | ||
| 88 | * Out of NWG spec (R1_v1.2.2), 3.3.3 ASN Bearer Plane MTU Size | ||
| 89 | * | ||
| 90 | * The MTU is 1400 or less | ||
| 91 | */ | ||
| 92 | I2400M_MAX_MTU = 1400, | ||
| 93 | /* 20 secs? yep, this is the maximum timeout that the device | 87 | /* 20 secs? yep, this is the maximum timeout that the device |
| 94 | * might take to get out of IDLE / negotiate it with the base | 88 | * might take to get out of IDLE / negotiate it with the base |
| 95 | * station. We add 1sec for good measure. */ | 89 | * station. We add 1sec for good measure. */ |
