diff --git a/src/servers/net/NetServer.cpp b/src/servers/net/NetServer.cpp
index e97f316..ea83d84 100644
a
|
b
|
NetServer::_JoinNetwork(const BMessage& message, const char* name)
|
1071 | 1071 | } |
1072 | 1072 | } |
1073 | 1073 | |
| 1074 | const char* username; |
| 1075 | if (message.FindString("username", &username) != B_OK && found) |
| 1076 | username = networkMessage.FindString("username"); |
| 1077 | |
1074 | 1078 | const char* password; |
1075 | 1079 | if (message.FindString("password", &password) != B_OK && found) |
1076 | 1080 | password = networkMessage.FindString("password"); |
… |
… |
NetServer::_JoinNetwork(const BMessage& message, const char* name)
|
1103 | 1107 | network.authentication_mode = B_NETWORK_AUTHENTICATION_WPA2; |
1104 | 1108 | network.key_mode = B_KEY_MODE_IEEE802_1X; |
1105 | 1109 | network.cipher = network.group_cipher = B_NETWORK_CIPHER_CCMP; |
| 1110 | } else if (!strcasecmp(string, "wpa2-eap")) { |
| 1111 | network.authentication_mode = B_NETWORK_AUTHENTICATION_EAP; |
| 1112 | network.key_mode = B_KEY_MODE_IEEE802_1X; |
| 1113 | network.cipher = network.group_cipher = B_NETWORK_CIPHER_CCMP; |
1106 | 1114 | } else if (!strcasecmp(string, "wpa")) { |
1107 | 1115 | network.authentication_mode = B_NETWORK_AUTHENTICATION_WPA; |
1108 | 1116 | network.key_mode = B_KEY_MODE_IEEE802_1X; |
… |
… |
NetServer::_JoinNetwork(const BMessage& message, const char* name)
|
1156 | 1164 | status = join.AddFlat("address", &network.address); |
1157 | 1165 | if (status == B_OK && !askForConfig) |
1158 | 1166 | status = join.AddUInt32("authentication", network.authentication_mode); |
| 1167 | if (status == B_OK |
| 1168 | && network.authentication_mode == B_NETWORK_AUTHENTICATION_EAP) { |
| 1169 | if (username != NULL) |
| 1170 | status = join.AddString("username", username); |
| 1171 | } |
1159 | 1172 | if (status == B_OK && password != NULL) |
1160 | 1173 | status = join.AddString("password", password); |
1161 | 1174 | if (status != B_OK) |
… |
… |
NetServer::_ConvertNetworkToSettings(BMessage& message)
|
1267 | 1280 | case B_NETWORK_AUTHENTICATION_WPA2: |
1268 | 1281 | authenticationString = "wpa2"; |
1269 | 1282 | break; |
| 1283 | case B_NETWORK_AUTHENTICATION_EAP: |
| 1284 | authenticationString = "wpa2-eap"; |
| 1285 | break; |
1270 | 1286 | } |
1271 | 1287 | |
1272 | 1288 | if (result == B_OK && authenticationString != NULL) |
diff --git a/src/servers/net/Settings.cpp b/src/servers/net/Settings.cpp
index a52c2b1..a9beb03 100644
a
|
b
|
const static settings_template kInterfacesTemplate[] = {
|
63 | 63 | const static settings_template kNetworkTemplate[] = { |
64 | 64 | {B_STRING_TYPE, "name", NULL, true}, |
65 | 65 | {B_STRING_TYPE, "mac", NULL}, |
| 66 | {B_STRING_TYPE, "username", NULL}, |
66 | 67 | {B_STRING_TYPE, "password", NULL}, |
67 | 68 | {B_STRING_TYPE, "authentication", NULL}, |
68 | 69 | {B_STRING_TYPE, "cipher", NULL}, |