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

prevent non operational status after sigHUP, #26

Open
rubo77 opened this issue Jul 21, 2020 · 6 comments
Open

prevent non operational status after sigHUP, #26

rubo77 opened this issue Jul 21, 2020 · 6 comments

Comments

@rubo77
Copy link

rubo77 commented Jul 21, 2020

https://forum.freifunk.net/t/outdoor-mode-in-gluon2020-1-x-dfs-pre-cac-expired/22128/20?u=rubo77

eulenfunk@1893c69#commitcomment-40789534

How could we detect a running DFS scan

rubo77 referenced this issue in eulenfunk/gluon-ssid-changer Jul 21, 2020
@Adorfer
Copy link

Adorfer commented Jul 22, 2020

please be aware that the scenario may not be limited to "when in DFS scanning mode".
Generally it's:

  • hostapd does not like -HUP
  • hostapd does not like to wifi (in order to restart)
    It can only be fixed upstream of upstream.

@rubo77
Copy link
Author

rubo77 commented Jul 22, 2020

Since when does -HUP make such problems?

If so, we would have to add this fix to ssid-changer:
https://github.com/eulenfunk/packages/blob/v2020.1.x/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/check_hostapd.sh

@rubo77
Copy link
Author

rubo77 commented Jul 22, 2020

Maybe related:

Another point to consider here is that reloading the hostapd config leads to radios operating on DFS frequencies to re-perform CAC, which will stop clients from connecting for 60 seconds. I just came across this yesterday when preparing patches for another hostapd issues but this might be a bug in hostapd.

Also this implementation will break with recent OpenWrt due to hostapd not being spawned on a per-PHY base.

freifunk-gluon/gluon#1649 (comment)

@Adorfer
Copy link

Adorfer commented Jul 22, 2020

ince when does -HUP make such problems?

unknown, just stumblend upon this due to first use of autochannel/outdoor-mode.
in other words: if PIDs do not match, kill hostapd hard and restart it.

i do not see an easy solution for the moment.

@rubo77
Copy link
Author

rubo77 commented Jul 23, 2020

so if we would disable the ssid-changer on nodes with outdoor mode, we would be on the safe side?

@Adorfer
Copy link

Adorfer commented Jul 23, 2020

that's not for sure. I can only say i observiced it in the outdoor-scenario. perhaps it's happening on 2.4G radios too if e.g. channel is set to "auto" (in an "no-mesh-active on radio, ap-only" configuration)

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

No branches or pull requests

2 participants