- 27 Jun, 2022 1 commit
-
-
Martin Matějek authored
-
- 23 Jun, 2022 1 commit
-
-
Martin Matějek authored
Detection of mox switch module number fails to tell modules apart, because `phys_switch_id` always has value 00000000 for all switch ports. On TOS 5.3.x different switch ports returned different `phys_switch_id` based on the physical Mox module, e.g.: * 00000000 -> switch 0 * 01000000 -> switch 1 * 02000000 -> switch 2 Determine the Mox module number by looking into `/sys/class/net/<iface>/device/of_node` real path. For example single topaz module: /sys/class/net/lan4/device/of_node -> [..]/firmware/devicetree/base/soc/internal-regs@d0000000/mdio@32004/switch0@2 Will identify switch as `switch0@2` -> `switch 0`. These `switchX@Y` identifiers should be stable, because they are defined in kernel DTS. Closes: #16
-
- 16 Jun, 2022 3 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
With updated pcie slots paths we can detect wireless cards again. Closes: #20
-
Martin Matějek authored
With more recent kernels (5.4 in upcoming TOS 6.0), model name of Turris 1.x router changed to 'Turris 1.x' (defined in DTS). Fix model detection code to detect Turris 1.x devices. Closes: #18
-
- 13 Jun, 2022 2 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
Sort interfaces by natural sort order before returning result dictionary from `ifaces_array2dict()`. Reading interfaces from /sys might return them in different order based on used tool. See difference between order of items for `os.listdir()` vs `ls` in shell. It will be more useful for consumer of turrishw to get interfaces sorted in resulting dictionary to avoid dealing with the possibly random order of interfaces.
-
- 19 May, 2022 2 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
Read `of_node/label` instead of `phys_switch_id` and don't try to get port label from "LAN" + port_id.
-
- 28 Apr, 2022 2 commits
-
-
Martin Matějek authored
Read `of_node/label` instead of `phys_switch_id` and don't try to get port label from "LAN" + port_id.
-
Martin Matějek authored
-
- 26 Apr, 2022 1 commit
-
-
Martin Matějek authored
Read `of_node/label` instead of `phys_switch_id` and don't try to concat port label by lan + port_id. Besides that, it will fix discrepancies between `phys_switch_id` and port label on Turris 1.x, in which case they are opposite of each other, for instance: LAN1 <-> port 4 <-> lan5 [...] LAN5 <-> port 0 <-> lan1
-
- 03 Feb, 2022 2 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
Sometimes we get negative value (-1) of interface speed from /sys/class/net/<iface>/speed This means that speed is not set or auto-negotiated yet. Do not return any negative values, return 0 instead.
-
- 06 Aug, 2021 3 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
-
Martin Matějek authored
-
- 02 Aug, 2021 1 commit
-
-
Filip Hron authored
esures that only symlinks in /sys/class/net are filtered
-
- 31 May, 2021 1 commit
-
-
Martin Matějek authored
-
- 18 May, 2021 5 commits
-
-
Martin Matějek authored
-
Martin Matějek authored
-
Martin Matějek authored
-
Martin Matějek authored
-
Martin Matějek authored
-
- 16 May, 2021 1 commit
-
-
Martin Matějek authored
-
- 11 Dec, 2019 1 commit
-
-
Karel Koci authored
Remove obsolete email and drop manifest.
-
- 10 Jul, 2019 1 commit
-
-
Josef Schlehofer authored
-
- 26 Feb, 2019 1 commit
-
-
Štěpán Henek authored
-
- 27 Nov, 2018 1 commit
-
-
Štěpán Henek authored
-
- 15 Nov, 2018 1 commit
-
-
Martin Petráček authored
-
- 12 Nov, 2018 5 commits
-
-
Martin Petráček authored
-
Martin Petráček authored
-
Martin Petráček authored
-
Martin Petráček authored
-
Martin Petráček authored
instead of relying on fixed interfaces names, list all interfaces and identify them according to the bus they reside on
-
- 08 Nov, 2018 1 commit
-
-
Martin Petráček authored
-
- 07 Nov, 2018 2 commits
-
-
Martin Petráček authored
-
Martin Petráček authored
-
- 06 Nov, 2018 2 commits
-
-
Martin Petráček authored
-
Martin Petráček authored
-