router: work around faulty hardware

This commit is contained in:
chayleaf 2023-11-27 02:52:48 +07:00
parent 29fb2315a6
commit 1524c347d6
Signed by: chayleaf
GPG key ID: 78171AD46227E68E
2 changed files with 11 additions and 3 deletions

View file

@ -304,11 +304,11 @@
]
},
"locked": {
"lastModified": 1700524221,
"narHash": "sha256-YQGjhwhd68N9fILRwZXlT3z6yXP5kRH8B6bxD2uQq14=",
"lastModified": 1701027558,
"narHash": "sha256-rINl9hvpQLfQtrXUy+R8bAtkKnU/1yOajVLfpFh0qWg=",
"owner": "chayleaf",
"repo": "nixos-router",
"rev": "e9d2ec7ad1f34cb9f1f71c1400430af817431a3b",
"rev": "c69ede702d9e8d367cc45cc8869f549eccc90ea1",
"type": "github"
},
"original": {

View file

@ -362,6 +362,14 @@ in {
vht_capab = "[RXLDPC][SHORT-GI-80][SHORT-GI-160][TX-STBC-2BY1][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][SOUNDING-DIMENSION-4][BF-ANTENNA-4][VHT160][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]";
} // hapdConfig;
};
# Unfortunately, this router's networking hardware is highly prone to breakage
# Many people have reported their routers' TCP offloading being faulty, with an error
# like this being thrown at random (it can be shortly after boot, or in a few days):
# NETDEV WATCHDOG: eth0 (mtk_soc_eth): transmit queue 3 timed out 5388 ms
# My hardware broke after a few months of use as well, so here's a potential fix
router.interfaces.eth0.extraInitCommands = ''
${pkgs.ethtool}/bin/ethtool --offload eth0 tso off
'';
# ethernet lan0-3
router.interfaces.lan0 = {
bridge = "br0";