]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hostapd/config_file.c
AP: Support Extended Key ID
[thirdparty/hostap.git] / hostapd / config_file.c
index 3c7bb395f9bdd4f3d75cd76af167c7cc8492f550..2bc0679b5c3d4482a1284cc5d4949a737d903dd2 100644 (file)
@@ -2869,6 +2869,16 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                }
        } else if (os_strcmp(buf, "wpa") == 0) {
                bss->wpa = atoi(pos);
+       } else if (os_strcmp(buf, "extended_key_id") == 0) {
+               int val = atoi(pos);
+
+               if (bss->extended_key_id < 0 || bss->extended_key_id > 2) {
+                       wpa_printf(MSG_ERROR,
+                                  "Line %d: Invalid extended_key_id=%d; allowed range 0..2",
+                                  line, bss->extended_key_id);
+                       return 1;
+               }
+               bss->extended_key_id = val;
        } else if (os_strcmp(buf, "wpa_group_rekey") == 0) {
                bss->wpa_group_rekey = atoi(pos);
                bss->wpa_group_rekey_set = 1;