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
iiab-clone-wifi needs template from hostapd - record wifi_up_down [& doc re: Ansible facts like ansible_ap0, ansible_eth0, ansible_wlan0] [& 5GHz versus 2.4GHz test] #3555
Conversation
@EMG70 if you have time to test this in the coming week, that'd be incredible! Using either approach:
CLARIF / TEST PLAN: (DRAFT)
Tangentially related: |
No this issue will only show up on a fresh install with wifi_up_down: True as that is what puts the service file in place. |
Better yet just do a plain install with unittest to confirm there is a bug, then apply the fix. |
Confirmed bug's presents and this is the fix http://sprunge.us/K6rCCu |
What sets (Is there a better search than... https://github.com/iiab/iiab/search?q=ansible_ap0 ...to help shed light on these kinds of questions ?) |
I don't know where Ansible best documents this. But Ansible evidently sets up a variable like
Which I assume means that variable [*] |
Funny that search point right to the answer. Guess you forgot about #3389 (comment) where that discussion is documented. |
Ok. (Ansible docs are improving, but they're still not very searchable in cases like this.) |
@EMG70 worked hard to test this with a new install of SMALL-sized IIAB on 64-bit RasPiOS with Desktop, on RPi 400 — and asks if everything looks Ok below? Does this mean 5GHz is partially working?
His iiab-diagnostics: http://sprunge.us/BtTyun?en He writes:
His screenshot: |
@EMG70 writes:
In short, he disabled both checkboxes, by the red below: Then he ran And he ran |
I feel I keep repeating myself but the message gets lost somewhere. If you note in the picture of the router that there are different tabs at the top for 2.4/5GHz. I'll bet one can have a different ssid between 2.4/5GHz, change one to be able to tell the bands apart. I don't have time to get into details as I'm moving and may not have internet for awhile. |
Carefully reread #3537 but be warned that RasPiOS doesn't offer the same band limiting feature as netplan does. The band blocking is done on netplan (I should of posted the generated /run/netplan/* file) by adding a list of frequencies (freq_list:) to the generated wpa_supplicant.conf file. See https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf |
Indeed @EMG70 ran exactly that experiment over the past hour, renaming his home's 5GHz hotspot to "SKY3C17E-5G" for now. And it worked, for some reason even despite the fact that he forgot to run Finally, it seems he can choose either 2.4 GHz or 5 GHz (clicking on the graphical wizard to select one Upstream SSID or the other) as shown below, in this case with 5 GHz across both of the RPi 400's WiFi interfaces: OBSERVATION: Channel 11 (as set in /etc/iiab/local_vars/yml) is entirely ignored above, but at least it works on Channel 36 as mandated by the home's router.
Good Luck with the move. |
That would be because of the 'hooks' that are installed within dhcpcd or networkd-dispatcher. Does more or less the same function as iiab-test-wifi but on the fly not just at boot.
Good, now you can document how your home AP can (should?) be configured.
Same would hold true for country code. |
That would only apply for iiab-test-wifi run during boot, the hooks just deal with channel. |
Fixes bug:
This issue should show up on a clean install with wifi_up_down: True, slight hole in testing
Description of changes proposed in this pull request:
iiab-clone-wifi needs template from hostapd.yml that moved so reposition the restart to be after hostapd.yml
Smoke-tested on which OS or OS's:
Not as of yet, but if installs start failing at the noted restarting of iiab-clone-wifi, the service file is not installed yet.
Mention a team member @username e.g. to help with code review: