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)
commit397e584bfb4b01b1bbc6d2f8cba4d82a8ddf4657
tree48f424bd844e361ea6307652b620fe072eadfbdf
parent1f01aeabb0c6486e966e92b4c4361a12529c7181
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39148 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ar7240.c