Major: Nero combine with TPU, new link aggregation networking #110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
network/interfaces
functionalilty to be run by a very simple shell script. It has two arguments,init
run on boot anddeinit
run before shutdown.S40quicknet
triggers such runs in a blocking manner. This shell script modprobes and creates all necessary links, as well as manages the lifetime of wpa_supplicant. Therefore disables ifupdown scripting.bonding
and usage ofiproute2
to configure a linux bonded interface at bond0. Such an interface queries both wlan0 and wlan1 every 100 miliseconds for a change in state, and shifts network packets to the currently active interface. If both interfaces are active, wlan1 (2.4ghz) takes precedence as it will always be faster.🔴 : Solid --> HaLow on, in use; Blinking --> HaLow connected, inactive; Unlit --> no HaLow link
🟡 : Solid --> 2.4 ghz on, and implied in use; Blinking --> No connection for either interface (wireless offline); Unlit --> no 2.4ghz link
Both Unlit --> Software or hardware failure, HaLow HAT most likely not active
Further requres existing station mode LED checks to use json
jq
parsediproute2
commands to ensure stability.Nero:
Get rid of nero defconfig, use TPU for everything.
Previous oversights fixed:
iproute2
in one caseNotes
Reconnection to primary (2.4ghz) is awfully slow (1+ minutes). If this code further holds up, migrating quicknet to AP may be in order (and nero if it remains).
Test Cases
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs.Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
Closes #94