1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>wimax_reset</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s06.html" title="WiMAX"><link rel="prev" href="API-wimax-msg.html" title="wimax_msg"><link rel="next" href="API-wimax-report-rfkill-hw.html" title="wimax_report_rfkill_hw"></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">wimax_reset</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-wimax-msg.html">Prev</a> </td><th width="60%" align="center">WiMAX</th><td width="20%" align="right"> <a accesskey="n" href="API-wimax-report-rfkill-hw.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-wimax-reset"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>wimax_reset — 2 Reset a WiMAX device 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">wimax_reset </b>(</code></td><td>struct wimax_dev * <var class="pdparam">wimax_dev</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1097600428"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>wimax_dev</code></em></span></dt><dd><p> 4 WiMAX device descriptor 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1097602044"></a><h2>Returns</h2><p> 6 </p><p> 7 8 <code class="constant">0</code> if ok and a warm reset was done (the device still exists in 9 the system). 10 </p><p> 11 12 -<code class="constant">ENODEV</code> if a cold/bus reset had to be done (device has 13 disconnected and reconnected, so current handle is not valid 14 any more). 15 </p><p> 16 17 -<code class="constant">EINVAL</code> if the device is not even registered. 18 </p><p> 19 20 Any other negative error code shall be considered as 21 non-recoverable. 22</p></div><div class="refsect1"><a name="idp1097604148"></a><h2>Description</h2><p> 23 </p><p> 24 25 Called when wanting to reset the device for any reason. Device is 26 taken back to power on status. 27 </p><p> 28 29 This call blocks; on successful return, the device has completed the 30 reset process and is ready to operate. 31</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-wimax-msg.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-wimax-report-rfkill-hw.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">wimax_msg</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">wimax_report_rfkill_hw</span></td></tr></table></div></body></html> 32