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

Function getmaxrate

tools/ifconfig/ifieee80211.c:2602–2613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2600}
2601
2602static int
2603getmaxrate(const uint8_t rates[15], uint8_t nrates)
2604{
2605 int i, maxrate = -1;
2606
2607 for (i = 0; i < nrates; i++) {
2608 int rate = rates[i] & IEEE80211_RATE_VAL;
2609 if (rate > maxrate)
2610 maxrate = rate;
2611 }
2612 return maxrate / 2;
2613}
2614
2615static const char *
2616getcaps(int capinfo)

Callers 1

list_scanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected