<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>ieee80211_get_response_rate</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="The 802.11 subsystems – for kernel developers" /><link rel="up" href="bk01ch04.html" title="Chapter 4. Utility functions" /><link rel="prev" href="API-ieee80211-get-channel.html" title="ieee80211_get_channel" /><link rel="next" href="API-ieee80211-hdrlen.html" title="ieee80211_hdrlen" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">ieee80211_get_response_rate</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ieee80211-get-channel.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Utility functions</th><td width="20%" align="right"> <a accesskey="n" href="API-ieee80211-hdrlen.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-ieee80211-get-response-rate"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ieee80211_get_response_rate — get basic rate for a given rate </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">struct ieee80211_rate * <strong class="fsfunc">ieee80211_get_response_rate </strong>(</code></td><td>struct ieee80211_supported_band * <var class="pdparam">sband</var>, </td></tr><tr><td> </td><td>u32 <var class="pdparam">basic_rates</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">bitrate</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a id="idm139754518767824"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sband</code></em></span></dt><dd><p> the band to look for rates in </p></dd><dt><span class="term"><em class="parameter"><code>basic_rates</code></em></span></dt><dd><p> bitmap of basic rates </p></dd><dt><span class="term"><em class="parameter"><code>bitrate</code></em></span></dt><dd><p> the bitrate for which to find the basic rate </p></dd></dl></div></div><div class="refsect1"><a id="idm139754518760960"></a><h2>Return</h2><p> The basic rate corresponding to a given bitrate, that is the next lower bitrate contained in the basic rate map, which is, for this function, given as a bitmap of indices of rates in the band's bitrate table. </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ieee80211-get-channel.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bk01ch04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ieee80211-hdrlen.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ieee80211_get_channel</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">ieee80211_hdrlen</span></td></tr></table></div></body></html>