NetIF_WiFi_CreateAP

Create an wireless access point.

Files

net_if_wifi.h/net_if_wifi.c

Prototype

void  NetIF_WiFi_CreateAP    (NET_IF_NBR                  if_nbr,
                              NET_IF_WIFI_NET_TYPE        net_type,
                              NET_IF_WIFI_DATA_RATE       data_rate,
                              NET_IF_WIFI_SECURITY_TYPE   security_type,
                              NET_IF_WIFI_PWR_LEVEL       pwr_level,
                              NET_IF_WIFI_CH              ch,
                              NET_IF_WIFI_SSID            ssid,
                              NET_IF_WIFI_PSK             psk,
                              NET_ERR                    *p_err);

Arguments

if_nbrWireless network interface number.
net_type

Wireless network type:

NET_IF_WIFI_NET_TYPE_INFRASTRUCTURE

NET_IF_WIFI_NET_TYPE_ADHOC

data_rate

Wireless date rate to configure:

NET_IF_WIFI_DATA_RATE_AUTO
NET_IF_WIFI_DATA_RATE_1_MBPS
NET_IF_WIFI_DATA_RATE_2_MBPS
NET_IF_WIFI_DATA_RATE_5_5_MBPS
NET_IF_WIFI_DATA_RATE_6_MBPS
NET_IF_WIFI_DATA_RATE_9_MBPS
NET_IF_WIFI_DATA_RATE_11_MBPS
NET_IF_WIFI_DATA_RATE_12_MBPS
NET_IF_WIFI_DATA_RATE_18_MBPS
NET_IF_WIFI_DATA_RATE_24_MBPS
NET_IF_WIFI_DATA_RATE_36_MBPS
NET_IF_WIFI_DATA_RATE_48_MBPS
NET_IF_WIFI_DATA_RATE_54_MBPS
NET_IF_WIFI_DATA_RATE_MCS0
NET_IF_WIFI_DATA_RATE_MCS1
NET_IF_WIFI_DATA_RATE_MCS2
NET_IF_WIFI_DATA_RATE_MCS3
NET_IF_WIFI_DATA_RATE_MCS4
NET_IF_WIFI_DATA_RATE_MCS5
NET_IF_WIFI_DATA_RATE_MCS6
NET_IF_WIFI_DATA_RATE_MCS7
NET_IF_WIFI_DATA_RATE_MCS8
NET_IF_WIFI_DATA_RATE_MCS9
NET_IF_WIFI_DATA_RATE_MCS10
NET_IF_WIFI_DATA_RATE_MCS11
NET_IF_WIFI_DATA_RATE_MCS12
NET_IF_WIFI_DATA_RATE_MCS13
NET_IF_WIFI_DATA_RATE_MCS14
NET_IF_WIFI_DATA_RATE_MCS15

security_type

Wireless security type:

NET_IF_WIFI_SECURITY_OPEN
NET_IF_WIFI_SECURITY_WEP
NET_IF_WIFI_SECURITY_WPA
NET_IF_WIFI_SECURITY_WPA2

pwr_level

Wireless radio power to configure:

NET_IF_WIFI_PWR_LEVEL_LO
NET_IF_WIFI_PWR_LEVEL_MED
NET_IF_WIFI_PWR_LEVEL_HI

ch 

Wireless channel number of the access point:

NET_IF_WIFI_CH_1
NET_IF_WIFI_CH_2
NET_IF_WIFI_CH_3
NET_IF_WIFI_CH_4
NET_IF_WIFI_CH_5
NET_IF_WIFI_CH_6
NET_IF_WIFI_CH_7
NET_IF_WIFI_CH_8
NET_IF_WIFI_CH_9
NET_IF_WIFI_CH_10
NET_IF_WIFI_CH_11
NET_IF_WIFI_CH_12
NET_IF_WIFI_CH_13
NET_IF_WIFI_CH_14

ssidSSID of the access point to create.
pskPre shared key of the access point.
p_err

Pointer to variable that will receive the return error code from this function:

NET_IF_WIFI_ERR_NONE 
NET_IF_WIFI_ERR_CREATE_ADHOC
NET_IF_WIFI_ERR_INVALID_CH 
NET_IF_WIFI_ERR_INVALID_NET_TYPE 
NET_IF_WIFI_ERR_INVALID_DATA_RATE
NET_IF_WIFI_ERR_INVALID_SECURITY 
NET_IF_WIFI_ERR_INVALID_PWR_LEVEL

Returned Value

None.

Required Configuration

None.

Notes / Warnings

None.