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

Use random wifi password by default, make country code configurable #200

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

Conversation

nisargjhaveri
Copy link
Owner

  • Dynamically generate and use /var/run/hostapd.conf using /etc/hostapd.conf.in and config
  • Generate random wifi password if not set, this will be the default to improve security a bit
  • Introduce AAWG_WIFI_PASSWORD and AAWG_COUNTRY_CODE configurations in /etc/aawgd.conf.sh

- Dynamically generate and use /var/run/hostapd.conf using /etc/hostapd.conf.in and config
- Generate random wifi password if not set, this will be the default
- Introduce AAWG_WIFI_PASSWORD and AAWG_COUNTRY_CODE configurations in /etc/aawgd.conf.sh
@pbz
Copy link

pbz commented Oct 10, 2024

Tested this a bit and does not seem to reconnect automatically. Seems to require some manual fiddling such as disconnecting from the wifi network and reinitiating the bluetooth connection.

@nisargjhaveri
Copy link
Owner Author

Thanks a lot for testing out!

Tested this a bit and does not seem to reconnect automatically.

Can you please elaborate a bit? It has troubles reconnecting after a reboot? Or when retrying connection after disconnected for some reason?

@pbz
Copy link

pbz commented Oct 20, 2024 via email

Copy link

@silviuchingaru silviuchingaru Oct 22, 2024

Choose a reason for hiding this comment

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

Why don't you leave country code as it is here and use sed to change it in init (S39hostapd_conf), if env var exists? This way you ensure that hostapd has at least one default country configured?
I'll do the same for wifi password, leave this default, change it with sed if successfully generated one (env pw var exists).

@nisargjhaveri nisargjhaveri mentioned this pull request Nov 5, 2024
@pbz
Copy link

pbz commented Nov 28, 2024

I did some more testing, and even when using manually set WifFi password my phone never automatically reconnects after a power cycle of the head unit/dongle. I always have to manually connect to the BT connection to get AA to reconnect. I even tried all 3 different modes.

Luen added a commit to Luen/WirelessAndroidAutoDongle1 that referenced this pull request Jan 10, 2025
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