hoerresb / WifiWizard

A Cordova plugin for managing Wifi networks
Apache License 2.0
205 stars 177 forks source link

Not able to add network with hidden SSID correctly #91

Open schulti opened 8 years ago

schulti commented 8 years ago

Hi,

thank you for the great plugin!

When I add networks, it basically works perfectly, only that it's not connect to networks that are not broadcasting it's SSID (= adding a hidden SSID network is not working, it's not recognizing it or connecting to it).

Do you think this option can be added?

Find below the wpa_supplicant configuration that I get from my rooted Cyanogenmod Nexus 5X (Android 6.0.1, CM13.0-20160814-NIGHTLY) to compare what's the difference between manually configuring the network and using your Plugin. It's the same situation on other mobiles.

Manual configuration (/data/misc/wifi/wpa_supplicant.conf):

network={
    ssid="ABC"
    scan_ssid=1
    psk="121"
    key_mgmt=WPA-PSK
    priority=33
}

Using the plugin:

network={
    ssid="ABC"
    psk="121"
    key_mgmt=WPA-PSK
    disabled=1
}

It's weird that "disabled=1" is added, but let's ignore this for the moment.

I believe the main point for connecting to hidden SSIDs is the scan_ssid=1 statement. It would be great if this can be added.

If I can help with anything (testing?), please let me know!

Thank you!

twothirdsFR commented 7 years ago

I too would like very much to know the answer to this