jni/iputils/wifi.c
/* Establishes the control and monitor socket connections on the interface */
Establishes the control and monitor socket connections on the interface
Establishes the control and monitor socket connections on the interface
int wifi_connect_to_supplicant()
{
    static char path[PATH_MAX];
    property_get("wifi.interface", primary_iface, "wlan0");
    if (access(IFACE_DIR, F_OK) == 0) {
        snprintf(path, sizeof(path), "%s/%s", IFACE_DIR, primary_iface);
    } else {
        snprintf(path, sizeof(path), "@android:wpa_%s", primary_iface);
    }
    return wifi_connect_on_socket_path(path);
}
int wifi_connect_to_supplicant ( ) { static char path [ PATH_MAX ] ; property_get ( " " , primary_iface , " " ) ; if ( access ( IFACE_DIR , F_OK ) == 0 ) { snprintf ( path , sizeof ( path ) , " " , IFACE_DIR , primary_iface ) ; } else { snprintf ( path , sizeof ( path ) , " " , primary_iface ) ; } return wifi_connect_on_socket_path ( path ) ; }
Establishes the control and monitor socket connections on the interface
Establishes the control and monitor socket connections on the interface