router: work around faulty hardware
This commit is contained in:
parent
29fb2315a6
commit
1524c347d6
|
@ -304,11 +304,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700524221,
|
"lastModified": 1701027558,
|
||||||
"narHash": "sha256-YQGjhwhd68N9fILRwZXlT3z6yXP5kRH8B6bxD2uQq14=",
|
"narHash": "sha256-rINl9hvpQLfQtrXUy+R8bAtkKnU/1yOajVLfpFh0qWg=",
|
||||||
"owner": "chayleaf",
|
"owner": "chayleaf",
|
||||||
"repo": "nixos-router",
|
"repo": "nixos-router",
|
||||||
"rev": "e9d2ec7ad1f34cb9f1f71c1400430af817431a3b",
|
"rev": "c69ede702d9e8d367cc45cc8869f549eccc90ea1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -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]";
|
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;
|
} // 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
|
# ethernet lan0-3
|
||||||
router.interfaces.lan0 = {
|
router.interfaces.lan0 = {
|
||||||
bridge = "br0";
|
bridge = "br0";
|
||||||
|
|
Loading…
Reference in a new issue