1161200Ssam/*- 2174244Ssam * Copyright (c) 2002-2007 Sam Leffler, Errno Consulting 3161200Ssam * All rights reserved. 4161200Ssam * 5161200Ssam * Redistribution and use in source and binary forms, with or without 6161200Ssam * modification, are permitted provided that the following conditions 7161200Ssam * are met: 8161200Ssam * 1. Redistributions of source code must retain the above copyright 9161200Ssam * notice, this list of conditions and the following disclaimer, 10161200Ssam * without modification. 11161200Ssam * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12161200Ssam * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13161200Ssam * redistribution must be conditioned upon including a substantially 14161200Ssam * similar Disclaimer requirement for further binary redistribution. 15161200Ssam * 16161200Ssam * NO WARRANTY 17161200Ssam * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18161200Ssam * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19161200Ssam * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 20161200Ssam * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 21161200Ssam * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22161200Ssam * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23161200Ssam * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24161200Ssam * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25161200Ssam * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26161200Ssam * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27161200Ssam * THE POSSIBILITY OF SUCH DAMAGES. 28161200Ssam * 29161200Ssam * $FreeBSD$ 30161200Ssam */ 31161200Ssam 32161200Ssam#ifndef _WLANSTATS_H_ 33161200Ssam#define _WLANSTATS_H_ 34161200Ssam 35161200Ssam#include "statfoo.h" 36161200Ssam 37161200Ssam/* 38161200Ssam * wlan statistics class. 39161200Ssam */ 40161200Ssamstruct wlanstatfoo { 41161200Ssam struct statfoo base; 42161200Ssam 43161200Ssam STATFOO_DECL_METHODS(struct wlanstatfoo *); 44161200Ssam 45161200Ssam /* set the network interface name for collection */ 46161200Ssam void (*setifname)(struct wlanstatfoo *, const char *ifname); 47161200Ssam /* get the network interface name */ 48161200Ssam const char *(*getifname)(struct wlanstatfoo *); 49161200Ssam /* get the wireless operating mode */ 50161200Ssam int (*getopmode)(struct wlanstatfoo *); 51161200Ssam /* set the mac address of the associated station/ap */ 52161200Ssam void (*setstamac)(struct wlanstatfoo *, const uint8_t mac[]); 53161200Ssam}; 54161200Ssam 55161200Ssamstruct wlanstatfoo *wlanstats_new(const char *ifname, const char *fmtstring); 56161200Ssam#endif /* _WLANSTATS_H_ */ 57