This is WlanBP3595 library for AP mode. This library only works with GR-PEACH. We performed the operation check on GR-PEACH E version. Please refer to LICENSE.txt about license of this library.
Fork of WlanBP3595AP by
Revision 0:7683dafa8c1a, committed 2015-12-25
- Comitter:
- tousaki
- Date:
- Fri Dec 25 08:15:42 2015 +0000
- Child:
- 1:5424d25360ea
- Commit message:
- Created 1st version.
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE.txt Fri Dec 25 08:15:42 2015 +0000 @@ -0,0 +1,287 @@ +This library is licensed under the Apache License Version 2.0 with additional +license terms. + +------------------------------------------------------------------------------ +/****************************************************************************/ +/* Copyright (c) 2015 GRAPE SYSTEMS INC. */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ +/* See the License for the specific language governing permissions and */ +/* limitations under the License. */ +/* */ +/* [Additional license terms] */ +/* */ +/* This library is free for non-commercial purposes. */ +/* To use this commercially, contact us at */ +/* */ +/* sales@info.grape.co.jp */ +/* */ +/****************************************************************************/ +------------------------------------------------------------------------------ + +This library uses lwIP. +The license of lwIP is as follows. + +------------------------------------------------------------------------------ +/* + * Copyright (c) 2001-2004 Swedish Institute of Computer Science. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * +------------------------------------------------------------------------------ + +This library uses mbed Microcontroller Library. +The license of mbed Microcontroller Library is as follows. + +------------------------------------------------------------------------------ +/* mbed Microcontroller Library + * Copyright (c) 2006-2013 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +------------------------------------------------------------------------------ + +The Apache License Version 2.0 is as follows. + +------------------------------------------------------------------------------ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +------------------------------------------------------------------------------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/WlanBP3595.h Fri Dec 25 08:15:42 2015 +0000
@@ -0,0 +1,351 @@
+/****************************************************************************/
+/* Copyright (c) 2015 GRAPE SYSTEMS INC. */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
+/* See the License for the specific language governing permissions and */
+/* limitations under the License. */
+/* */
+/* [Additional license terms] */
+/* */
+/* This library is free for non-commercial purposes. */
+/* To use this commercially, contact us at */
+/* */
+/* sales@info.grape.co.jp */
+/* */
+/****************************************************************************/
+
+/** @file
+ *
+ * WlanBP3595 library.
+ * This library only works with GR-PEACH.
+ *
+ * @note
+ * Please refer to ROHM's "Software Development Specs" for the information of WID.
+ */
+
+#ifndef _WLANBP3595_H_
+#define _WLANBP3595_H_
+
+#include "rza1_bp3595_emac.h"
+#include "lwip/opt.h"
+#include "lwip/pbuf.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**** CONSTANT DEFINES **************************************************************************/
+
+/** @name Status of WlanBP3595
+ *
+ */
+/*@{*/
+#define WLAN_BP3595_NONE 0 /*!< BP3595 is not connected, or the firmware is not downloaded */
+#define WLAN_BP3595_FW_DL 1 /*!< The firmware is being downloaded */
+#define WLAN_BP3595_START 2 /*!< The firmware was downloaded and is working */
+/*@}*/
+
+/**** FUNCTION PROTOTYPE & MACRO FUNCTION ******************************************************/
+
+/** Initialize WlanBP3595
+ *
+ * @note
+ * After executing this function, please wait until the state becomes WLAN_BP3595_START.
+ * You can get the status by WlanBP3595_GetWlanSts().
+ *
+ * @param pfnWlanInfoNotication The information callback function
+ * - 1st param : The message type ('I' or 'N')
+ * - 2nd param : WID number
+ * - 3rd param : The data size
+ * - 4th param : The data buffer
+ * @retval 0 Success
+ * @retval "The others" Failure
+ */
+int WlanBP3595_Init(void (*pfnWlanInfoNotication)(uint8_t, uint16_t, uint16_t, uint8_t *));
+
+/** Get the status of WlanBP3595
+ *
+ * @retval WLAN_BP3595_NONE BP3595 is not connected, or the firmware is not downloaded
+ * @retval WLAN_BP3595_FW_DL The firmware is being downloaded
+ * @retval WLAN_BP3595_START The firmware was downloaded and is working
+ */
+uint32_t WlanBP3595_GetWlanSts(void);
+
+/** Execute WID function
+ *
+ * @param ulFunc A function number
+ * @param pvParam The data buffer (the parameter)
+ * @retval 0 Success
+ * @retval "The others" Failure
+ */
+int WlanBP3595_Ioctl(uint32_t ulFunc, void *pvParam);
+
+/** Output an ethernet frame
+ *
+ * @note
+ * This function is used in EthernetInterface driver.
+ *
+ * @param p A pbuf to output
+ * @retval 0 Success
+ * @retval "The others" Failure
+ */
+int WlanBP3595_Output(struct pbuf *p);
+
+/** Enable receiving
+ *
+ * @note
+ * This function is used in EthernetInterface driver.
+ */
+void WlanBP3595_RecvEnable(void);
+
+/** Disable receiving
+ *
+ * @note
+ * This function is used in EthernetInterface driver.
+ */
+void WlanBP3595_RecvDisable(void);
+
+/** @name Macro Function
+ *
+ */
+/*@{*/
+
+/** Notify the EthernetInterface driver that WLAN was connected
+ *
+ * When WLAN was connected,
+ * please call this macro function from your application program.
+ * The types of the argument and the return value are "void".
+ * You can know the change of the connection state by the information callback.
+ *
+ * @note
+ * When this function is called before executing EthernetInterface::init(), this function does nothing.
+ * If you use WlanBP3595_Disconnected() in a different thread, please perform exclusive control.
+ */
+#define WlanBP3595_Connected() rza1_bp3595_connected()
+
+/** Notify the EthernetInterface driver that WLAN was disconnected
+ *
+ * When WLAN was disconnected,
+ * please call this macro function from your application program.
+ * The types of the argument and the return value are "void".
+ * You can know the change of the connection state by the information callback.
+ *
+ * @note
+ * When this function is called before executing EthernetInterface::init(), this function does nothing.
+ * If you use WlanBP3595_Connected() in a different thread, please perform exclusive control.
+ */
+#define WlanBP3595_Disconnected() rza1_bp3595_disconnected()
+
+/*@}*/
+
+/**** TYPE DEFINES ******************************************************************************/
+typedef unsigned int grp_ui;
+typedef signed int grp_si;
+
+typedef unsigned long grp_u32;
+typedef signed long grp_s32;
+
+typedef unsigned short grp_u16;
+typedef signed short grp_s16;
+
+typedef unsigned char grp_u8;
+typedef signed char grp_s8;
+
+/**** SIZE DEFINES ******************************************************************************/
+#define GRP_WLD_SSID_SIZE 32
+#define GRP_WLD_BSSID_SIZE 6
+#define GRP_WLD_MAC_ADDRESS_SIZE 6
+#define GRP_WLD_WEP_KEY_SIZE_128 13
+
+/**** IOCTL FUNCTION PARAMETER DEFINES **********************************************************/
+#define GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX 8
+
+/**** IOCTL FUNCTION BASE NUMBER DEFINES ********************************************************/
+#define GRP_WLD_IOCTL_FUNCTION_KIND_MASK 0xc000
+#define GRP_WLD_IOCTL_GET_FUNCTION 0x8000
+#define GRP_WLD_IOCTL_SET_FUNCTION 0x4000
+
+/**** IOCTL FUNCTION NUMBER DEFINES *************************************************************/
+
+/** @name Function code
+ *
+ */
+/*@{*/
+#define GRP_WLD_IOCTL_GET_BSS_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0001 /*!< The function code of WID_BSS_TYPE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_BSS_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0001 /*!< The function code of WID_BSS_TYPE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_CHANNEL GRP_WLD_IOCTL_GET_FUNCTION + 0x0002 /*!< The function code of WID_CURRENT_CHANNEL for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_CHANNEL GRP_WLD_IOCTL_SET_FUNCTION + 0x0002 /*!< The function code of WID_CURRENT_CHANNEL for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_ENABLE_CHANNEL GRP_WLD_IOCTL_GET_FUNCTION + 0x0003 /*!< The function code of WID_ENABLE_CHANNEL for getting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_SET_ENABLE_CHANNEL GRP_WLD_IOCTL_SET_FUNCTION + 0x0003 /*!< The function code of WID_ENABLE_CHANNEL for setting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_GET_11I_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x0004 /*!< The function code of WID_11I_MODE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_11I_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x0004 /*!< The function code of WID_11I_MODE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_11I_PSK GRP_WLD_IOCTL_GET_FUNCTION + 0x0005 /*!< The function code of WID_11I_PSK for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_SET_11I_PSK GRP_WLD_IOCTL_SET_FUNCTION + 0x0005 /*!< The function code of WID_11I_PSK for setting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_SCAN_FILTER GRP_WLD_IOCTL_GET_FUNCTION + 0x0006 /*!< The function code of WID_SCAN_FILTER for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_SCAN_FILTER GRP_WLD_IOCTL_SET_FUNCTION + 0x0006 /*!< The function code of WID_SCAN_FILTER for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_RSSI GRP_WLD_IOCTL_GET_FUNCTION + 0x000f /*!< The function code of WID_RSSI for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_POWER_MANAGEMENT GRP_WLD_IOCTL_GET_FUNCTION + 0x0010
+#define GRP_WLD_IOCTL_SET_POWER_MANAGEMENT GRP_WLD_IOCTL_SET_FUNCTION + 0x0010
+#define GRP_WLD_IOCTL_GET_POWER_SAVE GRP_WLD_IOCTL_GET_FUNCTION + 0x0011
+#define GRP_WLD_IOCTL_SET_POWER_SAVE GRP_WLD_IOCTL_SET_FUNCTION + 0x0011
+#define GRP_WLD_IOCTL_GET_MAC_STATUS GRP_WLD_IOCTL_GET_FUNCTION + 0x0012 /*!< The function code of WID_CURRENT_MAC_STATUS for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_SSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0013 /*!< The function code of WID_SSID for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_SET_SSID GRP_WLD_IOCTL_SET_FUNCTION + 0x0013 /*!< The function code of WID_SSID for setting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_BCAST_SSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0014 /*!< The function code of WID_BCAST_SSID for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_BCAST_SSID GRP_WLD_IOCTL_SET_FUNCTION + 0x0014 /*!< The function code of WID_BCAST_SSID for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_BSSID GRP_WLD_IOCTL_GET_FUNCTION + 0x0015 /*!< The function code of WID_BSSID for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_WEP_KEY GRP_WLD_IOCTL_GET_FUNCTION + 0x0016 /*!< The function code of WID_WEP_KEY_VALUE for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_SET_WEP_KEY GRP_WLD_IOCTL_SET_FUNCTION + 0x0016 /*!< The function code of WID_WEP_KEY_VALUE for setting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_WEP_KEY_INDEX GRP_WLD_IOCTL_GET_FUNCTION + 0x0017 /*!< The function code of WID_KEY_ID for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_WEP_KEY_INDEX GRP_WLD_IOCTL_SET_FUNCTION + 0x0017 /*!< The function code of WID_KEY_ID for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_LISTEN_INTERVAL GRP_WLD_IOCTL_GET_FUNCTION + 0x0019 /*!< The function code of WID_LISTEN_INTERVAL for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_LISTEN_INTERVAL GRP_WLD_IOCTL_SET_FUNCTION + 0x0019 /*!< The function code of WID_LISTEN_INTERVAL for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_SITE_SURVEY_RESULT GRP_WLD_IOCTL_GET_FUNCTION + 0x001a /*!< The function code of WID_SITE_SURVEY_RESULTS for getting. The parameter type is "grp_wld_site_survey_result_array". */
+#define GRP_WLD_IOCTL_GET_DEVICE_STRINGS GRP_WLD_IOCTL_GET_FUNCTION + 0x001b /*!< The function code of WID_FIRMWARE_VERSION & WID_SERIAL_NUMBER for getting. The parameter type is "grp_wld_dev_strings". */
+#define GRP_WLD_IOCTL_GET_MAC_ADDRESS GRP_WLD_IOCTL_GET_FUNCTION + 0x001c /*!< The function code of WID_MAC_ADDR for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_SCAN_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0022 /*!< The function code of WID_SCAN_TYPE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_SCAN_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0022 /*!< The function code of WID_SCAN_TYPE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_AUTH_TYPE GRP_WLD_IOCTL_GET_FUNCTION + 0x0026 /*!< The function code of WID_AUTH_TYPE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_AUTH_TYPE GRP_WLD_IOCTL_SET_FUNCTION + 0x0026 /*!< The function code of WID_AUTH_TYPE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_SEL_ANTENNA GRP_WLD_IOCTL_GET_FUNCTION + 0x0030 /*!< The function code of WID_ANTENNA_SELECTION for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_SEL_ANTENNA GRP_WLD_IOCTL_SET_FUNCTION + 0x0030 /*!< The function code of WID_ANTENNA_SELECTION for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_WPS_START GRP_WLD_IOCTL_GET_FUNCTION + 0x0035 /*!< The function code of WID_WPS_START for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_WPS_START GRP_WLD_IOCTL_SET_FUNCTION + 0x0035 /*!< The function code of WID_WPS_START for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_WPS_DEV_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x0036 /*!< The function code of WID_WPS_DEV_MODE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_WPS_DEV_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x0036 /*!< The function code of WID_WPS_DEV_MODE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_BEACON_INTERVAL GRP_WLD_IOCTL_GET_FUNCTION + 0x004a /*!< The function code of WID_BEACON_INTERVAL for getting. The parameter type is "grp_u16". */
+#define GRP_WLD_IOCTL_SET_BEACON_INTERVAL GRP_WLD_IOCTL_SET_FUNCTION + 0x004a /*!< The function code of WID_BEACON_INTERVAL for setting. The parameter type is "grp_u16". */
+#define GRP_WLD_IOCTL_GET_WPS_PIN GRP_WLD_IOCTL_GET_FUNCTION + 0x0064 /*!< The function code of WID_WPS_PIN for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_SET_WPS_PIN GRP_WLD_IOCTL_SET_FUNCTION + 0x0064 /*!< The function code of WID_WPS_PIN for setting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_WPS_CRED_LIST GRP_WLD_IOCTL_GET_FUNCTION + 0x006a /*!< The function code of WID_WPS_CRED_LIST for getting. The parameter type is "grp_wld_wps_cred_list". */
+#define GRP_WLD_IOCTL_SET_WPS_CRED_LIST GRP_WLD_IOCTL_SET_FUNCTION + 0x006a /*!< The function code of WID_WPS_CRED_LIST for setting. The parameter type is "grp_wld_wps_cred_list". */
+#define GRP_WLD_IOCTL_GET_USB_IN_XFER_MODE GRP_WLD_IOCTL_GET_FUNCTION + 0x006b /*!< The function code of WID_USB_IN_XFER_MODE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_USB_IN_XFER_MODE GRP_WLD_IOCTL_SET_FUNCTION + 0x006b /*!< The function code of WID_USB_IN_XFER_MODE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_TX_POWER_RATE GRP_WLD_IOCTL_GET_FUNCTION + 0x006c /*!< The function code of WID_TX_POWER_RATE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_TX_POWER_RATE GRP_WLD_IOCTL_SET_FUNCTION + 0x006c /*!< The function code of WID_TX_POWER_RATE for setting. The parameter type is "grp_u8". */
+
+#define GRP_WLD_IOCTL_GET_VSIE_FRAME GRP_WLD_IOCTL_GET_FUNCTION + 0x006d /*!< The function code of WID_VSIE_FRAME for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_VSIE_FRAME GRP_WLD_IOCTL_SET_FUNCTION + 0x006d /*!< The function code of WID_VSIE_FRAME for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_VSIE_INFO_ENABLE GRP_WLD_IOCTL_GET_FUNCTION + 0x006e /*!< The function code of WID_VSIE_INFO_ENABLE for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_VSIE_INFO_ENABLE GRP_WLD_IOCTL_SET_FUNCTION + 0x006e /*!< The function code of WID_VSIE_INFO_ENABLE for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_VSIE_RX_OUI GRP_WLD_IOCTL_GET_FUNCTION + 0x006f /*!< The function code of WID_VSIE_RX_OUI for getting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_SET_VSIE_RX_OUI GRP_WLD_IOCTL_SET_FUNCTION + 0x006f /*!< The function code of WID_VSIE_RX_OUI for setting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_GET_VSIE_TX_DATA GRP_WLD_IOCTL_GET_FUNCTION + 0x0070 /*!< The function code of WID_VSIE_TX_DATA for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_SET_VSIE_TX_DATA GRP_WLD_IOCTL_SET_FUNCTION + 0x0070 /*!< The function code of WID_VSIE_TX_DATA for setting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_VSIE_RX_DATA GRP_WLD_IOCTL_GET_FUNCTION + 0x0071 /*!< The function code of WID_VSIE_RX_DATA for getting. The parameter type is "grp_wld_byte_array". */
+#define GRP_WLD_IOCTL_GET_DTIM_PERIOD GRP_WLD_IOCTL_GET_FUNCTION + 0x0072 /*!< The function code of WID_DTIM_PERIOD for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_DTIM_PERIOD GRP_WLD_IOCTL_SET_FUNCTION + 0x0072 /*!< The function code of WID_DTIM_PERIOD for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_DISCONNECT GRP_WLD_IOCTL_SET_FUNCTION + 0x0073 /*!< The function code of WID_DISCONNECT for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_REKEY_PERIOD GRP_WLD_IOCTL_GET_FUNCTION + 0x0074 /*!< The function code of WID_REKEY_PERIOD for getting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_SET_REKEY_PERIOD GRP_WLD_IOCTL_SET_FUNCTION + 0x0074 /*!< The function code of WID_REKEY_PERIOD for setting. The parameter type is "grp_u32". */
+#define GRP_WLD_IOCTL_GET_WPS_PASS_ID GRP_WLD_IOCTL_GET_FUNCTION + 0x0075 /*!< The function code of WID_WPS_PASS_ID for getting. The parameter type is "grp_u16". */
+#define GRP_WLD_IOCTL_SET_WPS_PASS_ID GRP_WLD_IOCTL_SET_FUNCTION + 0x0075 /*!< The function code of WID_WPS_PASS_ID for setting. The parameter type is "grp_u16". */
+#define GRP_WLD_IOCTL_GET_REKEY_POLICY GRP_WLD_IOCTL_GET_FUNCTION + 0x0076 /*!< The function code of WID_REKEY_POLICY for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_REKEY_POLICY GRP_WLD_IOCTL_SET_FUNCTION + 0x0076 /*!< The function code of WID_REKEY_POLICY for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_CONNECTED_STA_LIST GRP_WLD_IOCTL_GET_FUNCTION + 0x0077 /*!< The function code of WID_CONNECTED_STA_LIST for getting. The parameter type is "grp_wld_connected_sta_list_info". */
+
+#define GRP_WLD_IOCTL_SET_JOIN_REQUEST GRP_WLD_IOCTL_SET_FUNCTION + 0x0902 /*!< The function code of WID_JOIN_REQ for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_START_SCAN_REQ GRP_WLD_IOCTL_SET_FUNCTION + 0x0905 /*!< The function code of WID_START_SCAN_REQ for setting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_CHECK_SCAN_END GRP_WLD_IOCTL_GET_FUNCTION + 0x0906 /*!< The function code of WID_START_SCAN_REQ for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_GET_SITE_SURVEY GRP_WLD_IOCTL_GET_FUNCTION + 0x0907 /*!< The function code of WID_SITE_SURVEY for getting. The parameter type is "grp_u8". */
+#define GRP_WLD_IOCTL_SET_SITE_SURVEY GRP_WLD_IOCTL_SET_FUNCTION + 0x0907 /*!< The function code of WID_SITE_SURVEY for setting. The parameter type is "grp_u8". */
+/*@}*/
+
+/**** STRUCTURE DEFINES *************************************************************************/
+
+/** Byte array structure
+ *
+ */
+typedef struct GRP_WLD_BYTE_ARRAY_T { /* Byte array structure */
+ grp_u32 ulSize; /*!< Array size */
+ grp_u8 *pucData; /*!< Byte array buffer pointer */
+} grp_wld_byte_array;
+
+/** Device strings structure
+ *
+ */
+typedef struct GRP_WLD_DEV_STRINGS_T { /* Device strings structure */
+ grp_u32 ulFirmwareVersionSize; /*!< buffer size */
+ grp_u8 *pucFirmwareVersionBuf; /*!< buffer pointer */
+ grp_u32 ulSerialNumberSize; /*!< buffer size */
+ grp_u8 *pucSerialNumberBuf; /*!< buffer pointer */
+} grp_wld_dev_strings;
+
+/** Site survey result structure
+ *
+ */
+typedef struct GRP_WLD_SITE_SURVEY_RESULT_T { /* Site survey result structure */
+ grp_u8 aucSsid[GRP_WLD_SSID_SIZE + 1]; /*!< SSID */
+ grp_u8 ucBssType; /*!< BSS type */
+ grp_u8 ucChannel; /*!< Channel */
+ grp_u8 ucSecurity; /*!< Security */
+ grp_u8 aucBssid[GRP_WLD_BSSID_SIZE]; /*!< BSSID */
+ grp_u8 ucRxPower; /*!< Rx power */
+} grp_wld_site_survey_result;
+
+/** Site survey result array structure
+ *
+ */
+typedef struct GRP_WLD_SITE_SURVEY_RESULT_ARRAY_T { /* Site survey result array structure */
+ grp_si iCnt; /*!< Valid data count */
+ grp_wld_site_survey_result atResult[GRP_WLD_IOCTL_SITE_SURVEY_RESULT_MAX]; /*!< result */
+} grp_wld_site_survey_result_array;
+
+/** WPS cred list structure
+ *
+ */
+typedef struct GRP_WLD_WPS_CRED_T { /* WPS cred list structure */
+ grp_u8 aucSSID[GRP_WLD_SSID_SIZE+1]; /*!< SSID */
+ grp_u8 ucAuthType; /*!< auth type */
+ grp_u8 uc11imode; /*!< 11i mode */
+ grp_u8 ucWEPKeyId; /*!< WEP key ID */
+ grp_u8 aucWEPKey[GRP_WLD_WEP_KEY_SIZE_128+1]; /*!< WEP key value */
+ grp_u8 ucWEPKeyLen; /*!< WEP key length */
+ grp_u8 aucPSK[64+1]; /*!< PSK */
+ grp_u8 ucPSKLen; /*!< PSK Length */
+ grp_u8 aucBSSID[GRP_WLD_BSSID_SIZE]; /*!< BSSID */
+} grp_wld_wps_cred;
+
+/** WPS cred list structure
+ *
+ */
+typedef struct GRP_WLD_WPS_CRED_LIST_T { /* WPS cred list structure */
+ grp_si iNum; /*!< Cred info number */
+ grp_wld_wps_cred *ptCredBuf; /*!< Cred info buffer */
+} grp_wld_wps_cred_list;
+
+/** STA join information
+ *
+ */
+typedef struct GRP_WLD_STA_JOIN_INFO_T { /* STA join information */
+ grp_u8 ucAID; /*!< Association ID lower 8bit */
+ grp_u8 ucSTAType; /*!< STA type */
+ grp_u8 uc11gInfo; /*!< 11g information */
+ grp_u8 ucSecInfo; /*!< Security information */
+ grp_u16 usWMMInfo; /*!< WMM information */
+ grp_u16 us11nInfo; /*!< 11N information */
+ grp_u8 aucMacAddress[GRP_WLD_MAC_ADDRESS_SIZE];
+ /*!< MAC address */
+} grp_wld_sta_join_info;
+
+/** Connected Sta list information
+ *
+ */
+typedef struct GRP_WLD_CONNECTED_STA_LIST_INFO_T { /* Connected Sta list information */
+ grp_si iNum; /*!< Connected sta info number */
+ grp_wld_sta_join_info *ptCnctStaBuf; /*!< Connected sta info buffer */
+} grp_wld_connected_sta_list_info;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _WLANBP3595_H_ */
Binary file WlanBP3595AP.ar has changed
