Module Name:    src
Committed By:   christos
Date:           Tue Apr 28 15:14:57 UTC 2015

Modified Files:
        src/sbin/ifconfig: Makefile ieee80211.c

Log Message:
remove 80211 stats if small.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sbin/ifconfig/Makefile
cvs rdiff -u -r1.27 -r1.28 src/sbin/ifconfig/ieee80211.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/ifconfig/Makefile
diff -u src/sbin/ifconfig/Makefile:1.54 src/sbin/ifconfig/Makefile:1.55
--- src/sbin/ifconfig/Makefile:1.54	Fri Mar  1 13:25:16 2013
+++ src/sbin/ifconfig/Makefile	Tue Apr 28 11:14:57 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.54 2013/03/01 18:25:16 joerg Exp $
+#	$NetBSD: Makefile,v 1.55 2015/04/28 15:14:57 christos Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/5/93
 
 # when making a change to this file, please check if the change is
@@ -25,6 +25,10 @@ RUMPSRCS= getifaddrs.c
 CPPFLAGS+= -DRUMP_ACTION
 .endif
 
+.ifdef SMALLPROG
+CPPFLAGS+=-DSMALL
+.endif
+
 CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
 SRCS+= pfsync.c
 

Index: src/sbin/ifconfig/ieee80211.c
diff -u src/sbin/ifconfig/ieee80211.c:1.27 src/sbin/ifconfig/ieee80211.c:1.28
--- src/sbin/ifconfig/ieee80211.c:1.27	Tue Jan  7 20:56:20 2014
+++ src/sbin/ifconfig/ieee80211.c	Tue Apr 28 11:14:57 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $	*/
+/*	$NetBSD: ieee80211.c,v 1.28 2015/04/28 15:14:57 christos Exp $	*/
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ieee80211.c,v 1.27 2014/01/08 01:56:20 christos Exp $");
+__RCSID("$NetBSD: ieee80211.c,v 1.28 2015/04/28 15:14:57 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -482,6 +482,7 @@ scan_exec(prop_dictionary_t env, prop_di
 static void
 ieee80211_statistics(prop_dictionary_t env)
 {
+#ifndef SMALL
 	struct ieee80211_stats stats;
 	struct ifreq ifr;
 
@@ -584,6 +585,7 @@ ieee80211_statistics(prop_dictionary_t e
 	STAT_PRINT(is_ff_decap, "fast frames decap'd");
 	STAT_PRINT(is_ff_encap, "fast frames encap'd for tx");
 	STAT_PRINT(is_rx_badbintval, "rx frame w/ bogus bintval");
+#endif
 }
 
 static void

Reply via email to