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

Function list_txparams

tools/ifconfig/ifieee80211.c:4408–4457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4406}
4407
4408static void
4409list_txparams(int s)
4410{
4411 const struct ieee80211_txparam *tp;
4412 int mode;
4413
4414 gettxparams(s);
4415 for (mode = IEEE80211_MODE_11A; mode < IEEE80211_MODE_MAX; mode++) {
4416 tp = &txparams.params[mode];
4417 if (tp->mgmtrate == 0 && tp->mcastrate == 0)
4418 continue;
4419 if (mode == IEEE80211_MODE_11NA ||
4420 mode == IEEE80211_MODE_11NG ||
4421 mode == IEEE80211_MODE_VHT_2GHZ ||
4422 mode == IEEE80211_MODE_VHT_5GHZ) {
4423 if (tp->ucastrate == IEEE80211_FIXED_RATE_NONE)
4424 LINE_CHECK("%-7.7s ucast NONE mgmt %2u %s "
4425 "mcast %2u %s maxretry %u",
4426 modename[mode],
4427 get_rate_value(tp->mgmtrate),
4428 get_mcs_mbs_rate_str(tp->mgmtrate),
4429 get_rate_value(tp->mcastrate),
4430 get_mcs_mbs_rate_str(tp->mcastrate),
4431 tp->maxretry);
4432 else
4433 LINE_CHECK("%-7.7s ucast %2u MCS mgmt %2u %s "
4434 "mcast %2u %s maxretry %u",
4435 modename[mode],
4436 tp->ucastrate &~ IEEE80211_RATE_MCS,
4437 get_rate_value(tp->mgmtrate),
4438 get_mcs_mbs_rate_str(tp->mgmtrate),
4439 get_rate_value(tp->mcastrate),
4440 get_mcs_mbs_rate_str(tp->mcastrate),
4441 tp->maxretry);
4442 } else {
4443 if (tp->ucastrate == IEEE80211_FIXED_RATE_NONE)
4444 LINE_CHECK("%-7.7s ucast NONE mgmt %2u Mb/s "
4445 "mcast %2u Mb/s maxretry %u",
4446 modename[mode],
4447 tp->mgmtrate/2,
4448 tp->mcastrate/2, tp->maxretry);
4449 else
4450 LINE_CHECK("%-7.7s ucast %2u Mb/s mgmt %2u Mb/s "
4451 "mcast %2u Mb/s maxretry %u",
4452 modename[mode],
4453 tp->ucastrate/2, tp->mgmtrate/2,
4454 tp->mcastrate/2, tp->maxretry);
4455 }
4456 }
4457}
4458
4459static void
4460printpolicy(int policy)

Callers 2

ifieee80211.cFile · 0.85
ieee80211_statusFunction · 0.85

Calls 4

gettxparamsFunction · 0.85
LINE_CHECKFunction · 0.85
get_rate_valueFunction · 0.85
get_mcs_mbs_rate_strFunction · 0.85

Tested by

no test coverage detected