ar71xx: ag71xx: fix max frame length setup of the built-in switches
authorGabor Juhos <juhosg@openwrt.org>
Fri, 20 Dec 2013 11:41:22 +0000 (11:41 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 20 Dec 2013 11:41:22 +0000 (11:41 +0000)
commit2b220f35506fb8d51178fb022323d1a8f6663caa
tree9c664416ca479edba43ef8f49a5d2a2a6f7529fe
parent35d601f974050feb5463a171ab90940c0ebe8ac9
ar71xx: ag71xx: fix max frame length setup of the built-in switches

The currently used bitmask of the maximum frame length field
is wrong for both models. On AR724x/AR933x the largest frame
size is 2047 bytes, on the AR934x it is 16383 bytes.

Make the MTU setup code model specific, and use the correct
bitmask for both models. Also change the value to the maximum.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39148
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c