![Mediatek Labs LinkIt Developer'S Manual Download Page 17](http://html1.mh-extra.com/html/mediatek-labs/linkit/linkit_developers-manual_1760805017.webp)
MediaTek LinkIt™ Development
Platform for RTOS Wi-Fi Developer's
Guide
© 2015 - 2017 MediaTek Inc.
Page 13 of 36
This document contains information that is proprietary to MediaTek Inc. (“MediaTek”) and/or its licensor(s).
Any unauthorized use, reproduction or disclosure of this document in whole or in part is strictly prohibited.
2.2.
Using the Wi-Fi module in AP mode
This section introduces how to initialize and configure the Wi-Fi in AP mode. A wireless AP is a device that allows
wireless devices to connect to a wired network through Wi-Fi or related standards. The AP usually connects to
a router as a standalone device, but it can also be an integral component of the router. An AP is different from a
hotspot, which is the physical space where the wireless service is provided. The development board can be
configured as an AP. There are four authentication and three encryption modes supported on the platform. This
enables 11 combinations of Wi-Fi security modes, as listed below:
•
Open mode
•
WPA_PSK and AES mode
•
WPA_PSK and TKIP mode
•
WPA_PSK and AES+TKIP mode
•
WPA2_PSK and AES mode
•
WPA2_PSK and TKIP mode
•
WPA2_PSK and AES+TKIP mode
•
WPA_PSK_WPA2_PSK and AES mode
•
WPA_PSK_WPA2_PSK and TKIP mode
•
WPA_PSK_WPA2_PSK and AES+TKIP mode
•
WEP Open mode
The supporting APIs to set the platform to AP mode are shown in Table 6.
status =
wifi_connection_register_event_handler(WIFI_EVENT_IOT_DISCONNECTED,
(wifi_event_handler_t) user_event_callback);
status =
wifi_connection_register_event_handler(WIFI_EVENT_IOT_PORT_SECURE,
(wifi_event_handler_t) user_event_callback);
/* Unregister event handler */
status =
wifi_connection_unregister_event_handler(WIFI_EVENT_IOT_CONNECTED,
(wifi_event_handler_t) user_event_callback);
status =
wifi_connection_unregister_event_handler(WIFI_EVENT_IOT_SCAN_COMPLETE,
(wifi_event_handler_t) user_event_callback);
status =
wifi_connection_unregister_event_handler(WIFI_EVENT_IOT_DISCONNECTED,
(wifi_event_handler_t) user_event_callback);
status =
wifi_connection_unregister_event_handler(WIFI_EVENT_IOT_PORT_SECURE,
(wifi_event_handler_t) user_event_callback);