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

Function wpa_cipher

tools/ifconfig/ifieee80211.c:3021–3041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3019}
3020
3021static const char *
3022wpa_cipher(const u_int8_t *sel)
3023{
3024#define WPA_SEL(x) (((x)<<24)|WPA_OUI)
3025 u_int32_t w = LE_READ_4(sel);
3026
3027 switch (w) {
3028 case WPA_SEL(WPA_CSE_NULL):
3029 return "NONE";
3030 case WPA_SEL(WPA_CSE_WEP40):
3031 return "WEP40";
3032 case WPA_SEL(WPA_CSE_WEP104):
3033 return "WEP104";
3034 case WPA_SEL(WPA_CSE_TKIP):
3035 return "TKIP";
3036 case WPA_SEL(WPA_CSE_CCMP):
3037 return "AES-CCMP";
3038 }
3039 return "?"; /* NB: so 1<< is discarded */
3040#undef WPA_SEL
3041}
3042
3043static const char *
3044wpa_keymgmt(const u_int8_t *sel)

Callers 1

printwpaieFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected