| 3127 | } |
| 3128 | |
| 3129 | static const char * |
| 3130 | rsn_keymgmt(const u_int8_t *sel) |
| 3131 | { |
| 3132 | #define RSN_SEL(x) (((x)<<24)|RSN_OUI) |
| 3133 | u_int32_t w = LE_READ_4(sel); |
| 3134 | |
| 3135 | switch (w) { |
| 3136 | case RSN_SEL(RSN_ASE_8021X_UNSPEC): |
| 3137 | return "8021X-UNSPEC"; |
| 3138 | case RSN_SEL(RSN_ASE_8021X_PSK): |
| 3139 | return "8021X-PSK"; |
| 3140 | case RSN_SEL(RSN_ASE_NONE): |
| 3141 | return "NONE"; |
| 3142 | } |
| 3143 | return "?"; |
| 3144 | #undef RSN_SEL |
| 3145 | } |
| 3146 | |
| 3147 | static void |
| 3148 | printrsnie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) |