[net80211] teach AMRR to log the initial MCS rate as "MCS X"
Otheriwse it logs it as the rate value, which is 0x80 (MCS flag) + MCS, which isn't that helpful. Approved by: re (gjb)
This commit is contained in:
parent
2d8904583c
commit
eec8884595
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302307
@ -220,10 +220,13 @@ amrr_node_init(struct ieee80211_node *ni)
|
||||
ni->ni_txrate = rate;
|
||||
amn->amn_ticks = ticks;
|
||||
|
||||
/* XXX TODO: we really need a rate-to-string method */
|
||||
/* XXX TODO: non-11n rate should be divided by two.. */
|
||||
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
|
||||
"AMRR: nrates=%d, initial rate %d",
|
||||
"AMRR: nrates=%d, initial rate %s%d",
|
||||
rs->rs_nrates,
|
||||
rate);
|
||||
amrr_node_is_11n(ni) ? "MCS " : "",
|
||||
rate & IEEE80211_RATE_VAL);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -249,6 +252,8 @@ amrr_update(struct ieee80211_amrr *amrr, struct ieee80211_amrr_node *amn,
|
||||
rs = &ni->ni_rates;
|
||||
}
|
||||
|
||||
/* XXX TODO: we really need a rate-to-string method */
|
||||
/* XXX TODO: non-11n rate should be divided by two.. */
|
||||
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
|
||||
"AMRR: current rate %d, txcnt=%d, retrycnt=%d",
|
||||
rs->rs_rates[rix] & IEEE80211_RATE_VAL,
|
||||
@ -270,6 +275,8 @@ amrr_update(struct ieee80211_amrr *amrr, struct ieee80211_amrr_node *amn,
|
||||
amn->amn_recovery = 1;
|
||||
amn->amn_success = 0;
|
||||
rix++;
|
||||
/* XXX TODO: we really need a rate-to-string method */
|
||||
/* XXX TODO: non-11n rate should be divided by two.. */
|
||||
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
|
||||
"AMRR increasing rate %d (txcnt=%d retrycnt=%d)",
|
||||
rs->rs_rates[rix] & IEEE80211_RATE_VAL,
|
||||
@ -291,6 +298,8 @@ amrr_update(struct ieee80211_amrr *amrr, struct ieee80211_amrr_node *amn,
|
||||
amrr->amrr_min_success_threshold;
|
||||
}
|
||||
rix--;
|
||||
/* XXX TODO: we really need a rate-to-string method */
|
||||
/* XXX TODO: non-11n rate should be divided by two.. */
|
||||
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
|
||||
"AMRR decreasing rate %d (txcnt=%d retrycnt=%d)",
|
||||
rs->rs_rates[rix] & IEEE80211_RATE_VAL,
|
||||
|
Loading…
Reference in New Issue
Block a user