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

Function ht_rateprint

freebsd/net80211/ieee80211_ht.c:365–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363};
364
365static void
366ht_rateprint(struct ieee80211com *ic, enum ieee80211_phymode mode, int ratetype)
367{
368 int minrate, maxrate;
369 struct printranges *range;
370
371 for (range = ranges; range->txstream != 0; range++) {
372 if (ic->ic_txstream < range->txstream)
373 continue;
374 if (range->htcapflags &&
375 (ic->ic_htcaps & range->htcapflags) == 0)
376 continue;
377 if (ratetype < range->ratetype)
378 continue;
379 minrate = ht_getrate(ic, range->minmcs, mode, ratetype);
380 maxrate = ht_getrate(ic, range->maxmcs, mode, ratetype);
381 if (range->maxmcs) {
382 ic_printf(ic, "MCS %d-%d: %d%sMbps - %d%sMbps\n",
383 range->minmcs, range->maxmcs,
384 minrate/2, ((minrate & 0x1) != 0 ? ".5" : ""),
385 maxrate/2, ((maxrate & 0x1) != 0 ? ".5" : ""));
386 } else {
387 ic_printf(ic, "MCS %d: %d%sMbps\n", range->minmcs,
388 minrate/2, ((minrate & 0x1) != 0 ? ".5" : ""));
389 }
390 }
391}
392
393static void
394ht_announce(struct ieee80211com *ic, enum ieee80211_phymode mode)

Callers 1

ht_announceFunction · 0.85

Calls 2

ht_getrateFunction · 0.85
ic_printfFunction · 0.85

Tested by

no test coverage detected