wlandebug.c (179398) | wlandebug.c (186904) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting | 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer, 10 * without modification. --- 10 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer, 10 * without modification. --- 10 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * |
29 * $FreeBSD: head/usr.sbin/wlandebug/wlandebug.c 179398 2008-05-28 23:37:37Z sam $ | 29 * $FreeBSD: head/usr.sbin/wlandebug/wlandebug.c 186904 2009-01-08 17:12:47Z sam $ |
30 */ 31 32/* 33 * wlandebug [-i interface] flags 34 * (default interface is wlan.0). 35 */ 36#include <sys/types.h> 37#include <sys/sysctl.h> --- 34 unchanged lines hidden (view full) --- 72#define IEEE80211_MSG_SUPERG 0x00000200 /* Atheros SuperG protocol */ 73#define IEEE80211_MSG_DOTH 0x00000100 /* 802.11h support */ 74#define IEEE80211_MSG_INACT 0x00000080 /* inactivity handling */ 75#define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */ 76#define IEEE80211_MSG_RATECTL 0x00000020 /* tx rate control */ 77#define IEEE80211_MSG_ACTION 0x00000010 /* action frame handling */ 78#define IEEE80211_MSG_WDS 0x00000008 /* WDS handling */ 79#define IEEE80211_MSG_IOCTL 0x00000004 /* ioctl handling */ | 30 */ 31 32/* 33 * wlandebug [-i interface] flags 34 * (default interface is wlan.0). 35 */ 36#include <sys/types.h> 37#include <sys/sysctl.h> --- 34 unchanged lines hidden (view full) --- 72#define IEEE80211_MSG_SUPERG 0x00000200 /* Atheros SuperG protocol */ 73#define IEEE80211_MSG_DOTH 0x00000100 /* 802.11h support */ 74#define IEEE80211_MSG_INACT 0x00000080 /* inactivity handling */ 75#define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */ 76#define IEEE80211_MSG_RATECTL 0x00000020 /* tx rate control */ 77#define IEEE80211_MSG_ACTION 0x00000010 /* action frame handling */ 78#define IEEE80211_MSG_WDS 0x00000008 /* WDS handling */ 79#define IEEE80211_MSG_IOCTL 0x00000004 /* ioctl handling */ |
80#define IEEE80211_MSG_ADDBA 0x00000002 /* ADDBA handling */ | 80#define IEEE80211_MSG_TDMA 0x00000002 /* TDMA handling */ |
81 82static struct { 83 const char *name; 84 u_int bit; 85} flags[] = { 86 { "11n", IEEE80211_MSG_11N }, 87 { "debug", IEEE80211_MSG_DEBUG }, 88 { "dumppkts", IEEE80211_MSG_DUMPPKTS }, --- 19 unchanged lines hidden (view full) --- 108 { "superg", IEEE80211_MSG_SUPERG }, 109 { "doth", IEEE80211_MSG_DOTH }, 110 { "inact", IEEE80211_MSG_INACT }, 111 { "roam", IEEE80211_MSG_ROAM }, 112 { "rate", IEEE80211_MSG_RATECTL }, 113 { "action", IEEE80211_MSG_ACTION }, 114 { "wds", IEEE80211_MSG_WDS }, 115 { "ioctl", IEEE80211_MSG_IOCTL }, | 81 82static struct { 83 const char *name; 84 u_int bit; 85} flags[] = { 86 { "11n", IEEE80211_MSG_11N }, 87 { "debug", IEEE80211_MSG_DEBUG }, 88 { "dumppkts", IEEE80211_MSG_DUMPPKTS }, --- 19 unchanged lines hidden (view full) --- 108 { "superg", IEEE80211_MSG_SUPERG }, 109 { "doth", IEEE80211_MSG_DOTH }, 110 { "inact", IEEE80211_MSG_INACT }, 111 { "roam", IEEE80211_MSG_ROAM }, 112 { "rate", IEEE80211_MSG_RATECTL }, 113 { "action", IEEE80211_MSG_ACTION }, 114 { "wds", IEEE80211_MSG_WDS }, 115 { "ioctl", IEEE80211_MSG_IOCTL }, |
116 { "addba", IEEE80211_MSG_ADDBA }, | 116 { "tdma", IEEE80211_MSG_TDMA }, |
117}; 118 119static u_int 120getflag(const char *name, int len) 121{ 122 int i; 123 124 for (i = 0; i < N(flags); i++) --- 119 unchanged lines hidden --- | 117}; 118 119static u_int 120getflag(const char *name, int len) 121{ 122 int i; 123 124 for (i = 0; i < N(flags); i++) --- 119 unchanged lines hidden --- |