\hypertarget{if__iwm__power_8c_source}{}\doxysection{if\+\_\+iwm\+\_\+power.\+c}
\label{if__iwm__power_8c_source}\index{dev/iwm/if\_iwm\_power.c@{dev/iwm/if\_iwm\_power.c}}
\mbox{\hyperlink{if__iwm__power_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00001}00001 \textcolor{comment}{/*      \$OpenBSD: if\_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp \$ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00003}00003 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2014 genua mbh <info@genua.de>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00005}00005 \textcolor{comment}{ * Copyright (c) 2014 Fixup Software Ltd.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00007}00007 \textcolor{comment}{ * Permission to use, copy, modify, and distribute this software for any}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00008}00008 \textcolor{comment}{ * purpose with or without fee is hereby granted, provided that the above}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00009}00009 \textcolor{comment}{ * copyright notice and this permission notice appear in all copies.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00010}00010 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00011}00011 \textcolor{comment}{ * THE SOFTWARE IS PROVIDED "{}AS IS"{} AND THE AUTHOR DISCLAIMS ALL WARRANTIES}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00012}00012 \textcolor{comment}{ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00013}00013 \textcolor{comment}{ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00014}00014 \textcolor{comment}{ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00015}00015 \textcolor{comment}{ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00016}00016 \textcolor{comment}{ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00017}00017 \textcolor{comment}{ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00018}00018 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00019}00019 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00020}00020 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00021}00021 \textcolor{comment}{ * Based on BSD-\/licensed source modules in the Linux iwlwifi driver,}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00022}00022 \textcolor{comment}{ * which were used as the reference documentation for this implementation.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00023}00023 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00024}00024 \textcolor{comment}{ * Driver version we are currently based off of is}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00025}00025 \textcolor{comment}{ * Linux 3.14.3 (tag id a2df521e42b1d9a23f620ac79dbfe8655a8391dd)}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00027}00027 \textcolor{comment}{ ***********************************************************************}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00028}00028 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00029}00029 \textcolor{comment}{ * This file is provided under a dual BSD/GPLv2 license.  When using or}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00030}00030 \textcolor{comment}{ * redistributing this file, you may do so under either license.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00031}00031 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00032}00032 \textcolor{comment}{ * GPL LICENSE SUMMARY}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00033}00033 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00034}00034 \textcolor{comment}{ * Copyright(c) 2007 -\/ 2013 Intel Corporation. All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00035}00035 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00036}00036 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00037}00037 \textcolor{comment}{ * it under the terms of version 2 of the GNU General Public License as}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00038}00038 \textcolor{comment}{ * published by the Free Software Foundation.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00039}00039 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00040}00040 \textcolor{comment}{ * This program is distributed in the hope that it will be useful, but}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00041}00041 \textcolor{comment}{ * WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00042}00042 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00043}00043 \textcolor{comment}{ * General Public License for more details.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00044}00044 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00045}00045 \textcolor{comment}{ * You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00046}00046 \textcolor{comment}{ * along with this program; if not, write to the Free Software}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00047}00047 \textcolor{comment}{ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00048}00048 \textcolor{comment}{ * USA}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00049}00049 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00050}00050 \textcolor{comment}{ * The full GNU General Public License is included in this distribution}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00051}00051 \textcolor{comment}{ * in the file called COPYING.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00052}00052 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00053}00053 \textcolor{comment}{ * Contact Information:}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00054}00054 \textcolor{comment}{ *  Intel Linux Wireless <ilw@linux.intel.com>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00055}00055 \textcolor{comment}{ * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-\/6497}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00056}00056 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00057}00057 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00058}00058 \textcolor{comment}{ * BSD LICENSE}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00059}00059 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00060}00060 \textcolor{comment}{ * Copyright(c) 2005 -\/ 2013 Intel Corporation. All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00061}00061 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00062}00062 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00063}00063 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00064}00064 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00065}00065 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00066}00066 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00067}00067 \textcolor{comment}{ *  * Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00068}00068 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00069}00069 \textcolor{comment}{ *  * Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00070}00070 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00071}00071 \textcolor{comment}{ *    the documentation and/or other materials provided with the}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00072}00072 \textcolor{comment}{ *    distribution.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00073}00073 \textcolor{comment}{ *  * Neither the name Intel Corporation nor the names of its}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00074}00074 \textcolor{comment}{ *    contributors may be used to endorse or promote products derived}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00075}00075 \textcolor{comment}{ *    from this software without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00076}00076 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00077}00077 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00078}00078 \textcolor{comment}{ * "{}AS IS"{} AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00079}00079 \textcolor{comment}{ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00080}00080 \textcolor{comment}{ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00081}00081 \textcolor{comment}{ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00082}00082 \textcolor{comment}{ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00083}00083 \textcolor{comment}{ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00084}00084 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00085}00085 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00086}00086 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00087}00087 \textcolor{comment}{ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00088}00088 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00089}00089 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00090}\mbox{\hyperlink{if__iwm__power_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00090}} \mbox{\hyperlink{if__iwm__power_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00091}00091 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00092}00092 \textcolor{preprocessor}{\#include "{}opt\_wlan.h"{}}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00093}00093 \textcolor{preprocessor}{\#include "{}opt\_iwm.h"{}}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00094}00094 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00095}00095 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00096}00096 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00097}00097 \textcolor{preprocessor}{\#include <sys/conf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00098}00098 \textcolor{preprocessor}{\#include <sys/endian.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00099}00099 \textcolor{preprocessor}{\#include <sys/firmware.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00100}00100 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00101}00101 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00102}00102 \textcolor{preprocessor}{\#include <sys/mbuf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00103}00103 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00104}00104 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00105}00105 \textcolor{preprocessor}{\#include <sys/proc.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00106}00106 \textcolor{preprocessor}{\#include <sys/rman.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00107}00107 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00108}00108 \textcolor{preprocessor}{\#include <sys/sockio.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00109}00109 \textcolor{preprocessor}{\#include <sys/sysctl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00110}00110 \textcolor{preprocessor}{\#include <sys/linker.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00111}00111 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00112}00112 \textcolor{preprocessor}{\#include <machine/bus.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00113}00113 \textcolor{preprocessor}{\#include <machine/endian.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00114}00114 \textcolor{preprocessor}{\#include <machine/resource.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00116}00116 \textcolor{preprocessor}{\#include <dev/pci/pcivar.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00117}00117 \textcolor{preprocessor}{\#include <dev/pci/pcireg.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00118}00118 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00119}00119 \textcolor{preprocessor}{\#include <net/bpf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00120}00120 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00121}00121 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00122}00122 \textcolor{preprocessor}{\#include <net/if\_var.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00123}00123 \textcolor{preprocessor}{\#include <net/if\_arp.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00124}00124 \textcolor{preprocessor}{\#include <net/if\_dl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00125}00125 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00126}00126 \textcolor{preprocessor}{\#include <net/if\_types.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00127}00127 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00128}00128 \textcolor{preprocessor}{\#include <netinet/in.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00129}00129 \textcolor{preprocessor}{\#include <netinet/in\_systm.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00130}00130 \textcolor{preprocessor}{\#include <netinet/if\_ether.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00131}00131 \textcolor{preprocessor}{\#include <netinet/ip.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00132}00132 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00133}00133 \textcolor{preprocessor}{\#include <net80211/ieee80211\_var.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00134}00134 \textcolor{preprocessor}{\#include <net80211/ieee80211\_regdomain.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00135}00135 \textcolor{preprocessor}{\#include <net80211/ieee80211\_ratectl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00136}00136 \textcolor{preprocessor}{\#include <net80211/ieee80211\_radiotap.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00137}00137 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00138}00138 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwmreg_8h}{dev/iwm/if\_iwmreg.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00139}00139 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwmvar_8h}{dev/iwm/if\_iwmvar.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00140}00140 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__debug_8h}{dev/iwm/if\_iwm\_debug.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00141}00141 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__constants_8h}{dev/iwm/if\_iwm\_constants.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00142}00142 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__util_8h}{dev/iwm/if\_iwm\_util.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00143}00143 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__power_8h}{dev/iwm/if\_iwm\_power.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00144}00144 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00145}\mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{00145}} \textcolor{keyword}{static} \textcolor{keywordtype}{int} \mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}} = \mbox{\hyperlink{if__iwmreg_8h_af81251d07d10d9d0e436c3516bd8eeb1}{IWM\_POWER\_SCHEME\_BPS}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00146}00146 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00147}\mbox{\hyperlink{if__iwm__power_8c_af8146d69bb34ba2dd76d26a2a27102d5}{00147}} \mbox{\hyperlink{if__iwm__power_8c_af8146d69bb34ba2dd76d26a2a27102d5}{TUNABLE\_INT}}(\textcolor{stringliteral}{"{}hw.iwm.power\_scheme"{}}, \&\mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00148}00148 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00149}00149 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00150}00150 \textcolor{comment}{ * BEGIN mvm/power.c}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00151}00151 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00152}00152 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00153}\mbox{\hyperlink{if__iwm__power_8c_a3c80f41459dbadf0713420d49552e885}{00153}} \textcolor{preprocessor}{\#define IWM\_POWER\_KEEP\_ALIVE\_PERIOD\_SEC    25}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00154}00154 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00155}00155 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00156}\mbox{\hyperlink{if__iwm__power_8c_aea9b19a999f20a85e7fb95800f5f762b}{00156}} \mbox{\hyperlink{if__iwm__power_8c_aea9b19a999f20a85e7fb95800f5f762b}{iwm\_beacon\_filter\_send\_cmd}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00157}00157         \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00158}00158 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00159}00159         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00160}00160 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00161}00161         ret = \mbox{\hyperlink{if__iwm__util_8c_ad7c0f40dbc21d1ec94f0c5f6194d1140}{iwm\_send\_cmd\_pdu}}(sc, \mbox{\hyperlink{if__iwmreg_8h_a42d1e6b2c78d5f2626a7cec342355f06}{IWM\_REPLY\_BEACON\_FILTERING\_CMD}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00162}00162             0, \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}}), cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00163}00163 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00164}00164         \textcolor{keywordflow}{if} (!ret) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00165}00165                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00166}00166                     \textcolor{stringliteral}{"{}ba\_enable\_beacon\_abort is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00167}00167                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a84f2912962b93d6ded027822f19f2f6b}{ba\_enable\_beacon\_abort}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00168}00168                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00169}00169                     \textcolor{stringliteral}{"{}ba\_escape\_timer is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00170}00170                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a5338d2ba03d8686730f7d8ca62bdf4f1}{ba\_escape\_timer}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00171}00171                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00172}00172                     \textcolor{stringliteral}{"{}bf\_debug\_flag is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00173}00173                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a32530fa4558f5832344370df173d7d1f}{bf\_debug\_flag}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00174}00174                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00175}00175                     \textcolor{stringliteral}{"{}bf\_enable\_beacon\_filter is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00176}00176                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_ae30cd1316e4565cde6783cf1b892f028}{bf\_enable\_beacon\_filter}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00177}00177                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00178}00178                     \textcolor{stringliteral}{"{}bf\_energy\_delta is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00179}00179                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a6849a9acac04b5ae8e41140dd34139e5}{bf\_energy\_delta}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00180}00180                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00181}00181                     \textcolor{stringliteral}{"{}bf\_escape\_timer is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00182}00182                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_afecf5d42b8934f12945cd32a45416c91}{bf\_escape\_timer}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00183}00183                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00184}00184                     \textcolor{stringliteral}{"{}bf\_roaming\_energy\_delta is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00185}00185                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a5f9c406f5af1417ebca85c419816d697}{bf\_roaming\_energy\_delta}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00186}00186                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00187}00187                     \textcolor{stringliteral}{"{}bf\_roaming\_state is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00188}00188                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_ac1a09af6d05e48a9c8886b54b3fb5daf}{bf\_roaming\_state}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00189}00189                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00190}00190                     \textcolor{stringliteral}{"{}bf\_temp\_threshold is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00191}00191                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a85b7e2d8a090ef1369de57994ddf6f89}{bf\_temp\_threshold}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00192}00192                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00193}00193                     \textcolor{stringliteral}{"{}bf\_temp\_fast\_filter is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00194}00194                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_ab640a32eabdf838688ac060a11dab87a}{bf\_temp\_fast\_filter}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00195}00195                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00196}00196                     \textcolor{stringliteral}{"{}bf\_temp\_slow\_filter is: \%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00197}00197                     le32toh(cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a1503c83d6cdc72f6a81e2856d93fc3d4}{bf\_temp\_slow\_filter}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00198}00198         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00199}00199         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00200}00200 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00201}00201 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00202}00202 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00203}\mbox{\hyperlink{if__iwm__power_8c_a1fd8474e5246040bc04e886c84b542d4}{00203}} \mbox{\hyperlink{if__iwm__power_8c_a1fd8474e5246040bc04e886c84b542d4}{iwm\_beacon\_filter\_set\_cqm\_params}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00204}00204         \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00205}00205 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00206}00206         cmd-\/>\mbox{\hyperlink{structiwm__beacon__filter__cmd_a84f2912962b93d6ded027822f19f2f6b}{ba\_enable\_beacon\_abort}} = htole32(sc-\/>\mbox{\hyperlink{structiwm__softc_a7a66bddd7d4af6f0cf69254d8807fa86}{sc\_bf}}.\mbox{\hyperlink{structiwm__bf__data_a357101e283044a5999fd763f8e50a226}{ba\_enabled}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00207}00207 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00208}00208 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00209}00209 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00210}\mbox{\hyperlink{if__iwm__power_8c_af7c65b279614c832c1ad9060e39279f3}{00210}} \mbox{\hyperlink{if__iwm__power_8c_af7c65b279614c832c1ad9060e39279f3}{iwm\_power\_log}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__mac__power__cmd}{iwm\_mac\_power\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00211}00211 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00212}00212         \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00213}00213             \textcolor{stringliteral}{"{}Sending power table command on mac id 0x\%X for "{}}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00214}00214             \textcolor{stringliteral}{"{}power level \%d, flags = 0x\%X\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00215}00215             cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_ac89bbb514b0cdbe2eafa12c1faf79cbd}{id\_and\_color}}, \mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}}, le16toh(cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00216}00216         \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00217}00217             \textcolor{stringliteral}{"{}Keep alive = \%u sec\(\backslash\)n"{}}, le16toh(cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_aac06aaa6f3252d07011096eb72628f13}{keep\_alive\_seconds}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00218}00218 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00219}00219         \textcolor{keywordflow}{if} (!(cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} \& htole16(\mbox{\hyperlink{if__iwmreg_8h_adb1e6c8275b438567b60611f6a3dc972}{IWM\_POWER\_FLAGS\_POWER\_MANAGEMENT\_ENA\_MSK}}))) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00220}00220                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00221}00221                     \textcolor{stringliteral}{"{}Disable power management\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00222}00222                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00223}00223         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00224}00224 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00225}00225         \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00226}00226             \textcolor{stringliteral}{"{}Rx timeout = \%u usec\(\backslash\)n"{}}, le32toh(cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a2cbf3733b9501469b76f303a7a3d863b}{rx\_data\_timeout}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00227}00227         \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00228}00228             \textcolor{stringliteral}{"{}Tx timeout = \%u usec\(\backslash\)n"{}}, le32toh(cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a548ed81cee4e3ed38be7fcbd7f7c0cf5}{tx\_data\_timeout}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00229}00229         \textcolor{keywordflow}{if} (cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} \& htole16(\mbox{\hyperlink{if__iwmreg_8h_a0f4cd9a4febb70f6fd580413324a34fa}{IWM\_POWER\_FLAGS\_SKIP\_OVER\_DTIM\_MSK}}))}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00230}00230                 \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00231}00231                     \textcolor{stringliteral}{"{}DTIM periods to skip = \%u\(\backslash\)n"{}}, cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a9604c0047507d1659f200079008b9cc9}{skip\_dtim\_periods}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00232}00232 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00233}00233 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00234}00234 \textcolor{keyword}{static} boolean\_t}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00235}\mbox{\hyperlink{if__iwm__power_8c_a6a6c3f9cdafc991941bb27e5fe7907e9}{00235}} \mbox{\hyperlink{if__iwm__power_8c_a6a6c3f9cdafc991941bb27e5fe7907e9}{iwm\_power\_is\_radar}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00236}00236 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00237}00237         \textcolor{keyword}{struct }ieee80211com *ic = \&sc-\/>\mbox{\hyperlink{structiwm__softc_ada8054beb1d93be79364f98ff3bfbaf2}{sc\_ic}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00238}00238         \textcolor{keyword}{struct }ieee80211\_channel *chan;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00239}00239         boolean\_t radar\_detect = FALSE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00240}00240 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00241}00241         chan = ic-\/>ic\_bsschan;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00242}00242         \textcolor{keywordflow}{if} (chan == IEEE80211\_CHAN\_ANYC ||}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00243}00243             (chan-\/>ic\_flags \& IEEE80211\_CHAN\_DFS) != 0) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00244}00244                 radar\_detect = TRUE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00245}00245         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00246}00246 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00247}00247         \textcolor{keywordflow}{return} radar\_detect;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00248}00248 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00249}00249 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00250}00250 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00251}\mbox{\hyperlink{if__iwm__power_8c_a8a222837e170bfec5333c898daacef9d}{00251}} \mbox{\hyperlink{if__iwm__power_8c_a8a222837e170bfec5333c898daacef9d}{iwm\_power\_config\_skip\_dtim}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00252}00252         \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__mac__power__cmd}{iwm\_mac\_power\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00253}00253 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00254}00254         \textcolor{keyword}{struct }ieee80211com *ic = \&sc-\/>\mbox{\hyperlink{structiwm__softc_ada8054beb1d93be79364f98ff3bfbaf2}{sc\_ic}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00255}00255         \textcolor{keyword}{struct }ieee80211vap *vap = TAILQ\_FIRST(\&ic-\/>ic\_vaps);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00256}00256         \textcolor{keywordtype}{int} dtimper = vap-\/>iv\_dtim\_period ?: 1;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00257}00257         \textcolor{keywordtype}{int} skip;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00258}00258 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00259}00259         \textcolor{comment}{/* disable, in case we're supposed to override */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00260}00260         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a9604c0047507d1659f200079008b9cc9}{skip\_dtim\_periods}} = 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00261}00261         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} \&= \string~htole16(\mbox{\hyperlink{if__iwmreg_8h_a0f4cd9a4febb70f6fd580413324a34fa}{IWM\_POWER\_FLAGS\_SKIP\_OVER\_DTIM\_MSK}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00262}00262 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00263}00263         \textcolor{keywordflow}{if} (\mbox{\hyperlink{if__iwm__power_8c_a6a6c3f9cdafc991941bb27e5fe7907e9}{iwm\_power\_is\_radar}}(sc))}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00264}00264                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00265}00265 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00266}00266         \textcolor{keywordflow}{if} (dtimper >= 10)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00267}00267                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00268}00268 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00269}00269         \textcolor{comment}{/* TODO: check that multicast wake lock is off */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00270}00270 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00271}00271         \textcolor{keywordflow}{if} (\mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}} != \mbox{\hyperlink{if__iwmreg_8h_a5b8dbc8a2264abcbae6dde4b429e0c74}{IWM\_POWER\_SCHEME\_LP}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00272}00272                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00273}00273         skip = 2;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00274}00274 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00275}00275         \textcolor{comment}{/* the firmware really expects "{}look at every X DTIMs"{}, so add 1 */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00276}00276         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a9604c0047507d1659f200079008b9cc9}{skip\_dtim\_periods}} = 1 + skip;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00277}00277         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} |= htole16(\mbox{\hyperlink{if__iwmreg_8h_a0f4cd9a4febb70f6fd580413324a34fa}{IWM\_POWER\_FLAGS\_SKIP\_OVER\_DTIM\_MSK}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00278}00278 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00279}00279 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00280}00280 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00281}\mbox{\hyperlink{if__iwm__power_8c_a5668c4e652986546f69009b03c402041}{00281}} \mbox{\hyperlink{if__iwm__power_8c_a5668c4e652986546f69009b03c402041}{iwm\_power\_build\_cmd}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00282}00282         \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__mac__power__cmd}{iwm\_mac\_power\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00283}00283 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00284}00284         \textcolor{keyword}{struct }ieee80211vap *vap = \&ivp-\/>\mbox{\hyperlink{structiwm__vap_a54967096ab20b2b8e2761265715b9ea3}{iv\_vap}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00285}00285         \textcolor{keyword}{struct }ieee80211\_node *ni = vap-\/>iv\_bss;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00286}00286         \textcolor{keywordtype}{int} dtimper, dtimper\_msec;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00287}00287         \textcolor{keywordtype}{int} keep\_alive;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00288}00288         boolean\_t bss\_conf\_ps = FALSE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00289}00289 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00290}00290         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_ac89bbb514b0cdbe2eafa12c1faf79cbd}{id\_and\_color}} = htole32(\mbox{\hyperlink{if__iwmreg_8h_a3d79b39233e901d2c82b8be01ddb73ed}{IWM\_FW\_CMD\_ID\_AND\_COLOR}}(ivp-\/>\mbox{\hyperlink{structiwm__vap_a2234262ae3d82aa07e42e2ded7dd4b3d}{id}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00291}00291             ivp-\/>\mbox{\hyperlink{structiwm__vap_a8fd08005daaeb6d3380e971641af3f21}{color}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00292}00292         dtimper = vap-\/>iv\_dtim\_period ?: 1;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00293}00293 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00294}00294         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00295}00295 \textcolor{comment}{         * Regardless of power management state the driver must set}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00296}00296 \textcolor{comment}{         * keep alive period. FW will use it for sending keep alive NDPs}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00297}00297 \textcolor{comment}{         * immediately after association. Check that keep alive period}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00298}00298 \textcolor{comment}{         * is at least 3 * DTIM}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00299}00299 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00300}00300         dtimper\_msec = dtimper * ni-\/>ni\_intval;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00301}00301         keep\_alive}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00302}00302             = imax(3 * dtimper\_msec, 1000 * \mbox{\hyperlink{if__iwm__power_8c_a3c80f41459dbadf0713420d49552e885}{IWM\_POWER\_KEEP\_ALIVE\_PERIOD\_SEC}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00303}00303         keep\_alive = roundup(keep\_alive, 1000) / 1000;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00304}00304         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_aac06aaa6f3252d07011096eb72628f13}{keep\_alive\_seconds}} = htole16(keep\_alive);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00305}00305 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00306}00306         \textcolor{keywordflow}{if} (sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00307}00307                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00308}00308 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00309}00309         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} |= htole16(\mbox{\hyperlink{if__iwmreg_8h_a83e5ef1c45d864a578308b9bcb70f97c}{IWM\_POWER\_FLAGS\_POWER\_SAVE\_ENA\_MSK}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00310}00310 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00311}00311         \textcolor{keywordflow}{if} (\mbox{\hyperlink{if__iwmvar_8h_a371387d15226f5218ae8d2d2657934a5}{IWM\_NODE}}(ni)-\/>in\_assoc \&\&}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00312}00312             (vap-\/>iv\_flags \& IEEE80211\_F\_PMGTON) != 0) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00313}00313                 bss\_conf\_ps = TRUE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00314}00314         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00315}00315         \textcolor{keywordflow}{if} (!bss\_conf\_ps)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00316}00316                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00317}00317 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00318}00318         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a7dbe46c511710050b2d172dff73d3e3f}{flags}} |= htole16(\mbox{\hyperlink{if__iwmreg_8h_adb1e6c8275b438567b60611f6a3dc972}{IWM\_POWER\_FLAGS\_POWER\_MANAGEMENT\_ENA\_MSK}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00319}00319 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00320}00320         \mbox{\hyperlink{if__iwm__power_8c_a8a222837e170bfec5333c898daacef9d}{iwm\_power\_config\_skip\_dtim}}(sc, cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00321}00321 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00322}00322         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a2cbf3733b9501469b76f303a7a3d863b}{rx\_data\_timeout}} =}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00323}00323                 htole32(\mbox{\hyperlink{if__iwm__constants_8h_a5a7554ae7c6181969f8d473e30417f3a}{IWM\_DEFAULT\_PS\_RX\_DATA\_TIMEOUT}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00324}00324         cmd-\/>\mbox{\hyperlink{structiwm__mac__power__cmd_a548ed81cee4e3ed38be7fcbd7f7c0cf5}{tx\_data\_timeout}} =}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00325}00325                 htole32(\mbox{\hyperlink{if__iwm__constants_8h_ae76db088dfd3d675860bb4386d411996}{IWM\_DEFAULT\_PS\_TX\_DATA\_TIMEOUT}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00326}00326 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00327}00327 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00328}00328 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00329}\mbox{\hyperlink{if__iwm__power_8c_a2939036a917446f8c1dbc989ae056754}{00329}} \mbox{\hyperlink{if__iwm__power_8c_a2939036a917446f8c1dbc989ae056754}{iwm\_power\_send\_cmd}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00330}00330 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00331}00331         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__mac__power__cmd}{iwm\_mac\_power\_cmd}} cmd = \{\};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00332}00332 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00333}00333         \mbox{\hyperlink{if__iwm__power_8c_a5668c4e652986546f69009b03c402041}{iwm\_power\_build\_cmd}}(sc, ivp, \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00334}00334         \mbox{\hyperlink{if__iwm__power_8c_af7c65b279614c832c1ad9060e39279f3}{iwm\_power\_log}}(sc, \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00335}00335 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00336}00336         \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__util_8c_ad7c0f40dbc21d1ec94f0c5f6194d1140}{iwm\_send\_cmd\_pdu}}(sc, \mbox{\hyperlink{if__iwmreg_8h_a1b8a181b9b0e90f4dd50b11267fd10e0}{IWM\_MAC\_PM\_POWER\_TABLE}}, 0,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00337}00337             \textcolor{keyword}{sizeof}(cmd), \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00338}00338 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00339}00339 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00340}00340 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00341}\mbox{\hyperlink{if__iwm__power_8c_a78c1375defe382a9d626d372072a6f95}{00341}} \mbox{\hyperlink{if__iwm__power_8c_a78c1375defe382a9d626d372072a6f95}{\_iwm\_enable\_beacon\_filter}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00342}00342         \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} *cmd)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00343}00343 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00344}00344         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00345}00345 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00346}00346         \mbox{\hyperlink{if__iwm__power_8c_a1fd8474e5246040bc04e886c84b542d4}{iwm\_beacon\_filter\_set\_cqm\_params}}(sc, ivp, cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00347}00347         ret = \mbox{\hyperlink{if__iwm__power_8c_aea9b19a999f20a85e7fb95800f5f762b}{iwm\_beacon\_filter\_send\_cmd}}(sc, cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00348}00348 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00349}00349         \textcolor{keywordflow}{if} (!ret)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00350}00350                 sc-\/>\mbox{\hyperlink{structiwm__softc_a7a66bddd7d4af6f0cf69254d8807fa86}{sc\_bf}}.\mbox{\hyperlink{structiwm__bf__data_a35822400dd6792325d42fbdeef45ffd3}{bf\_enabled}} = 1;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00351}00351 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00352}00352         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00353}00353 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00354}00354 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00355}00355 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00356}\mbox{\hyperlink{if__iwm__power_8c_a7f2bcc68997fdbd465331c3532d8d893}{00356}} \mbox{\hyperlink{if__iwm__power_8c_a7f2bcc68997fdbd465331c3532d8d893}{iwm\_enable\_beacon\_filter}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00357}00357 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00358}00358         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} cmd = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00359}00359                 \mbox{\hyperlink{if__iwmreg_8h_a42e08d774abc6d6dea38a1e126000c35}{IWM\_BF\_CMD\_CONFIG\_DEFAULTS}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00360}00360                 .bf\_enable\_beacon\_filter = htole32(1),}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00361}00361         \};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00362}00362 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00363}00363         \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__power_8c_a78c1375defe382a9d626d372072a6f95}{\_iwm\_enable\_beacon\_filter}}(sc, ivp, \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00364}00364 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00365}00365 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00366}00366 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00367}\mbox{\hyperlink{if__iwm__power_8c_a0c33d4bf1cf7667e9ab8f06d25c175d0}{00367}} \mbox{\hyperlink{if__iwm__power_8c_a0c33d4bf1cf7667e9ab8f06d25c175d0}{iwm\_disable\_beacon\_filter}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00368}00368 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00369}00369         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} cmd = \{\};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00370}00370         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00371}00371 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00372}00372         ret = \mbox{\hyperlink{if__iwm__power_8c_aea9b19a999f20a85e7fb95800f5f762b}{iwm\_beacon\_filter\_send\_cmd}}(sc, \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00373}00373         \textcolor{keywordflow}{if} (ret == 0)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00374}00374                 sc-\/>\mbox{\hyperlink{structiwm__softc_a7a66bddd7d4af6f0cf69254d8807fa86}{sc\_bf}}.\mbox{\hyperlink{structiwm__bf__data_a35822400dd6792325d42fbdeef45ffd3}{bf\_enabled}} = 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00375}00375 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00376}00376         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00377}00377 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00378}00378 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00379}00379 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00380}\mbox{\hyperlink{if__iwm__power_8c_af40da21fbcd367181fe6a5ad8c55c8dd}{00380}} \mbox{\hyperlink{if__iwm__power_8c_af40da21fbcd367181fe6a5ad8c55c8dd}{iwm\_power\_set\_ps}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00381}00381 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00382}00382         \textcolor{keyword}{struct }ieee80211vap *vap;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00383}00383         boolean\_t disable\_ps;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00384}00384         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00385}00385 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00386}00386         \textcolor{comment}{/* disable PS if CAM */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00387}00387         disable\_ps = (\mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}} == \mbox{\hyperlink{if__iwmreg_8h_ad5005b998a1cc91dc97dbab595289c5f}{IWM\_POWER\_SCHEME\_CAM}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00388}00388         \textcolor{comment}{/* ...or if any of the vifs require PS to be off */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00389}00389         TAILQ\_FOREACH(vap, \&sc-\/>\mbox{\hyperlink{structiwm__softc_ada8054beb1d93be79364f98ff3bfbaf2}{sc\_ic}}.ic\_vaps, iv\_next) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00390}00390                 \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp = \mbox{\hyperlink{if__iwmvar_8h_a411a4f289df166d363076401a075b455}{IWM\_VAP}}(vap);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00391}00391                 \textcolor{keywordflow}{if} (ivp-\/>\mbox{\hyperlink{structiwm__vap_a448a47a542ee0070949b36d0b86c83ad}{phy\_ctxt}} != NULL \&\& ivp-\/>\mbox{\hyperlink{structiwm__vap_abb2b681c49dadd24f29fa56164fb79f0}{ps\_disabled}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00392}00392                         disable\_ps = TRUE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00393}00393         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00394}00394 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00395}00395         \textcolor{comment}{/* update device power state if it has changed */}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00396}00396         \textcolor{keywordflow}{if} (sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}} != disable\_ps) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00397}00397                 boolean\_t old\_ps\_disabled = sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00398}00398 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00399}00399                 sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}} = disable\_ps;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00400}00400                 ret = \mbox{\hyperlink{if__iwm__power_8c_af849dc4686a3c62ac12d16eab46749fd}{iwm\_power\_update\_device}}(sc);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00401}00401                 \textcolor{keywordflow}{if} (ret) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00402}00402                         sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}} = old\_ps\_disabled;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00403}00403                         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00404}00404                 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00405}00405         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00406}00406 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00407}00407         \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00408}00408 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00409}00409 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00410}00410 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00411}\mbox{\hyperlink{if__iwm__power_8c_a36fc804d6965c22b5a81bab0b956a91b}{00411}} \mbox{\hyperlink{if__iwm__power_8c_a36fc804d6965c22b5a81bab0b956a91b}{iwm\_power\_set\_ba}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__vap}{iwm\_vap}} *ivp)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00412}00412 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00413}00413         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__beacon__filter__cmd}{iwm\_beacon\_filter\_cmd}} cmd = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00414}00414                 \mbox{\hyperlink{if__iwmreg_8h_a42e08d774abc6d6dea38a1e126000c35}{IWM\_BF\_CMD\_CONFIG\_DEFAULTS}},}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00415}00415                 .bf\_enable\_beacon\_filter = htole32(1),}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00416}00416         \};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00417}00417         \textcolor{keyword}{struct }ieee80211vap *vap = \&ivp-\/>\mbox{\hyperlink{structiwm__vap_a54967096ab20b2b8e2761265715b9ea3}{iv\_vap}};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00418}00418         \textcolor{keyword}{struct }ieee80211\_node *ni = vap-\/>iv\_bss;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00419}00419         boolean\_t bss\_conf\_ps = FALSE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00420}00420 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00421}00421         \textcolor{keywordflow}{if} (!sc-\/>\mbox{\hyperlink{structiwm__softc_a7a66bddd7d4af6f0cf69254d8807fa86}{sc\_bf}}.\mbox{\hyperlink{structiwm__bf__data_a35822400dd6792325d42fbdeef45ffd3}{bf\_enabled}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00422}00422                 \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00423}00423 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00424}00424         \textcolor{keywordflow}{if} (ni != NULL \&\& \mbox{\hyperlink{if__iwmvar_8h_a371387d15226f5218ae8d2d2657934a5}{IWM\_NODE}}(ni)-\/>in\_assoc \&\&}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00425}00425             (vap-\/>iv\_flags \& IEEE80211\_F\_PMGTON) != 0) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00426}00426                 bss\_conf\_ps = TRUE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00427}00427         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00428}00428         sc-\/>\mbox{\hyperlink{structiwm__softc_a7a66bddd7d4af6f0cf69254d8807fa86}{sc\_bf}}.\mbox{\hyperlink{structiwm__bf__data_a357101e283044a5999fd763f8e50a226}{ba\_enabled}} = !sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}} \&\& bss\_conf\_ps;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00429}00429 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00430}00430         \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__power_8c_a78c1375defe382a9d626d372072a6f95}{\_iwm\_enable\_beacon\_filter}}(sc, ivp, \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00431}00431 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00432}00432 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00433}00433 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00434}\mbox{\hyperlink{if__iwm__power_8c_a45c1f1ff9c0cdae9d3e031103116b5ad}{00434}} \mbox{\hyperlink{if__iwm__power_8c_a45c1f1ff9c0cdae9d3e031103116b5ad}{iwm\_power\_update\_ps}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00435}00435 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00436}00436         \textcolor{keyword}{struct }ieee80211vap *vap = TAILQ\_FIRST(\&sc-\/>\mbox{\hyperlink{structiwm__softc_ada8054beb1d93be79364f98ff3bfbaf2}{sc\_ic}}.ic\_vaps);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00437}00437         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00438}00438 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00439}00439         ret = \mbox{\hyperlink{if__iwm__power_8c_af40da21fbcd367181fe6a5ad8c55c8dd}{iwm\_power\_set\_ps}}(sc);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00440}00440         \textcolor{keywordflow}{if} (ret)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00441}00441                 \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00442}00442 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00443}00443         \textcolor{keywordflow}{if} (vap != NULL)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00444}00444                 \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__power_8c_a36fc804d6965c22b5a81bab0b956a91b}{iwm\_power\_set\_ba}}(sc, \mbox{\hyperlink{if__iwmvar_8h_a411a4f289df166d363076401a075b455}{IWM\_VAP}}(vap));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00445}00445 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00446}00446         \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00447}00447 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00448}00448 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00449}00449 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00450}\mbox{\hyperlink{if__iwm__power_8c_a2ec4cf2528c4b24a2433572eaf9c0eb6}{00450}} \mbox{\hyperlink{if__iwm__power_8c_a2ec4cf2528c4b24a2433572eaf9c0eb6}{iwm\_power\_update\_mac}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00451}00451 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00452}00452         \textcolor{keyword}{struct }ieee80211vap *vap = TAILQ\_FIRST(\&sc-\/>\mbox{\hyperlink{structiwm__softc_ada8054beb1d93be79364f98ff3bfbaf2}{sc\_ic}}.ic\_vaps);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00453}00453         \textcolor{keywordtype}{int} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00454}00454 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00455}00455         ret = \mbox{\hyperlink{if__iwm__power_8c_af40da21fbcd367181fe6a5ad8c55c8dd}{iwm\_power\_set\_ps}}(sc);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00456}00456         \textcolor{keywordflow}{if} (ret)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00457}00457                 \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00458}00458 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00459}00459         \textcolor{keywordflow}{if} (vap != NULL) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00460}00460                 ret = \mbox{\hyperlink{if__iwm__power_8c_a2939036a917446f8c1dbc989ae056754}{iwm\_power\_send\_cmd}}(sc, \mbox{\hyperlink{if__iwmvar_8h_a411a4f289df166d363076401a075b455}{IWM\_VAP}}(vap));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00461}00461                 \textcolor{keywordflow}{if} (ret)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00462}00462                         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00463}00463         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00464}00464 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00465}00465         \textcolor{keywordflow}{if} (vap != NULL)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00466}00466                 \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__power_8c_a36fc804d6965c22b5a81bab0b956a91b}{iwm\_power\_set\_ba}}(sc, \mbox{\hyperlink{if__iwmvar_8h_a411a4f289df166d363076401a075b455}{IWM\_VAP}}(vap));}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00467}00467 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00468}00468         \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00469}00469 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00470}00470 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00471}00471 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00472}\mbox{\hyperlink{if__iwm__power_8c_af849dc4686a3c62ac12d16eab46749fd}{00472}} \mbox{\hyperlink{if__iwm__power_8c_af849dc4686a3c62ac12d16eab46749fd}{iwm\_power\_update\_device}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc)}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00473}00473 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00474}00474         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__device__power__cmd}{iwm\_device\_power\_cmd}} cmd = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00475}00475                 .\mbox{\hyperlink{structiwm__device__power__cmd_acc552dd6b62c8dfa5a996ee31a8a2ce4}{flags}} = 0,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00476}00476         \};}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00477}00477 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00478}00478         \textcolor{keywordflow}{if} (\mbox{\hyperlink{if__iwm__power_8c_ac67d306f96ce771f92d1c9ec71057ca9}{iwm\_power\_scheme}} == \mbox{\hyperlink{if__iwmreg_8h_ad5005b998a1cc91dc97dbab595289c5f}{IWM\_POWER\_SCHEME\_CAM}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00479}00479                 sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}} = TRUE;}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00480}00480 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00481}00481         \textcolor{keywordflow}{if} (!sc-\/>\mbox{\hyperlink{structiwm__softc_ad690c0315f6c7b1a0f7611a95231290c}{sc\_ps\_disabled}})}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00482}00482                 cmd.\mbox{\hyperlink{structiwm__device__power__cmd_acc552dd6b62c8dfa5a996ee31a8a2ce4}{flags}} |= htole16(\mbox{\hyperlink{if__iwmreg_8h_ae16ef5eb25e7af9393dd851092aa3006}{IWM\_DEVICE\_POWER\_FLAGS\_POWER\_SAVE\_ENA\_MSK}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00483}00483 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00484}00484         \mbox{\hyperlink{if__iwm__debug_8h_a29c1a2fa126fde054bacb28c9a400b15}{IWM\_DPRINTF}}(sc, IWM\_DEBUG\_PWRSAVE | IWM\_DEBUG\_CMD,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00485}00485             \textcolor{stringliteral}{"{}Sending device power command with flags = 0x\%X\(\backslash\)n"{}}, cmd.\mbox{\hyperlink{structiwm__device__power__cmd_acc552dd6b62c8dfa5a996ee31a8a2ce4}{flags}});}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00486}00486 }
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00487}00487         \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__util_8c_ad7c0f40dbc21d1ec94f0c5f6194d1140}{iwm\_send\_cmd\_pdu}}(sc,}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00488}00488             \mbox{\hyperlink{if__iwmreg_8h_aab7e0daefc131316db25bd08ae085c01}{IWM\_POWER\_TABLE\_CMD}}, 0, \textcolor{keyword}{sizeof}(cmd), \&cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__power_8c_source_l00489}00489 \}}

\end{DoxyCode}
