socsvn commit: r257070 - in soc2013/ccqin/head/sys: dev/ath net80211
ccqin at FreeBSD.org
ccqin at FreeBSD.org
Sat Sep 7 10:29:23 UTC 2013
Author: ccqin
Date: Sat Sep 7 10:29:22 2013
New Revision: 257070
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257070
Log:
add some debug msgs to funcs relating to rateclt mbuf tag.
Modified:
soc2013/ccqin/head/sys/dev/ath/if_ath.c
soc2013/ccqin/head/sys/dev/ath/if_ath_tx.c
soc2013/ccqin/head/sys/net80211/ieee80211_freebsd.c
Modified: soc2013/ccqin/head/sys/dev/ath/if_ath.c
==============================================================================
--- soc2013/ccqin/head/sys/dev/ath/if_ath.c Sat Sep 7 09:47:18 2013 (r257069)
+++ soc2013/ccqin/head/sys/dev/ath/if_ath.c Sat Sep 7 10:29:22 2013 (r257070)
@@ -4099,7 +4099,9 @@
ts->ts_shortretry, ts->ts_longretry,
ts->ts_finaltsi, ts->ts_rate);
ieee80211_ratectl_tx_complete(ni->ni_vap, ni, rc_info);
- }
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't locate mbuf tag for ratectl.\n", __func__);
}
ath_tx_default_comp(sc, bf, 0);
} else
Modified: soc2013/ccqin/head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- soc2013/ccqin/head/sys/dev/ath/if_ath_tx.c Sat Sep 7 09:47:18 2013 (r257069)
+++ soc2013/ccqin/head/sys/dev/ath/if_ath_tx.c Sat Sep 7 10:29:22 2013 (r257070)
@@ -1425,8 +1425,11 @@
sizeof(struct ieee80211_rc_info), M_NOWAIT);
if (NULL == mtag)
return;
- /* XXX need some msg out here.*/
- }
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't alloc mbuf tag for ratectl.\n", __func__);
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: nani? find mbuf tag for ratectl directly.\n", __func__);
rc_info = (struct ieee80211_rc_info*)(mtag + 1);
rc = rc_info->iri_rc;
@@ -4159,7 +4162,9 @@
ts->ts_shortretry, ts->ts_longretry,
ts->ts_finaltsi, ts->ts_rate);
ieee80211_ratectl_tx_complete(ni->ni_vap, ni, rc_info);
- }
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't locate mbuf tag for ratectl.\n", __func__);
}
ath_tx_default_comp(sc, bf, fail);
@@ -4557,7 +4562,9 @@
ts.ts_shortretry, ts.ts_longretry,
ts.ts_finaltsi, ts.ts_rate);
ieee80211_ratectl_tx_complete(ni->ni_vap, ni, rc_info);
- }
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't locate mbuf tag for ratectl.\n", __func__);
ATH_TX_LOCK(sc);
tap = ath_tx_get_tx_tid(an, tid->tid);
@@ -4965,7 +4972,9 @@
ts.ts_shortretry, ts.ts_longretry,
ts.ts_finaltsi, ts.ts_rate);
ieee80211_ratectl_tx_complete(ni->ni_vap, ni, rc_info);
- }
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't locate mbuf tag for ratectl.\n", __func__);
}
/*
@@ -5074,7 +5083,9 @@
ts.ts_shortretry, ts.ts_longretry,
ts.ts_finaltsi, ts.ts_rate);
ieee80211_ratectl_tx_complete(ni->ni_vap, ni, rc_info);
- }
+ } else
+ IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_RATECTL, ni,
+ "%s: can't locate mbuf tag for ratectl.\n", __func__);
}
/*
* This is called early so atid->hwq_depth can be tracked.
Modified: soc2013/ccqin/head/sys/net80211/ieee80211_freebsd.c
==============================================================================
--- soc2013/ccqin/head/sys/net80211/ieee80211_freebsd.c Sat Sep 7 09:47:18 2013 (r257069)
+++ soc2013/ccqin/head/sys/net80211/ieee80211_freebsd.c Sat Sep 7 10:29:22 2013 (r257070)
@@ -264,7 +264,7 @@
#ifdef IEEE80211_DEBUG
ieee80211_debug |= IEEE80211_MSG_RATECTL;
vap->iv_debug = ieee80211_debug;
- if_printf(ifp, "%s: iv_debug=0x%x\n", __func__, vap->iv_debug);
+ if_printf(ifp, "%s: iv_debug=0x%08x\n", __func__, vap->iv_debug);
SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(oid), OID_AUTO,
"debug", CTLFLAG_RW, &vap->iv_debug, 0,
"control debugging printfs");
More information about the svn-soc-all
mailing list