Date: Fri, 10 Jul 2009 11:59:14 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195554 - projects/mesh11s/sys/net80211 Message-ID: <200907101159.n6ABxEmk019500@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Fri Jul 10 11:59:14 2009 New Revision: 195554 URL: http://svn.freebsd.org/changeset/base/195554 Log: Remove doprint(). Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_mesh.c Fri Jul 10 11:55:50 2009 (r195553) +++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Fri Jul 10 11:59:14 2009 (r195554) @@ -567,24 +567,6 @@ mesh_newstate(struct ieee80211vap *vap, } /* - * Decide if a received management frame should be - * printed when debugging is enabled. This filters some - * of the less interesting frames that come frequently - * (e.g. beacons). - */ -static __inline int -doprint(struct ieee80211vap *vap, int subtype) -{ - switch (subtype) { - case IEEE80211_FC0_SUBTYPE_BEACON: - return (vap->iv_ic->ic_flags & IEEE80211_F_SCAN); - case IEEE80211_FC0_SUBTYPE_PROBE_REQ: - return 1; - } - return 1; -} - -/* * Helper function to note the Mesh Peer Link FSM change. */ static __inline void @@ -1002,7 +984,8 @@ mesh_input(struct ieee80211_node *ni, st goto out; } #ifdef IEEE80211_DEBUG - if ((ieee80211_msg_debug(vap) && doprint(vap, subtype)) || + if ((ieee80211_msg_debug(vap) && + (vap->iv_ic->ic_flags & IEEE80211_F_SCAN)) ieee80211_msg_dumppkts(vap)) { if_printf(ifp, "received %s from %s rssi %d\n", ieee80211_mgt_subtype_name[subtype >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907101159.n6ABxEmk019500>