-
Notifications
You must be signed in to change notification settings - Fork 116
Wifi code #4078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wifi code #4078
Conversation
|
Seems to work. |
|
Clean wired install on Trixie |
|
What OS's are most useful to test here? Maybe Linux Mint 22.2 and a few others? |
|
The 'follows NetworkManager' commits removes the WiFi constraints around channel and just use the supplied country_code as it appears that hostapd just follows what NetworkManager has detected to be in use for both. If you are going to test Mint it should be on a hard metal WiFi based install, should be the same as RasPiOS. Ubuntu desktops should tested the same way but should behave the same way as NetworkManager is the backend. Ubuntu server images don't have iw installed and use systemd-network as the backend so those images won't work without setting the WiFi up in netplan first. WiFi installs will need to reboot to have hotspot active due to having |
|
Very helpful explanations; Thanks. I (and others if they can?) will try to help with testing on Monday (tomorrow). |
|
Being curious I ran raspi-config setting the WiFi country to GB and rebooted
Line 1488
Line 1898
The morel of the story is testing over the years has shown the order from greatest to least is NetworkManager, hostapd, cmdline for WiFi Regulatory Domain Codes priority. |
https://github.com/iiab/iiab/blob/master/roles/network/tasks/install.yml#L74 is ineffective in disabling ipv6
|
Some OS's / kernels changing maybe? (Just FWIW 8 days ago I was working with an individual whose IPv6 was successfully disabled by IIAB as he watched the IIAB install proceed... but that was a "Trisquelized" version of Ubuntu Server 24.04 LTS.) |
|
Hope he didn't lose internet access, lol Whatever, kernel_LL on ap0 is the wrong thing to do, should be a dummy under br0, period. |
This PR (#4078) on Linux Mint 22.2 result — iiab-diagnostics: https://paste.centos.org/view/8a60bcff (does that help confirm assumptions?) And I can test Ubuntu Desktop 24.04 (or Ubuntu Desktop 25.10) next in coming hours if that helps. |
Well that was a wired install, looks fine, does it work ok? I did ask for a wifi install but this is a start... |
Looks fine: connecting to hotspot works fine, prior to and after reboot.
Ok. On a completely new install of Mint 22.2 Beta, with IIAB installed over WiFi, the final result (below) isn't perfect — but perhaps tolerable ?
|
Good.
By design #3886
Change in Netplan perhaps? Looks like the installer wrote the netplan file. Might want to try
Maybe
Can't hurt but iiab-hotspot-on and disabling netplan's wifi stanza would need to be preformed.
Give it a go more info the better. |
a. On the existing https://paste.centos.org/view/979e3e7c (IIAB installed over WiFi) I tried ➡️ Would a fresh install of Linux Mint somehow be useful, to run
➡️ I can do that. Is a WiFi install or Ethernet install of IIAB most useful? And Clarify If Possible: if a netplan file appears in /etc/netplan that looks roughly like 90-NM-a3100392-2aa6-47f5-b293-d3e227b4ce9a.yaml — which lines should be commented out or removed? (Almost all of the file's 25 lines [i.e. Lines 845-869 from iiab-diagnostics pasted in below] appear to be about connecting to the home's wifi — so should I maybe just move this entire 90-NM-...ce9a.yml file aside?)
➡️ Ok. I'll do that afterwards. And I can adjust towards testing anything you recommend. |
Lets back up a second This is new/different
|
Given that
Note for below
This is where NM gave up (scanning -> disconnected) but the desktop continues scanning
I'd just move it for now, with an eye to see the result #4039 |
…i hardware. This reverts commit 335ba55.
Done: results below... again on that original WiFi-installed IIAB on Mint 22.2: (Just FYI the |
FWIW there is no (And there is no no-stub-resolv.conf — according to the results of the 'updatedb' then 'locate no-stub-resolv.conf' commands.) |
Think the /run directory is excluded from 'updatedb'. Right, NM isn't running. How about |
|
|
Just FYI I'd like to wipe the ThinkPad T14 very soon — e.g. to reconfirm this PR with testing on fresh installs of the most common OS's (Linux distros). And a couple RPi tests would be wise too no doubt (: |
|
Fresh install test of this PR (#4078) on a new WiFi-install on the very latest pre-release of Ubuntu Desktop 25.10 -- looks good here with "Dual WiFi" (AP+STA mode): iiab-diagnostics: https://paste.centos.org/view/fb6b0669 |
|
iiab-diagnostics after reboot correct? Looks pretty good from here. |
Yes. PS I'll try to test another OS or two later this evening. [make that Thur evening, tonight] |
|
Quick tests of this PR on Linux Mint 22.2 all look good, FYI. |
|
Quick test of this PR on RasPiOS 12 (Bookworm) with desktop... on RPi 500... looks good: "PR4078--WiFi-installed--AP+STA-mode--RasPiOS-12-Desktop" |
|
Quick test of this PR on RasPiOS 13 (Trixie) with desktop... on RPi 500... looks good: "PR4078--WiFi-installed--AP+STA-mode--RasPiOS-13-Desktop" |
|
Any idea why "Dual WiFi" (AP+STA Mode) is not working on Debian 13 "Trixie" on x86_64 below? This might not be the most important OS/distro among IIAB implementers, but FWIW:
iiab-diagnostics after several reboots: (Ethernet cable inserted right afterwards, to create this pastebin...) |
|
Given I don't see the usual channel 9 embedded within hostapd.conf when connected to your AP while installing, I suggest the workaround you used before |
Thanks: I finally got it to work, great. Earlier I'd overlooked a step. So I should write down the steps for everyone -- presumably in the order below? (Here is a DRAFT 'How do i turn on "Dual WiFi" a.k.a. "AP+STA Mode" ?' for https://FAQ.IIAB.IO ...)
ASIDE: Ubuntu 25.10 ISOs are a real mess in recent days (recent dailies completely fail to install) so I'm glad I got that pre-release testing done last week -- and I'll look at that OS again later in September &/or October. |
Cleaned up & posted:
(If something's explained very poorly, please LMK!) |
|
Let's give this PR a shot, as it's now been tested in many different scenarios. I'd like to merge it (or very similar) overnight if there are no objections? |
|
Either way, I'll merge this PR in coming hours: ➡️ Thanks to @jvonau for making it happen! ⬅️ |
(1) Lint `command -v` conditionals (2) Clean `iiab-network` output w/ echo lines (3) Tighten comments [in support of PR #4078]





Fixes bug:
should workaround #4077
Description of changes proposed in this pull request:
add networkctl feedback
Skip matching channel and country_code just record detected values.
#4076 (comment)
#4076 (comment)
use nmcli radio wifi on
Smoke-tested on which OS or OS's:
pending
Mention a team member @username e.g. to help with code review: