summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-12-14 08:37:02 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-12-14 08:37:02 +0000
commit280757869e0462587d662599fc794471b3caace3 (patch)
tree0703a0729c4b636b626ffbffb1b1c0c851af40a4
parentd249327cf40e1c97db78940e930af21c68286bf2 (diff)
In AMRR debug printfs, show ni_txmcs instead of ni_txrate for HT nodes.
-rw-r--r--sys/net80211/ieee80211_amrr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_amrr.c b/sys/net80211/ieee80211_amrr.c
index 686b9aa7eef..948cbf93e56 100644
--- a/sys/net80211/ieee80211_amrr.c
+++ b/sys/net80211/ieee80211_amrr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_amrr.c,v 1.9 2015/11/15 13:20:16 stsp Exp $ */
+/* $OpenBSD: ieee80211_amrr.c,v 1.10 2015/12/14 08:37:01 stsp Exp $ */
/*-
* Copyright (c) 2006
@@ -118,6 +118,7 @@ ieee80211_amrr_choose(struct ieee80211_amrr *amrr, struct ieee80211_node *ni,
amn->amn_success = 0;
increase_rate(ni);
DPRINTF(("increase rate=%d,#tx=%d,#retries=%d\n",
+ (ni->ni_flags & IEEE80211_NODE_HT) ? ni->ni_txmcs :
RV(ni->ni_rates.rs_rates[ni->ni_txrate]),
amn->amn_txcnt, amn->amn_retrycnt));
need_change = 1;
@@ -139,6 +140,7 @@ ieee80211_amrr_choose(struct ieee80211_amrr *amrr, struct ieee80211_node *ni,
}
decrease_rate(ni);
DPRINTF(("decrease rate=%d,#tx=%d,#retries=%d\n",
+ (ni->ni_flags & IEEE80211_NODE_HT) ? ni->ni_txmcs :
RV(ni->ni_rates.rs_rates[ni->ni_txrate]),
amn->amn_txcnt, amn->amn_retrycnt));
need_change = 1;