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

Function getcaps

tools/ifconfig/ifieee80211.c:2615–2645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2613}
2614
2615static const char *
2616getcaps(int capinfo)
2617{
2618 static char capstring[32];
2619 char *cp = capstring;
2620
2621 if (capinfo & IEEE80211_CAPINFO_ESS)
2622 *cp++ = 'E';
2623 if (capinfo & IEEE80211_CAPINFO_IBSS)
2624 *cp++ = 'I';
2625 if (capinfo & IEEE80211_CAPINFO_CF_POLLABLE)
2626 *cp++ = 'c';
2627 if (capinfo & IEEE80211_CAPINFO_CF_POLLREQ)
2628 *cp++ = 'C';
2629 if (capinfo & IEEE80211_CAPINFO_PRIVACY)
2630 *cp++ = 'P';
2631 if (capinfo & IEEE80211_CAPINFO_SHORT_PREAMBLE)
2632 *cp++ = 'S';
2633 if (capinfo & IEEE80211_CAPINFO_PBCC)
2634 *cp++ = 'B';
2635 if (capinfo & IEEE80211_CAPINFO_CHNL_AGILITY)
2636 *cp++ = 'A';
2637 if (capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME)
2638 *cp++ = 's';
2639 if (capinfo & IEEE80211_CAPINFO_RSN)
2640 *cp++ = 'R';
2641 if (capinfo & IEEE80211_CAPINFO_DSSSOFDM)
2642 *cp++ = 'D';
2643 *cp = '\0';
2644 return capstring;
2645}
2646
2647static const char *
2648getflags(int flags)

Callers 2

list_scanFunction · 0.85
list_stationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected