1<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<link rel="stylesheet" type="text/css" href="../CSS/rex.css" />
7<title>WDCheckEnableChannel</title>
8</head>
9<body>
10
11<h1>WDCheckEnableChannel</h1>
12
13<h2>C Specification</h2>
14<dl>
15<dd><pre><code>#include &lt;revolution/wd/WDScan.h&gt;</code></pre>
16  </dd>
17<dd><pre><code>WDError WDCheckEnableChannel( u16* <em>scanEnableChannel</em> );</code></pre>
18  </dd>
19</dl>
20
21<h2>Description</h2>
22<p>Checks for usable wireless channels.</p>
23
24<h2>Arguments</h2>
25<table border="1" cellpadding="3" cellspacing="0.1">
26	<tr>
27		<TH><em>scanEnableChannel</em></TH>
28		<TD>
29			Specifies the pointer to the variable to get usable wireless channel information.<br>Usable wireless channels will be indicated as bit fields. The lowest bit is reserved, and the statuses are stored from channel 1 onward starting with the second-lowest bit. For example, <CODE>0x0ffe</CODE> would indicate that channels 1-11 are usable.
30		</TD>
31	</tr>
32</table>
33
34<h2>Return Values</h2>
35<table border="1" cellpadding="3" cellspacing="0.1">
36	<tr>
37		<TH>WD_SUCCESS</TH>
38		<TD>Process was successful.</TD>
39	</tr>
40	<tr>
41		<TH>WD_ERR_FATAL</TH>
42		<TD>A fatal error occurred while running the firmware.</TD>
43	</tr>
44	<tr>
45		<TH>WD_ERR_ILLEGAL_STATUS</TH>
46		<TD>A call from the exception handler.</TD>
47	</tr>
48	<tr>
49		<TH>WD_ERR_INPROGRESS</TH>
50		<TD>The firmware was not ready.</TD>
51	</tr>
52	<tr>
53		<TH>WD_ERR_EXCLUSIVE</TH>
54		<TD>The process failed because the WD library is exclusively controlled.</TD>
55	</tr>
56</table>
57<P style="background-color:ffe8ff;padding-top:4px;padding-bottom:4px;padding-left:4px;padding-right:4px;">
58	<strong>Note: </strong>Errors may be added as the library is updated. Treat all negative return values as all-purpose errors.
59</P>
60
61<h2>See Also</h2>
62<p>
63	<CODE><a href="WDScanOnce.html">WDScanOnce</a><br> <a href="WDTryUsbApRegistrationOnce.html">WDTryUsbApRegistrationOnce</a><br></CODE>
64</p>
65
66<h2>Revision History</h2>
67<p>
68	2006/11/09 Initial version.<br>2006/12/12 Added description.<br>
69</p>
70<hr><p>CONFIDENTIAL</p></body>
71</html>
72