Skip to content

Fix for TMOHS1 and CT2MHS01 dropping Wifi AP after 10 min#951

Merged
cooperq merged 1 commit intoEFForg:mainfrom
BeigeBox:feature/wifi-auto-shutdown-config
Apr 22, 2026
Merged

Fix for TMOHS1 and CT2MHS01 dropping Wifi AP after 10 min#951
cooperq merged 1 commit intoEFForg:mainfrom
BeigeBox:feature/wifi-auto-shutdown-config

Conversation

@BeigeBox
Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • The Rayhunter team has recently expressed interest in reviewing a PR for this.
    • If not, this PR may be closed due our limited resources and need to prioritize how we spend them.
  • Added or updated any documentation as needed to support the changes in this PR.
  • Code has been linted and run through cargo fmt.
  • If any new functionality has been added, unit tests were also added.
  • CONTRIBUTING.md has been read.

You must check one of:

  • No generative AI (including LLMs) tools were used to create this PR.
  • Generative AI was used to create this PR. I certify that I have read and understand the code, and that all comments and descriptions were authored by myself and are not the product of generative AI.

When these two devices don't have any clients on their wifi AP after 10 minutes they shutdown the wifi. This presents an issue since then the user can't access the device without manual intervention. I added a checkbox (near where the colorblind checkbox is) in the config section that will change a config value to prevent the wifi from shutting down if there's no clients. It's off by default, and only shows on those 2 models.

I tested it on both the devices by deploying the change, waiting 10 minutes without connecting and confirmed that this fixes the issue. Based on a review of issues it looks liek this is a potential fix for #466. If the user was on their home wifi rather than the devices wifi and it took 10 minutes they could see what appears to be a device which doesn't have wifi available (and had a failed install due to the timeout issue I'm fixing in another PR).

I DID use Claude to add the quick button on the web GUI, although I've deployed this and exercised the web GUI myself.

@BeigeBox BeigeBox force-pushed the feature/wifi-auto-shutdown-config branch from 338c75c to 59067a7 Compare March 13, 2026 00:40
@untitaker
Copy link
Copy Markdown
Collaborator

Do either of those devices not have their own admin UI where this setting can be changed? That's how I deal with it on tplink.

@BeigeBox
Copy link
Copy Markdown
Contributor Author

Do either of those devices not have their own admin UI where this setting can be changed? That's how I deal with it on tplink.

I didn't see one, although admittedly it's been a while since I checked the default interface the thing ships with. My concern is mostly for folks who install this, then don't read a ton of documentation and just think it's broken and dump it.

Copy link
Copy Markdown
Collaborator

@cooperq cooperq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to make sure that this feature isn't already supported in the native UI before we merge this code. This does add some amount of complexity that we don't necessarily need to add if we are able to fix it in the native settings and could just add that to the documentation.

Comment thread daemon/web/src/lib/utils.svelte.ts Outdated
Comment thread daemon/src/wifi.rs Outdated
@cooperq cooperq self-assigned this Apr 17, 2026
@BeigeBox BeigeBox force-pushed the feature/wifi-auto-shutdown-config branch from 59067a7 to 07eda5b Compare April 21, 2026 23:22
@BeigeBox
Copy link
Copy Markdown
Contributor Author

@cooperq I reverted the files I changed and instead added documentation as well as screenshots (and a hint in the installer) indicating where the users can set the wifi timeout using native settings.

Both devices ship with a Wi-Fi Standby timer that turns off the AP
after ~10 minutes with no clients, blocking remote access to Rayhunter
until a power cycle. Previous attempt (this PR's earlier commits) added
a Rayhunter config toggle to flip gWlanAutoShutdown in WCNSS_qcom_cfg.ini,
but the same setting is already exposed in each device's native admin UI
under Settings -> Sleep -> Wi-Fi Standby, so a code change is not needed.

Replace the config toggle with:
- Device-page walkthroughs with screenshots of each native UI setting
- FAQ entry for "can't reach the web UI after leaving it alone"
- Post-install hint from the tmobile/wingtech installers pointing at
  the docs and the setting location
@BeigeBox BeigeBox force-pushed the feature/wifi-auto-shutdown-config branch from 07eda5b to e198040 Compare April 21, 2026 23:27
@BeigeBox BeigeBox requested a review from cooperq April 21, 2026 23:27
@cooperq cooperq merged commit 5fc6925 into EFForg:main Apr 22, 2026
23 checks passed
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.

3 participants