New issue
Advanced search Search tips

Issue 620529 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

GetWiFiSSID returns empty SSID on Android

Project Member Reported by tbansal@chromium.org, Jun 16 2016

Issue description

GetWiFiSSID() in //net/base/network_interfaces.h (https://cs.chromium.org/chromium/src/net/base/network_interfaces.h?rcl=0&l=80) returns an empty string on Android devices (tested on Nexus 6).

One fix is to plumb the getWifiSSID() from NetworkChangeNotifierAutoDetect.java to native.
 
Hmm, what version of Android?  I wonder if this has something to do with the permissions changes in Marshmallow, or if SIOCGIWESSID became unsupported on Android.  Can you try an earlier version?
I tried on Android M. On the same device getWifiSSID() in NCN returns the correct value. I will try it on older versions.
On that device, ioctl(...SIOCGIWESSID...) was returning -1.
Components: -Internals>Network Internals>Network>Connectivity
CL in #4 explicitly disabled SIOCGIWESSID support. I am planning to plumb the SSID from NCN to the native.
Status: Fixed (was: Assigned)

Sign in to add a comment