GithubHelp home page GithubHelp logo

Add hidden SSID support about device-init HOT 6 CLOSED

hypriot avatar hypriot commented on July 27, 2024 3
Add hidden SSID support

from device-init.

Comments (6)

Govinda-Fichtner avatar Govinda-Fichtner commented on July 27, 2024

It looks like the configuration is still missing one line:

auto wlan0
iface wlan0 inet dhcp
  wpa-ssid MyNetwork
  wpa-ap-scan 1
  wpa-scan-ssid 1
  wpa-psk generated_psk

At least according to:

http://unix.stackexchange.com/questions/48431/connect-to-hidden-wifi-ap-with-wpa-supplicant

As supporting a hidden access point needs to parameters I wonder if 'hidden-accesspoint' setting with 'true|false| would be the best way of implementing it.

As a default it would be 'false'. If set to true it would add those two additional lines to the configuration.

@StefanScherer WDYT?

from device-init.

StefanScherer avatar StefanScherer commented on July 27, 2024

What about adding the wpa-ap-scan like this? Is wpa-psk = password in yml?

wifi:
  interfaces:
    wlan0:
      ssid: "MyNetwork"
      scan-ssid: 1
      ap-scan: 1
      password: "secret_password"

from device-init.

Govinda-Fichtner avatar Govinda-Fichtner commented on July 27, 2024

After some discussion Stefan and I thought it might be best if we rename the existing config settings for Wifi to the corresponding wpa config settings and just pass through all settings starting with "wpa-":

wifi:
  interfaces:
    wlan0:
      wpa-ap-scan: 1
      wpa-scan-ssid: 1
      wpa-ssid: "MyNetwork"
      wpa-proto: "RSN"
      wpa-pairwise: "CCMP"
      wpa-key-mgmt "WPA-PSK"
      wpa-psk "secret_password"

This way it is easy to lookup all the wpa-supplicant options and use them as needed.

from device-init.

mrgnou avatar mrgnou commented on July 27, 2024

That seems nice to me. Will it be implemented in the next release?

from device-init.

segraef avatar segraef commented on July 27, 2024

Hi there, have these changes (wpa-psk pass through) been implemented already? Maybe I should test it before I ask ... ;)

from device-init.

StefanScherer avatar StefanScherer commented on July 27, 2024

Closing as we switch over to cloud-init/cloud-config's user-data file.
There should be a scriptable way to do this in a user-data script

from device-init.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.