MediaTek LinkIt™ Development
Platform for RTOS Wi-Fi Developer's
Guide
© 2015 - 2017 MediaTek Inc.
Page 19 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)
Get the maximum number of stations the AP can support.
Call the
wifi_connection_get_max_sta_number()
function to get the maximum number of stations
supported in AP mode and dual mode.
3)
Register or unregister event handler.
4)
To register or unregister a callback function for an event, call the function
wifi_connection_register_event_handler()
or
wifi_connection_unregister_event_handler()
, respectively. Each event needs to be registered
or unregistered individually. These functions are already described in the station mode, see section 2.1.6,
2.3.
Using the Wi-Fi module in a repeater mode
The repeater provides two virtual ports, one is the AP port, and the other is AP Client Port. The repeater can
connect to the router to get the IP address. Multiple stations can connect to the repeater using the repeater’s SSID
and each station can get IP address from the router. The data packets can transfer between station and router
through the repeater.
Figure 2: Repeater Mode Topology
The STA communicates with the router through the repeater. The repeater should connect to the router first. Then
the stations can get IP address from the router. The remote AP also provides the DHCP server and can assign the IP
address to the stations.
2.3.1.
Features in the repeater mode
The channel and bandwidth use the same settings for both AP Port and AP Client (APCLI) Port. The other settings
are independent, such as MAC address and security mode.
•
The DHCP server is at the remote AP, not at the repeater.
•
The MAC address of the AP and APCLI must be different.
(unsigned int)(list[i].power_save_mode));
printf("bandwidth=%d\n", (unsigned int)(list[i].bandwidth));
printf("keep_alive=%d\n", (unsigned int)(list[i].keep_alive));
}
uint8_t status = 0;
uint8_t number = 0;
status = wifi_connection_get_max_sta_number(&number);
printf("wifi_connect_get_max_station_number_ex: max sta number=%d,
status=%d\n", number, status);
STA1
STA2
Remote
Wireless Router
AP
Virtual Port
AP Client
Virtual
SSID: SSID_1
DHCP Server:
Repeater Mode
DHCP Client On
IP: 192.168.0.3
IP: 192.168.0.4
SSID: SSID_2
DHCP Server
IP: 192.168.0.2
Figure 2. Repeater mode topology