mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-21 18:00:38 +01:00
2007-11-15 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c - (nm_supplicant_config_add_setting_wireless_security): handle PEAP options git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3088 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
a2a2fa44fe
commit
fa68b119c0
2 changed files with 27 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-11-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/supplicant-manager/nm-supplicant-config.c
|
||||
- (nm_supplicant_config_add_setting_wireless_security): handle PEAP
|
||||
options
|
||||
|
||||
2007-11-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerUtils.c
|
||||
|
|
|
|||
|
|
@ -507,8 +507,29 @@ nm_supplicant_config_add_setting_wireless_security (NMSupplicantConfig * self,
|
|||
|
||||
if ( (strcmp (setting->key_mgmt, "ieee8021x") == 0)
|
||||
|| (strcmp (setting->key_mgmt, "wpa-eap") == 0)) {
|
||||
char *phase1 = NULL;
|
||||
|
||||
if (!nm_supplicant_config_add_option (self, "fragment_size", "1300", -1, FALSE))
|
||||
return FALSE;
|
||||
|
||||
if (setting->phase1_peapver) {
|
||||
if (phase1)
|
||||
phase1 = g_strdup_printf ("%s peapver=%s", phase1, setting->phase1_peapver);
|
||||
else
|
||||
phase1 = g_strdup_printf ("peapver=%s", setting->phase1_peapver);
|
||||
}
|
||||
|
||||
if (setting->phase1_peaplabel) {
|
||||
if (phase1)
|
||||
phase1 = g_strdup_printf ("%s peaplabel=%s", phase1, setting->phase1_peaplabel);
|
||||
else
|
||||
phase1 = g_strdup_printf ("peaplabel=%s", setting->phase1_peaplabel);
|
||||
}
|
||||
|
||||
if (phase1) {
|
||||
ADD_STRING_VAL (phase1, "phase1", FALSE, FALSE, FALSE);
|
||||
g_free (phase1);
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue