-/* $OpenBSD: print-802_11.c,v 1.42 2022/03/17 14:00:53 stsp Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.43 2022/07/22 20:31:45 stsp Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
case 6:
printf("SHA256-PSK");
break;
+ case 8:
+ printf("SAE");
+ break;
default:
printf("%d", selector[3]);
break;
printf(",cipher%s ", nciphers > 1 ? "s" : "");
for (i = 0; i < nciphers; i++) {
for (j = 0; j < 4; j++)
- selector[j] = data[i + j];
+ selector[j] = data[j];
ieee80211_print_rsncipher(selector);
if (i < nciphers - 1)
printf(" ");
}
printf(",akm%s ", nakms > 1 ? "s" : "");
- for (i = 0; i < nciphers; i++) {
+ for (i = 0; i < nakms; i++) {
for (j = 0; j < 4; j++)
- selector[j] = data[i + j];
+ selector[j] = data[j];
ieee80211_print_akm(selector);
- if (i < nciphers - 1)
+ if (i < nakms - 1)
printf(" ");
data += 4;
}