-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
base: main
Are you sure you want to change the base?
Conversation
nisargjhaveri
commented
Sep 30, 2024
- 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
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. |
Thanks a lot for testing out!
Can you please elaborate a bit? It has troubles reconnecting after a reboot? Or when retrying connection after disconnected for some reason? |
Happy to help! Yes, it appears to be that after a reboot that it requires
reinitiating the connection from Bluetooth (and possibly prior to that
forcing a disconnect from the dongle's WiFi network), to get android auto
to appear. My suspicion is that my phone is remembering the original WiFi
password and the steps are required to get it to use the newly generated
one.
I have a small hdmi monitor now and I'll try to get a better understanding
of what's happening in real time using that.
…On Sun, Oct 20, 2024, 3:08 AM Nisarg Jhaveri ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#200 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGLP3EALFUWPCHLNG2XGUTZ4NJHVAVCNFSM6AAAAABPEC3PZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGY4DOMRWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
There was a problem hiding this comment.
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).
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. |