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

Add option to change hotspot password #546

Closed
tim-moody opened this issue Sep 26, 2023 · 16 comments
Closed

Add option to change hotspot password #546

tim-moody opened this issue Sep 26, 2023 · 16 comments

Comments

@tim-moody
Copy link
Contributor

  • Add option to Control panel, only RPI supported
  • prompts for hotspot secured (default is checked) and hotspot password (default from hostapd_password)
  • button to Change Hotspot Security
  • calls CMDSRV with verb CTL-HOTSPOT
  • updates local vars with hostapd_secure and hostapd_password
  • puts values in hostapd.conf
  • restarts hostapd
@holta
Copy link
Member

holta commented Sep 26, 2023

Sounds great, per @nzola's request.

Add option to Control panel, only RPI supported

Note that some people really do run IIAB on refurb'd / typically older laptops with internal WiFi hotspots, as explained here:

https://wiki.iiab.io/go/FAQ#Can_I_create_a_Wi-Fi_hotspot_using_an_old_laptop%3F

(So the functionality should really work identically there, just like with Raspberry Pi, generally with the laptop OS being Ubuntu or Mint or Debian.)

@holta
Copy link
Member

holta commented Sep 26, 2023

Aside / hopefully it's completely extraneous and irrelevant (to @nzola's request here!) that dhcpcd is being replaced by NetworkManager on Raspberry Pi OS Bookworm — [so they are now revising] their documentation on "Setting up a Wireless Access Point" here:

PS This new OS will have many revisions when apparently arriving imminently in coming weeks, with testing looking solid so far, thanks to @EMG70:

@tim-moody
Copy link
Contributor Author

Then I would say all bets are off.

@holta
Copy link
Member

holta commented Sep 26, 2023

FYI Raspberry Pi OS's dhcpcd to NetworkManager change might not be as consequential or fearsome as it sounds.

e.g. if hostapd is still handling the internal hotspot in the end, and it generally all works, as several have in fact suggested (but I have not verified myself!)

@tim-moody
Copy link
Contributor Author

First of all and after looking into implementing this, I would like to add the security flag and password to the existing Config Internal Wi-Fi Access Point panel. So you will first have to turn on password security and run ICO. This way I am not rewriting existing network functionality. Then if it is turned on you will be able to change the password under Control.

@holta
Copy link
Member

holta commented Sep 28, 2023

Is the conclusion that enabling a hotspot password might take 2-4 minutes — i.e. if the hotspot does not already have a password?

Whereas subsequent changing of the password should be very fast?

@tim-moody
Copy link
Contributor Author

tim-moody commented Sep 28, 2023

yes. took 2 min 40s on my rpi 4 to go from unsecure enabled to secure enabled.

@nzola
Copy link

nzola commented Sep 28, 2023

yes. took 2 min 40s on my rpi 4 to go from unsecure enabled to secure enabled.

Great News! Thanks @tim-moody

@holta
Copy link
Member

holta commented Oct 2, 2023

Should now be implemented by @tim-moody's:

@nzola let us know how this works for you?

@holta
Copy link
Member

holta commented Oct 3, 2023

@nzola let us know how this works for you?

"Your IIAB's internal Wi-Fi hotspot password is now rapidly changeable." is now posted to...

https://github.com/iiab/iiab/wiki/IIAB-8.1-Release-Notes#whats-new

@tim-moody
Copy link
Contributor Author

Adm Cons help still needs editing too

@holta
Copy link
Member

holta commented Oct 5, 2023

@nzola see also @tim-moody's new PR — regarding variable wifi_up_down — that toggles between dual-purpose internal WiFi and single-purpose internal WiFi:

Can you help us test this out?

@nzola
Copy link

nzola commented Oct 6, 2023 via email

@holta
Copy link
Member

holta commented Oct 21, 2023

Yes. I will test it when I return home tonight.

@nzola is it ok to close this ticket?

@nzola
Copy link

nzola commented Oct 22, 2023

@holta please don't close yet. I will run fresh IIAB installs this week. If all is ok, I will let you know to close it. So far, i have not run any new install yet, but upgrade only.

@nzola
Copy link

nzola commented Nov 7, 2023

Yes. I will test it when I return home tonight.

@nzola is it ok to close this ticket?

@holta Tested with fresh IIAB install ok. Please close this issue.
@tim-moody Thank you so much for your help!

@holta holta closed this as completed Nov 7, 2023
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

No branches or pull requests

3 participants