\hypertarget{if__iwm__sf_8c_source}{}\doxysection{if\+\_\+iwm\+\_\+sf.\+c}
\label{if__iwm__sf_8c_source}\index{dev/iwm/if\_iwm\_sf.c@{dev/iwm/if\_iwm\_sf.c}}
\mbox{\hyperlink{if__iwm__sf_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00001}00001 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 2014 genua mbh <info@genua.de>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00003}00003 \textcolor{comment}{ * Copyright (c) 2014 Fixup Software Ltd.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00004}00004 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00005}00005 \textcolor{comment}{ * Permission to use, copy, modify, and distribute this software for any}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00006}00006 \textcolor{comment}{ * purpose with or without fee is hereby granted, provided that the above}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00007}00007 \textcolor{comment}{ * copyright notice and this permission notice appear in all copies.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00008}00008 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00009}00009 \textcolor{comment}{ * THE SOFTWARE IS PROVIDED "{}AS IS"{} AND THE AUTHOR DISCLAIMS ALL WARRANTIES}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00010}00010 \textcolor{comment}{ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00011}00011 \textcolor{comment}{ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00012}00012 \textcolor{comment}{ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00013}00013 \textcolor{comment}{ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00014}00014 \textcolor{comment}{ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00015}00015 \textcolor{comment}{ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00016}00016 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00017}00017 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00018}00018 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00019}00019 \textcolor{comment}{ * Based on BSD-\/licensed source modules in the Linux iwlwifi driver,}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00020}00020 \textcolor{comment}{ * which were used as the reference documentation for this implementation.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00021}00021 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00022}00022 \textcolor{comment}{ * Driver version we are currently based off of is}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00023}00023 \textcolor{comment}{ * Linux 4.7.3 (tag id d7f6728f57e3ecbb7ef34eb7d9f564d514775d75)}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00024}00024 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00025}00025 \textcolor{comment}{ ******************************************************************************}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00027}00027 \textcolor{comment}{ * This file is provided under a dual BSD/GPLv2 license.  When using or}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00028}00028 \textcolor{comment}{ * redistributing this file, you may do so under either license.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00029}00029 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00030}00030 \textcolor{comment}{ * GPL LICENSE SUMMARY}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00031}00031 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00032}00032 \textcolor{comment}{ * Copyright(c) 2013 -\/ 2014 Intel Corporation. All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00033}00033 \textcolor{comment}{ * Copyright(c) 2013 -\/ 2014 Intel Mobile Communications GmbH}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00034}00034 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00035}00035 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00036}00036 \textcolor{comment}{ * it under the terms of version 2 of the GNU General Public License as}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00037}00037 \textcolor{comment}{ * published by the Free Software Foundation.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00038}00038 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00039}00039 \textcolor{comment}{ * This program is distributed in the hope that it will be useful, but}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00040}00040 \textcolor{comment}{ * WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00041}00041 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00042}00042 \textcolor{comment}{ * General Public License for more details.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00043}00043 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00044}00044 \textcolor{comment}{ * You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00045}00045 \textcolor{comment}{ * along with this program; if not, write to the Free Software}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00046}00046 \textcolor{comment}{ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00047}00047 \textcolor{comment}{ * USA}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00048}00048 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00049}00049 \textcolor{comment}{ * The full GNU General Public License is included in this distribution}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00050}00050 \textcolor{comment}{ * in the file called COPYING.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00051}00051 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00052}00052 \textcolor{comment}{ * Contact Information:}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00053}00053 \textcolor{comment}{ *  Intel Linux Wireless <linuxwifi@intel.com>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00054}00054 \textcolor{comment}{ * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-\/6497}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00055}00055 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00056}00056 \textcolor{comment}{ * BSD LICENSE}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00057}00057 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00058}00058 \textcolor{comment}{ * Copyright(c) 2013 -\/ 2014 Intel Corporation. All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00059}00059 \textcolor{comment}{ * Copyright(c) 2013 -\/ 2014 Intel Mobile Communications GmbH}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00060}00060 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00061}00061 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00062}00062 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00063}00063 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00064}00064 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00065}00065 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00066}00066 \textcolor{comment}{ *  * Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00067}00067 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00068}00068 \textcolor{comment}{ *  * Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00069}00069 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00070}00070 \textcolor{comment}{ *    the documentation and/or other materials provided with the}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00071}00071 \textcolor{comment}{ *    distribution.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00072}00072 \textcolor{comment}{ *  * Neither the name Intel Corporation nor the names of its}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00073}00073 \textcolor{comment}{ *    contributors may be used to endorse or promote products derived}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00074}00074 \textcolor{comment}{ *    from this software without specific prior written permission.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00075}00075 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00076}00076 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00077}00077 \textcolor{comment}{ * "{}AS IS"{} AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00078}00078 \textcolor{comment}{ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00079}00079 \textcolor{comment}{ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00080}00080 \textcolor{comment}{ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00081}00081 \textcolor{comment}{ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00082}00082 \textcolor{comment}{ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00083}00083 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00084}00084 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00085}00085 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00086}00086 \textcolor{comment}{ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00087}00087 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00088}00088 \textcolor{comment}{ *****************************************************************************/}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00089}00089 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00090}00090 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00091}\mbox{\hyperlink{if__iwm__sf_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00091}} \mbox{\hyperlink{if__iwm__sf_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00092}00092 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00093}00093 \textcolor{preprocessor}{\#include "{}opt\_wlan.h"{}}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00094}00094 \textcolor{preprocessor}{\#include "{}opt\_iwm.h"{}}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00095}00095 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00096}00096 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00097}00097 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00098}00098 \textcolor{preprocessor}{\#include <sys/conf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00099}00099 \textcolor{preprocessor}{\#include <sys/endian.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00100}00100 \textcolor{preprocessor}{\#include <sys/firmware.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00101}00101 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00102}00102 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00103}00103 \textcolor{preprocessor}{\#include <sys/mbuf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00104}00104 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00105}00105 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00106}00106 \textcolor{preprocessor}{\#include <sys/proc.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00107}00107 \textcolor{preprocessor}{\#include <sys/rman.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00108}00108 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00109}00109 \textcolor{preprocessor}{\#include <sys/sockio.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00110}00110 \textcolor{preprocessor}{\#include <sys/sysctl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00111}00111 \textcolor{preprocessor}{\#include <sys/linker.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00113}00113 \textcolor{preprocessor}{\#include <machine/bus.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00114}00114 \textcolor{preprocessor}{\#include <machine/endian.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00115}00115 \textcolor{preprocessor}{\#include <machine/resource.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00116}00116 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00117}00117 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00118}00118 \textcolor{preprocessor}{\#include <net/if\_var.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00119}00119 \textcolor{preprocessor}{\#include <net/if\_arp.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00120}00120 \textcolor{preprocessor}{\#include <net/if\_dl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00121}00121 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00122}00122 \textcolor{preprocessor}{\#include <net/if\_types.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00123}00123 \textcolor{preprocessor}{\#include <net/bpf.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00124}00124 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00125}00125 \textcolor{preprocessor}{\#include <netinet/in.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00126}00126 \textcolor{preprocessor}{\#include <netinet/in\_systm.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00127}00127 \textcolor{preprocessor}{\#include <netinet/if\_ether.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00128}00128 \textcolor{preprocessor}{\#include <netinet/ip.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00129}00129 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00130}00130 \textcolor{preprocessor}{\#include <net80211/ieee80211\_var.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00131}00131 \textcolor{preprocessor}{\#include <net80211/ieee80211\_regdomain.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00132}00132 \textcolor{preprocessor}{\#include <net80211/ieee80211\_ratectl.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00133}00133 \textcolor{preprocessor}{\#include <net80211/ieee80211\_radiotap.h>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00134}00134 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00135}00135 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwmreg_8h}{dev/iwm/if\_iwmreg.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00136}00136 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwmvar_8h}{dev/iwm/if\_iwmvar.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00137}00137 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__config_8h}{dev/iwm/if\_iwm\_config.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00138}00138 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__debug_8h}{dev/iwm/if\_iwm\_debug.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00139}00139 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__util_8h}{dev/iwm/if\_iwm\_util.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00140}00140 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__iwm__sf_8h}{dev/iwm/if\_iwm\_sf.h}}>}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00141}00141 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00142}00142 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00143}00143 \textcolor{comment}{ * Aging and idle timeouts for the different possible scenarios}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00144}00144 \textcolor{comment}{ * in default configuration}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00145}00145 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00146}00146 \textcolor{keyword}{static} \textcolor{keyword}{const} uint32\_t}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00147}\mbox{\hyperlink{if__iwm__sf_8c_a4f47fa07ae36a12cd3077d5a5564ecc9}{00147}} \mbox{\hyperlink{if__iwm__sf_8c_a4f47fa07ae36a12cd3077d5a5564ecc9}{sf\_full\_timeout\_def}}[\mbox{\hyperlink{if__iwmreg_8h_adbd08d80c790172a9bf4e38b1a1357e0a1583920d66feef36943f4301e363a7ab}{IWM\_SF\_NUM\_SCENARIO}}][\mbox{\hyperlink{if__iwmreg_8h_aeb57225512b2ba43c94c10136d000575}{IWM\_SF\_NUM\_TIMEOUT\_TYPES}}] = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00148}00148         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00149}00149                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a1b55fa610b8bd3442b71071d5641d416}{IWM\_SF\_SINGLE\_UNICAST\_AGING\_TIMER\_DEF}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00150}00150                 htole32(\mbox{\hyperlink{if__iwmreg_8h_afa8dc5886a48049c828b20a98b720f4d}{IWM\_SF\_SINGLE\_UNICAST\_IDLE\_TIMER\_DEF}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00151}00151         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00152}00152         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00153}00153                 htole32(\mbox{\hyperlink{if__iwmreg_8h_added412bc07662bb228c81c171ddbcc1}{IWM\_SF\_AGG\_UNICAST\_AGING\_TIMER\_DEF}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00154}00154                 htole32(\mbox{\hyperlink{if__iwmreg_8h_ae1969b67e52fad2f8e3f56ce37f2d823}{IWM\_SF\_AGG\_UNICAST\_IDLE\_TIMER\_DEF}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00155}00155         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00156}00156         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00157}00157                 htole32(\mbox{\hyperlink{if__iwmreg_8h_ae5389399af1e08d03180825805c64e67}{IWM\_SF\_MCAST\_AGING\_TIMER\_DEF}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00158}00158                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a3eb4c547c57b19302ae3b3356bbaa7aa}{IWM\_SF\_MCAST\_IDLE\_TIMER\_DEF}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00159}00159         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00160}00160         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00161}00161                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a93450cb430e071674f28beb3952984e8}{IWM\_SF\_BA\_AGING\_TIMER\_DEF}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00162}00162                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a0428d2f21d788dfba47aa440771dda3f}{IWM\_SF\_BA\_IDLE\_TIMER\_DEF}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00163}00163         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00164}00164         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00165}00165                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a9e49e01069617f0c7bb06afb5199b091}{IWM\_SF\_TX\_RE\_AGING\_TIMER\_DEF}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00166}00166                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a0487bbce36e40ea4b5ae9fd67629da94}{IWM\_SF\_TX\_RE\_IDLE\_TIMER\_DEF}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00167}00167         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00168}00168 \};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00169}00169 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00170}00170 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00171}00171 \textcolor{comment}{ * Aging and idle timeouts for the different possible scenarios}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00172}00172 \textcolor{comment}{ * in single BSS MAC configuration.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00173}00173 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00174}00174 \textcolor{keyword}{static} \textcolor{keyword}{const} uint32\_t}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00175}\mbox{\hyperlink{if__iwm__sf_8c_ad8db804b8fe4d899aede7b0e4ccda66b}{00175}} \mbox{\hyperlink{if__iwm__sf_8c_ad8db804b8fe4d899aede7b0e4ccda66b}{sf\_full\_timeout}}[\mbox{\hyperlink{if__iwmreg_8h_adbd08d80c790172a9bf4e38b1a1357e0a1583920d66feef36943f4301e363a7ab}{IWM\_SF\_NUM\_SCENARIO}}][\mbox{\hyperlink{if__iwmreg_8h_aeb57225512b2ba43c94c10136d000575}{IWM\_SF\_NUM\_TIMEOUT\_TYPES}}] = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00176}00176         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00177}00177                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a0659f4b51c492d524db721d12da5451a}{IWM\_SF\_SINGLE\_UNICAST\_AGING\_TIMER}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00178}00178                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a66c9765f9bd7415797b88c8275fddb18}{IWM\_SF\_SINGLE\_UNICAST\_IDLE\_TIMER}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00179}00179         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00180}00180         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00181}00181                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a96322df50354054877b748df0f4c5390}{IWM\_SF\_AGG\_UNICAST\_AGING\_TIMER}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00182}00182                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a5f5ae67537adccdd9c67f97945b10a6a}{IWM\_SF\_AGG\_UNICAST\_IDLE\_TIMER}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00183}00183         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00184}00184         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00185}00185                 htole32(\mbox{\hyperlink{if__iwmreg_8h_ad9a6352c4918be11dea11142faba49ec}{IWM\_SF\_MCAST\_AGING\_TIMER}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00186}00186                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a41ab7ba9ce779a28861190fbc7268e37}{IWM\_SF\_MCAST\_IDLE\_TIMER}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00187}00187         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00188}00188         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00189}00189                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a098bdedc4641f54b806e44a4b2c77d3c}{IWM\_SF\_BA\_AGING\_TIMER}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00190}00190                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a0618da7162ba4b799cf8510514a485ec}{IWM\_SF\_BA\_IDLE\_TIMER}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00191}00191         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00192}00192         \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00193}00193                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a3c8c021249e9d96f44aff7e98c4ad3db}{IWM\_SF\_TX\_RE\_AGING\_TIMER}}),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00194}00194                 htole32(\mbox{\hyperlink{if__iwmreg_8h_a3df697e4fb5abe5cacfbf21035319479}{IWM\_SF\_TX\_RE\_IDLE\_TIMER}})}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00195}00195         \},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00196}00196 \};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00197}00197 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00198}00198 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00199}\mbox{\hyperlink{if__iwm__sf_8c_a9d85b526a9b46670610d02c1cebddbf7}{00199}} \mbox{\hyperlink{if__iwm__sf_8c_a9d85b526a9b46670610d02c1cebddbf7}{iwm\_fill\_sf\_command}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__sf__cfg__cmd}{iwm\_sf\_cfg\_cmd}} *sf\_cmd,}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00200}00200         \textcolor{keyword}{struct} ieee80211\_node *ni)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00201}00201 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00202}00202         \textcolor{keywordtype}{int} i, j, watermark;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00203}00203 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00204}00204         sf\_cmd-\/>\mbox{\hyperlink{structiwm__sf__cfg__cmd_abfeb9aa4390a8d7a3e4821e6d2d8670c}{watermark}}[\mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a0ffba2d5a07aa6dff732fda30e3d93ef}{IWM\_SF\_LONG\_DELAY\_ON}}] = htole32(\mbox{\hyperlink{if__iwmreg_8h_acf097f8f240f2280ff749668920e21d2}{IWM\_SF\_W\_MARK\_SCAN}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00205}00205 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00206}00206         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00207}00207 \textcolor{comment}{         * If we are in association flow -\/ check antenna configuration}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00208}00208 \textcolor{comment}{         * capabilities of the AP station, and choose the watermark accordingly.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00209}00209 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00210}00210         \textcolor{keywordflow}{if} (ni) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00211}00211                 \textcolor{keywordflow}{if} (ni-\/>ni\_flags \& IEEE80211\_NODE\_HT) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00212}00212                         watermark = \mbox{\hyperlink{if__iwmreg_8h_a30888e1880b90acbdd098d08349e185d}{IWM\_SF\_W\_MARK\_SISO}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00213}00213                 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00214}00214                         watermark = \mbox{\hyperlink{if__iwmreg_8h_a8681cf9f099bd1c798e4fa32101a669b}{IWM\_SF\_W\_MARK\_LEGACY}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00215}00215                 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00216}00216         \textcolor{comment}{/* default watermark value for unassociated mode. */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00217}00217         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00218}00218                 watermark = \mbox{\hyperlink{if__iwmreg_8h_acf58a60038f3246eda07b3ec5402bdd4}{IWM\_SF\_W\_MARK\_MIMO2}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00219}00219         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00220}00220         sf\_cmd-\/>\mbox{\hyperlink{structiwm__sf__cfg__cmd_abfeb9aa4390a8d7a3e4821e6d2d8670c}{watermark}}[\mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a23ba84d824e6d0ecc08b4508ec160f25}{IWM\_SF\_FULL\_ON}}] = htole32(watermark);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00221}00221 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00222}00222         \textcolor{keywordflow}{for} (i = 0; i < \mbox{\hyperlink{if__iwmreg_8h_adbd08d80c790172a9bf4e38b1a1357e0a1583920d66feef36943f4301e363a7ab}{IWM\_SF\_NUM\_SCENARIO}}; i++) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00223}00223                 \textcolor{keywordflow}{for} (j = 0; j < \mbox{\hyperlink{if__iwmreg_8h_aeb57225512b2ba43c94c10136d000575}{IWM\_SF\_NUM\_TIMEOUT\_TYPES}}; j++) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00224}00224                         sf\_cmd-\/>\mbox{\hyperlink{structiwm__sf__cfg__cmd_af5934609a6daf23dfa5a9be616b87112}{long\_delay\_timeouts}}[i][j] =}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00225}00225                                         htole32(\mbox{\hyperlink{if__iwmreg_8h_a01305ea238e2b75970709e862861a1e4}{IWM\_SF\_LONG\_DELAY\_AGING\_TIMER}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00226}00226                 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00227}00227         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00228}00228 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00229}00229         \textcolor{keywordflow}{if} (ni) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00230}00230                 \mbox{\hyperlink{if__iwm_8c_a415a9572f9c3e04d16ff6ac08bdaf8c8}{\_Static\_assert}}(\textcolor{keyword}{sizeof}(\mbox{\hyperlink{if__iwm__sf_8c_ad8db804b8fe4d899aede7b0e4ccda66b}{sf\_full\_timeout}}) == \textcolor{keyword}{sizeof}(uint32\_t) *}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00231}00231                     \mbox{\hyperlink{if__iwmreg_8h_adbd08d80c790172a9bf4e38b1a1357e0a1583920d66feef36943f4301e363a7ab}{IWM\_SF\_NUM\_SCENARIO}} * \mbox{\hyperlink{if__iwmreg_8h_aeb57225512b2ba43c94c10136d000575}{IWM\_SF\_NUM\_TIMEOUT\_TYPES}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00232}00232                     \textcolor{stringliteral}{"{}sf\_full\_timeout has wrong size"{}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00233}00233 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00234}00234                 memcpy(sf\_cmd-\/>\mbox{\hyperlink{structiwm__sf__cfg__cmd_aef4a237db686a2901821cc3a16885006}{full\_on\_timeouts}}, \mbox{\hyperlink{if__iwm__sf_8c_ad8db804b8fe4d899aede7b0e4ccda66b}{sf\_full\_timeout}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00235}00235                        \textcolor{keyword}{sizeof}(\mbox{\hyperlink{if__iwm__sf_8c_ad8db804b8fe4d899aede7b0e4ccda66b}{sf\_full\_timeout}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00236}00236         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00237}00237                 \mbox{\hyperlink{if__iwm_8c_a415a9572f9c3e04d16ff6ac08bdaf8c8}{\_Static\_assert}}(\textcolor{keyword}{sizeof}(\mbox{\hyperlink{if__iwm__sf_8c_a4f47fa07ae36a12cd3077d5a5564ecc9}{sf\_full\_timeout\_def}}) == \textcolor{keyword}{sizeof}(uint32\_t) *}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00238}00238                     \mbox{\hyperlink{if__iwmreg_8h_adbd08d80c790172a9bf4e38b1a1357e0a1583920d66feef36943f4301e363a7ab}{IWM\_SF\_NUM\_SCENARIO}} * \mbox{\hyperlink{if__iwmreg_8h_aeb57225512b2ba43c94c10136d000575}{IWM\_SF\_NUM\_TIMEOUT\_TYPES}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00239}00239                     \textcolor{stringliteral}{"{}sf\_full\_timeout\_def has wrong size"{}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00240}00240 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00241}00241                 memcpy(sf\_cmd-\/>\mbox{\hyperlink{structiwm__sf__cfg__cmd_aef4a237db686a2901821cc3a16885006}{full\_on\_timeouts}}, \mbox{\hyperlink{if__iwm__sf_8c_a4f47fa07ae36a12cd3077d5a5564ecc9}{sf\_full\_timeout\_def}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00242}00242                        \textcolor{keyword}{sizeof}(\mbox{\hyperlink{if__iwm__sf_8c_a4f47fa07ae36a12cd3077d5a5564ecc9}{sf\_full\_timeout\_def}}));}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00243}00243         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00244}00244 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00245}00245 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00246}00246 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00247}\mbox{\hyperlink{if__iwm__sf_8c_acd73e384c652b7554242f07d67bd2cc0}{00247}} \mbox{\hyperlink{if__iwm__sf_8c_acd73e384c652b7554242f07d67bd2cc0}{iwm\_sf\_config}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} ieee80211\_node *ni,}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00248}00248         \textcolor{keyword}{enum} \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6}{iwm\_sf\_state}} new\_state)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00249}00249 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00250}00250         \textcolor{keyword}{struct }\mbox{\hyperlink{structiwm__sf__cfg__cmd}{iwm\_sf\_cfg\_cmd}} sf\_cmd = \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00251}00251                 .\mbox{\hyperlink{structiwm__sf__cfg__cmd_a3a0350eeceaafd8c49f4724ce9bededc}{state}} = htole32(new\_state),}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00252}00252         \};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00253}00253         \textcolor{keywordtype}{int} ret = 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00254}00254 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00255}00255 \textcolor{preprocessor}{\#ifdef notyet   }\textcolor{comment}{/* only relevant for sdio variants */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00256}00256         \textcolor{keywordflow}{if} (sc-\/>\mbox{\hyperlink{structiwm__softc_abc5c2afc6712100ee1cd53db27be3d2e}{cfg}}-\/>disable\_dummy\_notification)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00257}00257                 sf\_cmd.\mbox{\hyperlink{structiwm__sf__cfg__cmd_a3a0350eeceaafd8c49f4724ce9bededc}{state}} |= htole32(\mbox{\hyperlink{if__iwmreg_8h_a311c5af6aa97de33624d7135eb51ce4d}{IWM\_SF\_CFG\_DUMMY\_NOTIF\_OFF}});}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00258}00258 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00259}00259 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00260}00260         \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00261}00261 \textcolor{comment}{         * If an associated AP sta changed its antenna configuration, the state}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00262}00262 \textcolor{comment}{         * will remain FULL\_ON but SF parameters need to be reconsidered.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00263}00263 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00264}00264         \textcolor{keywordflow}{if} (new\_state != \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a23ba84d824e6d0ecc08b4508ec160f25}{IWM\_SF\_FULL\_ON}} \&\& sc-\/>\mbox{\hyperlink{structiwm__softc_a666b0d35ec5dff20dbfbcb51294dc0d1}{sf\_state}} == new\_state)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00265}00265                 \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00266}00266 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00267}00267         \textcolor{keywordflow}{switch} (new\_state) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00268}00268         \textcolor{keywordflow}{case} \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a6533f48063182107c62ba6b80ded01e0}{IWM\_SF\_UNINIT}}:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00269}00269                 \mbox{\hyperlink{if__iwm__sf_8c_a9d85b526a9b46670610d02c1cebddbf7}{iwm\_fill\_sf\_command}}(sc, \&sf\_cmd, NULL);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00270}00270                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00271}00271         \textcolor{keywordflow}{case} \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a23ba84d824e6d0ecc08b4508ec160f25}{IWM\_SF\_FULL\_ON}}:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00272}00272                 \mbox{\hyperlink{if__iwm__sf_8c_a9d85b526a9b46670610d02c1cebddbf7}{iwm\_fill\_sf\_command}}(sc, \&sf\_cmd, ni);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00273}00273                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00274}00274         \textcolor{keywordflow}{case} \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a5452dbac4ace8efb20ffb2989efcc2fb}{IWM\_SF\_INIT\_OFF}}:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00275}00275                 \mbox{\hyperlink{if__iwm__sf_8c_a9d85b526a9b46670610d02c1cebddbf7}{iwm\_fill\_sf\_command}}(sc, \&sf\_cmd, NULL);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00276}00276                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00277}00277         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00278}00278                 device\_printf(sc-\/>\mbox{\hyperlink{structiwm__softc_a7eb6d9ddec0e257ff6ce27f3b61481cd}{sc\_dev}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00279}00279                     \textcolor{stringliteral}{"{}Invalid state: \%d. not sending Smart Fifo cmd\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00280}00280                     new\_state);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00281}00281                 \textcolor{keywordflow}{return} EINVAL;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00282}00282         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00283}00283 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00284}00284         ret = \mbox{\hyperlink{if__iwm__util_8c_ad7c0f40dbc21d1ec94f0c5f6194d1140}{iwm\_send\_cmd\_pdu}}(sc, \mbox{\hyperlink{if__iwmreg_8h_aeb2c2fc549f0474173b5c0f4c1f18426}{IWM\_REPLY\_SF\_CFG\_CMD}}, \mbox{\hyperlink{if__iwmvar_8h_a683e81a3f25e57c34df07e37e049bf07af64bbdf020628f047b9ce6c4acb4a3d2}{IWM\_CMD\_ASYNC}},}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00285}00285                                    \textcolor{keyword}{sizeof}(sf\_cmd), \&sf\_cmd);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00286}00286         \textcolor{keywordflow}{if} (!ret)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00287}00287                 sc-\/>\mbox{\hyperlink{structiwm__softc_a666b0d35ec5dff20dbfbcb51294dc0d1}{sf\_state}} = new\_state;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00288}00288 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00289}00289         \textcolor{keywordflow}{return} ret;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00290}00290 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00291}00291 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00292}00292 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00293}00293 \textcolor{comment}{ * Update Smart fifo:}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00294}00294 \textcolor{comment}{ * Count bound interfaces that are not to be removed, ignoring p2p devices,}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00295}00295 \textcolor{comment}{ * and set new state accordingly.}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00296}00296 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00297}00297 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00298}\mbox{\hyperlink{if__iwm__sf_8c_a0406d7ed2bfe1ce729140dfc625cffd6}{00298}} \mbox{\hyperlink{if__iwm__sf_8c_a0406d7ed2bfe1ce729140dfc625cffd6}{iwm\_sf\_update}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structiwm__softc}{iwm\_softc}} *sc, \textcolor{keyword}{struct} ieee80211vap *changed\_vif,}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00299}00299         boolean\_t remove\_vif)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00300}00300 \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00301}00301         \textcolor{keyword}{enum} \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6}{iwm\_sf\_state}} new\_state;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00302}00302         \textcolor{keyword}{struct }ieee80211\_node *ni = NULL;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00303}00303         \textcolor{keywordtype}{int} num\_active\_macs = 0;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00304}00304 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00305}00305         \textcolor{comment}{/* If changed\_vif exists and is not to be removed, add to the count */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00306}00306         \textcolor{keywordflow}{if} (changed\_vif \&\& !remove\_vif)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00307}00307                 num\_active\_macs++;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00308}00308 }
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00309}00309         \textcolor{keywordflow}{switch} (num\_active\_macs) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00310}00310         \textcolor{keywordflow}{case} 0:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00311}00311                 \textcolor{comment}{/* If there are no active macs -\/ change state to SF\_INIT\_OFF */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00312}00312                 new\_state = \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a5452dbac4ace8efb20ffb2989efcc2fb}{IWM\_SF\_INIT\_OFF}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00313}00313                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00314}00314         \textcolor{keywordflow}{case} 1:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00315}00315                 \textcolor{keywordflow}{if} (!changed\_vif)}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00316}00316                         \textcolor{keywordflow}{return} EINVAL;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00317}00317                 ni = changed\_vif-\/>iv\_bss;}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00318}00318                 \textcolor{keywordflow}{if} (ni != NULL \&\& \mbox{\hyperlink{if__iwmvar_8h_a371387d15226f5218ae8d2d2657934a5}{IWM\_NODE}}(ni)-\/>in\_assoc \&\&}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00319}00319                     changed\_vif-\/>iv\_dtim\_period) \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00320}00320                         new\_state = \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a23ba84d824e6d0ecc08b4508ec160f25}{IWM\_SF\_FULL\_ON}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00321}00321                 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00322}00322                         new\_state = \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a5452dbac4ace8efb20ffb2989efcc2fb}{IWM\_SF\_INIT\_OFF}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00323}00323                 \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00324}00324                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00325}00325         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00326}00326                 \textcolor{comment}{/* If there are multiple active macs -\/ change to SF\_UNINIT */}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00327}00327                 new\_state = \mbox{\hyperlink{if__iwmreg_8h_ae0c4b2df21f4690048d8bb50d2a340c6a6533f48063182107c62ba6b80ded01e0}{IWM\_SF\_UNINIT}};}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00328}00328         \}}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00329}00329         \textcolor{keywordflow}{return} \mbox{\hyperlink{if__iwm__sf_8c_acd73e384c652b7554242f07d67bd2cc0}{iwm\_sf\_config}}(sc, ni, new\_state);}
\DoxyCodeLine{\Hypertarget{if__iwm__sf_8c_source_l00330}00330 \}}

\end{DoxyCode}
