Soft AP Example Application.
- Note
- It is assumed that you have followed the steps in the Getting Started guide and are therefore familiar with how to build, flash, and monitor an application using the MM-IoT-SDK framework.
Definition in file softap.c.
#include <string.h>
#include "mmconfig.h"
#include "mmosal.h"
#include "mmutils.h"
#include "mm_app_common.h"
#include "mm_app_loadconfig.h"
Go to the source code of this file.
◆ _STRINGIFY
| #define _STRINGIFY |
( |
|
x | ) |
#x |
◆ OP_CLASS
Operating Class to use for Soft AP.
This together with S1G_CHANNEL must correspond to a channel in the regulatory database.
Definition at line 87 of file softap.c.
◆ PMF_MODE
◆ PRIMARY_1MHZ_CHANNEL_INDEX
| #define PRIMARY_1MHZ_CHANNEL_INDEX (0) |
Primary 1 MHz Channel Index to use for Soft AP.
Definition at line 112 of file softap.c.
◆ PRIMARY_BW_MHZ
| #define PRIMARY_BW_MHZ (0) |
Primary Bandwidth to use for Soft AP.
Valid values:
Definition at line 107 of file softap.c.
◆ S1G_CHANNEL
S1G Channel to use for Soft AP.
This together with OP_CLASS must correspond to a channel in the regulatory database.
Definition at line 95 of file softap.c.
◆ SAE_PASSPHRASE
| #define SAE_PASSPHRASE 12345678 |
Passphrase of the AP (ignored if security type is not SAE).
(Do not quote; it will be stringified.)
Definition at line 60 of file softap.c.
◆ SECURITY_TYPE
◆ SOFTAP_SSID
| #define SOFTAP_SSID SoftAP |
SSID of the AP.
(Do not quote; it will be stringified.)
Definition at line 54 of file softap.c.
◆ STATIC_GATEWAY
| #define STATIC_GATEWAY "192.168.1.1" |
Statically configured gateway address.
Definition at line 38 of file softap.c.
◆ STATIC_LOCAL_IP
| #define STATIC_LOCAL_IP "192.168.1.1" |
Statically configured IP address.
Definition at line 34 of file softap.c.
◆ STATIC_NETMASK
| #define STATIC_NETMASK "255.255.255.0" |
Statically configured netmask.
Definition at line 42 of file softap.c.
◆ STRINGIFY
Convert the content of the given macro to a string.
Definition at line 119 of file softap.c.
◆ app_init()
Main entry point to the application.
This will be invoked in a thread once operating system and hardware initialization has completed. It may return, but it does not have to.
Definition at line 374 of file softap.c.
◆ handle_softap_sta_status()
Handler for Soft AP STA Status callback.
- Parameters
-
| sta_status | STA status information. |
| arg | Opaque argument that was provided when the callback was registered. |
Definition at line 131 of file softap.c.
◆ load_mmwlan_settings_softap()
| static void load_mmwlan_settings_softap |
( |
void |
| ) |
|
|
static |
Loads various WLAN Soft AP specific settings from config store and applies them.
Definition at line 319 of file softap.c.
◆ load_mmwlan_softap_args()
Loads the provided structure with initialization parameters read from config store.
If a specific parameter is not found then default values are used. Use this function to load defaults before calling mmwlan_softap_enable().
- Parameters
-
Definition at line 177 of file softap.c.
◆ load_softap_mmipal_init_args()
Loads the provided structure with initialization parameters read from config store.
If a specific parameter is not found then default values are used. Use this function to load defaults before calling mmipal_init().
- Note
- This is a Soft AP specific implementation.
- Parameters
-
Definition at line 153 of file softap.c.
◆ opaque_argument_value
| uint32_t opaque_argument_value |
A throw away variable for checking that the opaque argument is correct.
Definition at line 123 of file softap.c.