MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rsn_keymgmt

Function rsn_keymgmt

tools/ifconfig/ifieee80211.c:3129–3145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3127}
3128
3129static const char *
3130rsn_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
3147static void
3148printrsnie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen)

Callers 1

printrsnieFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected