net: Set LL_MAX_HEADER properly for wireless.
authorDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2008 03:17:33 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2008 03:17:33 +0000 (20:17 -0700)
commit8388e3da34edb141362bb42811ee487dfec15525
tree0d2eaece7f0eb72151d31276af0644bc913b5246
parentf403ede70518c131ba8bebbacaf182927a58a315
net: Set LL_MAX_HEADER properly for wireless.

Wireless networking, particularly with MESH enabled, has
quite strong requirements for link-layer header space.

Based upon some numbers and descriptions from Johannes Berg
we use 96 (same as AX25) for plain wireless, and with
mesh enabled we use 128.

In the process, simplify the cpp conditional logic here by
ordering the cases by those needing the most space down
to those needing the least case.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h