ieee80211_tdma.h (186904) | ieee80211_tdma.h (189980) |
---|---|
1/*- 2 * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2007-2009 Intel Corporation 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2007-2009 Intel Corporation 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/net80211/ieee80211_tdma.h 186904 2009-01-08 17:12:47Z sam $ | 26 * $FreeBSD: head/sys/net80211/ieee80211_tdma.h 189980 2009-03-18 19:28:17Z sam $ |
27 */ 28#ifndef _NET80211_IEEE80211_TDMA_H_ 29#define _NET80211_IEEE80211_TDMA_H_ 30 31/* 32 * TDMA-mode implementation definitions. 33 */ 34struct ieee80211_tdma_state { 35 u_int tdma_slotlen; /* bss slot length (us) */ | 27 */ 28#ifndef _NET80211_IEEE80211_TDMA_H_ 29#define _NET80211_IEEE80211_TDMA_H_ 30 31/* 32 * TDMA-mode implementation definitions. 33 */ 34struct ieee80211_tdma_state { 35 u_int tdma_slotlen; /* bss slot length (us) */ |
36 uint8_t tdma_version; /* protocol version to use */ |
|
36 uint8_t tdma_slotcnt; /* bss slot count */ 37 uint8_t tdma_bintval; /* beacon interval (slots) */ 38 uint8_t tdma_slot; /* station slot # */ 39 uint8_t tdma_inuse[1]; /* mask of slots in use */ | 37 uint8_t tdma_slotcnt; /* bss slot count */ 38 uint8_t tdma_bintval; /* beacon interval (slots) */ 39 uint8_t tdma_slot; /* station slot # */ 40 uint8_t tdma_inuse[1]; /* mask of slots in use */ |
40#define IEEE80211_TDMA_MAXSLOTS 8 | |
41 void *tdma_peer; /* peer station cookie */ 42 uint8_t tdma_active[1]; /* mask of active slots */ 43 int tdma_count; /* active/inuse countdown */ 44 45 /* parent method pointers */ 46 int (*tdma_newstate)(struct ieee80211vap *, enum ieee80211_state, 47 int arg); 48 void (*tdma_recv_mgmt)(struct ieee80211_node *, 49 struct mbuf *, int, int, int, uint32_t); 50 void (*tdma_opdetach)(struct ieee80211vap *); 51}; | 41 void *tdma_peer; /* peer station cookie */ 42 uint8_t tdma_active[1]; /* mask of active slots */ 43 int tdma_count; /* active/inuse countdown */ 44 45 /* parent method pointers */ 46 int (*tdma_newstate)(struct ieee80211vap *, enum ieee80211_state, 47 int arg); 48 void (*tdma_recv_mgmt)(struct ieee80211_node *, 49 struct mbuf *, int, int, int, uint32_t); 50 void (*tdma_opdetach)(struct ieee80211vap *); 51}; |
52 53#define TDMA_UPDATE_SLOT 0x0001 /* tdma_slot changed */ 54#define TDMA_UPDATE_SLOTCNT 0x0002 /* tdma_slotcnt changed */ 55#define TDMA_UPDATE_SLOTLEN 0x0004 /* tdma_slotlen changed */ 56#define TDMA_UPDATE_BINTVAL 0x0008 /* tdma_bintval changed */ |
|
52 53void ieee80211_tdma_vattach(struct ieee80211vap *); 54 55int ieee80211_tdma_getslot(struct ieee80211vap *vap); 56void ieee80211_parse_tdma(struct ieee80211_node *ni, const uint8_t *ie); 57uint8_t *ieee80211_add_tdma(uint8_t *frm, struct ieee80211vap *vap); 58struct ieee80211_beacon_offsets; 59void ieee80211_tdma_update_beacon(struct ieee80211vap *vap, 60 struct ieee80211_beacon_offsets *bo); 61struct ieee80211req; 62int ieee80211_tdma_ioctl_get80211(struct ieee80211vap *vap, 63 struct ieee80211req *ireq); 64int ieee80211_tdma_ioctl_set80211(struct ieee80211vap *vap, 65 struct ieee80211req *ireq); 66#endif /* !_NET80211_IEEE80211_TDMA_H_ */ | 57 58void ieee80211_tdma_vattach(struct ieee80211vap *); 59 60int ieee80211_tdma_getslot(struct ieee80211vap *vap); 61void ieee80211_parse_tdma(struct ieee80211_node *ni, const uint8_t *ie); 62uint8_t *ieee80211_add_tdma(uint8_t *frm, struct ieee80211vap *vap); 63struct ieee80211_beacon_offsets; 64void ieee80211_tdma_update_beacon(struct ieee80211vap *vap, 65 struct ieee80211_beacon_offsets *bo); 66struct ieee80211req; 67int ieee80211_tdma_ioctl_get80211(struct ieee80211vap *vap, 68 struct ieee80211req *ireq); 69int ieee80211_tdma_ioctl_set80211(struct ieee80211vap *vap, 70 struct ieee80211req *ireq); 71#endif /* !_NET80211_IEEE80211_TDMA_H_ */ |