by nullop » Thu Jun 21, 2012 2:39 pm
Not sure about wpa2, but I can confirm if you're connecting to an open SSID you don't put anything at all for security (I only mention because I couldn't find a document on this either), ie:
root@beaglebone:/sys/class/gpio# cat /var/lib/connman/wifi.config
[service_home]
Type = wifi
Name = guest
root@beaglebone:/sys/class/gpio#
I would assume your attempt at 'rsn' is correct.. Looking at the latest sourc code, these appear to be the valid options:
static enum connman_service_security convert_wifi_security(const char *security)
{
if (security == NULL)
return CONNMAN_SERVICE_SECURITY_UNKNOWN;
else if (g_str_equal(security, "none") == TRUE)
return CONNMAN_SERVICE_SECURITY_NONE;
else if (g_str_equal(security, "wep") == TRUE)
return CONNMAN_SERVICE_SECURITY_WEP;
else if (g_str_equal(security, "psk") == TRUE)
return CONNMAN_SERVICE_SECURITY_PSK;
else if (g_str_equal(security, "ieee8021x") == TRUE)
return CONNMAN_SERVICE_SECURITY_8021X;
else if (g_str_equal(security, "wpa") == TRUE)
return CONNMAN_SERVICE_SECURITY_WPA;
else if (g_str_equal(security, "rsn") == TRUE)
return CONNMAN_SERVICE_SECURITY_RSN;
else
return CONNMAN_SERVICE_SECURITY_UNKNOWN;
}
It's unclear to me that if you use RSN if it wants the ascii pass phrase you've specified or the hexadecimal conversion that's salted with the ssid.