1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>cfg80211_check_combinations</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The 802.11 subsystems &#8211; for kernel developers"><link rel="up" href="bk01ch01.html" title="Chapter&#160;1.&#160;Device registration"><link rel="prev" href="API-struct-ieee80211-iface-combination.html" title="struct ieee80211_iface_combination"><link rel="next" href="bk01ch02.html" title="Chapter&#160;2.&#160;Actions and configuration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">cfg80211_check_combinations</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-ieee80211-iface-combination.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;1.&#160;Device registration</th><td width="20%" align="right">&#160;<a accesskey="n" href="bk01ch02.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-cfg80211-check-combinations"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>cfg80211_check_combinations &#8212; 
2  check interface combinations
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">cfg80211_check_combinations </b>(</code></td><td>struct wiphy * <var class="pdparam">wiphy</var>, </td></tr><tr><td>&#160;</td><td>const int <var class="pdparam">num_different_channels</var>, </td></tr><tr><td>&#160;</td><td>const u8 <var class="pdparam">radar_detect</var>, </td></tr><tr><td>&#160;</td><td>const int <var class="pdparam">iftype_num[NUM_NL80211_IFTYPES]</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1112347628"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>wiphy</code></em></span></dt><dd><p>
4     the wiphy
5    </p></dd><dt><span class="term"><em class="parameter"><code>num_different_channels</code></em></span></dt><dd><p>
6     the number of different channels we want
7     to use for verification
8    </p></dd><dt><span class="term"><em class="parameter"><code>radar_detect</code></em></span></dt><dd><p>
9     a bitmap where each bit corresponds to a channel
10     width where radar detection is needed, as in the definition of
11     <span class="structname">struct ieee80211_iface_combination</span>.<em class="parameter"><code>radar_detect_widths</code></em>
12    </p></dd><dt><span class="term"><em class="parameter"><code>iftype_num[NUM_NL80211_IFTYPES]</code></em></span></dt><dd><p>
13     array with the numbers of interfaces of each interface
14     type.  The index is the interface type as specified in <span class="structname">enum</span>
15     nl80211_iftype.
16    </p></dd></dl></div></div><div class="refsect1"><a name="idp1112353140"></a><h2>Description</h2><p>
17   This function can be called by the driver to check whether a
18   combination of interfaces and their types are allowed according to
19   the interface combinations.
20</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-ieee80211-iface-combination.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="bk01ch01.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="bk01ch02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct ieee80211_iface_combination</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;2.&#160;Actions and configuration</td></tr></table></div></body></html>
21