ieee80211_power.c (170530) | ieee80211_power.c (172211) |
---|---|
1/*- 2 * Copyright (c) 2002-2007 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 --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2007 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 --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_power.c 170530 2007-06-11 03:36:55Z sam $"); | 27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_power.c 172211 2007-09-17 19:07:24Z sam $"); |
28 29/* 30 * IEEE 802.11 power save support. 31 */ 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35 --- 122 unchanged lines hidden (view full) --- 158 if (set != (isset(ic->ic_tim_bitmap, aid) != 0)) { 159 if (set) { 160 setbit(ic->ic_tim_bitmap, aid); 161 ic->ic_ps_pending++; 162 } else { 163 clrbit(ic->ic_tim_bitmap, aid); 164 ic->ic_ps_pending--; 165 } | 28 29/* 30 * IEEE 802.11 power save support. 31 */ 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35 --- 122 unchanged lines hidden (view full) --- 158 if (set != (isset(ic->ic_tim_bitmap, aid) != 0)) { 159 if (set) { 160 setbit(ic->ic_tim_bitmap, aid); 161 ic->ic_ps_pending++; 162 } else { 163 clrbit(ic->ic_tim_bitmap, aid); 164 ic->ic_ps_pending--; 165 } |
166 ic->ic_flags |= IEEE80211_F_TIMUPDATE; | 166 /* NB: we know ic is in RUN state so no need to check */ 167 ic->ic_update_beacon(ic, IEEE80211_BEACON_TIM); |
167 } 168 IEEE80211_BEACON_UNLOCK(ic); 169} 170 171/* 172 * Save an outbound packet for a node in power-save sleep state. 173 * The new packet is placed on the node's saved queue, and the TIM 174 * is changed, if necessary. --- 154 unchanged lines hidden --- | 168 } 169 IEEE80211_BEACON_UNLOCK(ic); 170} 171 172/* 173 * Save an outbound packet for a node in power-save sleep state. 174 * The new packet is placed on the node's saved queue, and the TIM 175 * is changed, if necessary. --- 154 unchanged lines hidden --- |