Fritz Box 4040 (ipq40xx) switch displays wrong in gui, similar to asus-rt-ac58u

Im looking at the 7490 and it has same issue too. I think i made the relavant change on the same file, but the physical ports dont match what port numbers the kernel sees for link up/down events. Still investigating.