1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ieee80211_sta_block_awake</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="AP.html#ps-client" title="support for powersaving clients"><link rel="prev" href="API-ieee80211-sta-set-buffered.html" title="ieee80211_sta_set_buffered"><link rel="next" href="multi-iface.html" title="Chapter&#160;13.&#160;Supporting multiple virtual interfaces"></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">ieee80211_sta_block_awake</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ieee80211-sta-set-buffered.html">Prev</a>&#160;</td><th width="60%" align="center">support for powersaving clients</th><td width="20%" align="right">&#160;<a accesskey="n" href="multi-iface.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ieee80211-sta-block-awake"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ieee80211_sta_block_awake &#8212; 
2  block station from waking up
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">void <b class="fsfunc">ieee80211_sta_block_awake </b>(</code></td><td>struct ieee80211_hw * <var class="pdparam">hw</var>, </td></tr><tr><td>&#160;</td><td>struct ieee80211_sta * <var class="pdparam">pubsta</var>, </td></tr><tr><td>&#160;</td><td>bool <var class="pdparam">block</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1114198452"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hw</code></em></span></dt><dd><p>
4     the hardware
5    </p></dd><dt><span class="term"><em class="parameter"><code>pubsta</code></em></span></dt><dd><p>
6     the station
7    </p></dd><dt><span class="term"><em class="parameter"><code>block</code></em></span></dt><dd><p>
8     whether to block or unblock
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1114202092"></a><h2>Description</h2><p>
10   Some devices require that all frames that are on the queues
11   for a specific station that went to sleep are flushed before
12   a poll response or frames after the station woke up can be
13   delivered to that it. Note that such frames must be rejected
14   by the driver as filtered, with the appropriate status flag.
15   </p><p>
16
17   This function allows implementing this mode in a race-free
18   manner.
19   </p><p>
20
21   To do this, a driver must keep track of the number of frames
22   still enqueued for a specific station. If this number is not
23   zero when the station goes to sleep, the driver must call
24   this function to force mac80211 to consider the station to
25   be asleep regardless of the station's actual state. Once the
26   number of outstanding frames reaches zero, the driver must
27   call this function again to unblock the station. That will
28   cause mac80211 to be able to send ps-poll responses, and if
29   the station queried in the meantime then frames will also
30   be sent out as a result of this. Additionally, the driver
31   will be notified that the station woke up some time after
32   it is unblocked, regardless of whether the station actually
33   woke up while blocked or not.
34</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-sta-set-buffered.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="AP.html#ps-client">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="multi-iface.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ieee80211_sta_set_buffered</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;13.&#160;Supporting multiple virtual interfaces</td></tr></table></div></body></html>
35