Skip to content
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

ffac-ssid-changer: fix handling of OWE #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

citronalco
Copy link

  • Remove CURRENT_SSID variable as it does not work for OWE setups
  • Try to get OWE SSID from radio1 if radio0 has none
  • Remove "Please reboot" log messages because they also appear if no reboot is necessary
  • Fix sed/grep to match until EOL to avoid finding i.e. "Freifunk-OWE" when searching for "Freifunk" and renaming the wrong station.

On OWE enabled setups, CURRENT_SSID contains two SSIDs, one per line. Simply comparing its value(s) with the expected online/offine (OWE) SSIDs does not work, the script fails. Therefore, remove the variable and simply check for the SSIDs directly in the hostapd config files.

Currently this scripts has trouble on dual radio setups where OWE is only enabled on one radio: If OWE is enabled on the second radio, it is not detected at all. If OWE is enabled on the first radio, it logs a "Please reboot" warning for the second radio. I doubt those warnings will ever be triggered on purpose anyway, so I simply removed them.

* try to get OWE SSID from radio1 if radio0 has none
* remove CURRENT_SSID variable as it does not work for OWE setups
* remove "Please reboot" log messages because they also appear if no reboot is neccessary
* fix sed/grep to match until EOL to avoid finding i.e. "Freifunk-OWE"
  when searching for "Freifunk"
@maurerle
Copy link
Member

Thanks @citronalco ,

could you try the rewrite?
I did not yet came to test this:
#138

I think this handles many things better

@citronalco
Copy link
Author

The rewrite looks good. See #138 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants