Header file for WIFI related activity for provision AP.
Copyright (c) 2018-2020 Atmel Corporation. All rights reserved.
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "malloc.h"
#include "wifi_prov.h"
Functions | |
static void | wifi_cb (uint8 msg_type, void *wifi_msg) |
Callback to get the Wi-Fi status update. More... | |
void | wifi_task (void *argument) |
STA task main function. More... | |
|
static |
Callback to get the Wi-Fi status update.
[in] | msg_type | Type of Wi-Fi notification. |
[in] | wifi_msg | A pointer to a buffer containing the notification parameters. |
References wifi_scan_ap_info::ap_count, wifi_scan_ap_info::ap_val, tstrM2mWifiscanResult::au8SSID, blank_ssid_num, conn_ap, wifi_conn_ap_info::conn_state, M2M_WIFI_CH_ALL, M2M_WIFI_CONNECTED, M2M_WIFI_DISCONNECTED, M2M_WIFI_RESP_CON_STATE_CHANGED, M2M_WIFI_RESP_SCAN_DONE, M2M_WIFI_RESP_SCAN_RESULT, os_m2m_wifi_req_scan_result(), os_m2m_wifi_request_scan(), wifi_ap_detail::rssi_value, tstrM2mWifiscanResult::s8rssi, scan_ap, scan_ap_index, scan_request_index, wifi_ap_detail::security_type, wifi_ap_detail::ssid_len, wifi_ap_detail::ssid_val, tstrM2mWifiscanResult::u8AuthType, tstrM2mWifiStateChanged::u8CurrState, tstrM2mWifiStateChanged::u8ErrCode, tstrM2mScanDone::u8NumofCh, vTaskDelay(), wifi_bt_conn_if_sem, wifi_bt_if_sem, WIFI_CONNECT_FAIL, WIFI_CONNECT_SUCCESS, xSemaphoreGive, and xSemaphoreTake.
Referenced by wifi_task().
void wifi_task | ( | void * | argument | ) |
STA task main function.
References tuniM2MWifiAuth::au8PSK, tstrM2mWifiWepParams::au8WepKey, BT_WIFI_CONNECT, BT_WIFI_SCAN, conn_ap, wifi_conn_ap_info::conn_param, wifi_bt_if_msg_t::id, M2M_SUCCESS, M2M_WIFI_CH_ALL, M2M_WIFI_SEC_OPEN, M2M_WIFI_SEC_WEP, M2M_WIFI_SEC_WPA_PSK, MAIN_WLAN_WEP_AUTH_TYPE, MAIN_WLAN_WEP_KEY_INDEX, msg, net_init(), os_m2m_wifi_connect(), os_m2m_wifi_init(), os_m2m_wifi_request_scan(), param, pdFALSE, tstrWifiInitParam::pfAppWifiCb, tuniM2MWifiAuth::strWepInfo, tstrM2mWifiWepParams::u8KeyIndx, tstrM2mWifiWepParams::u8KeySz, tstrM2mWifiWepParams::u8WepAuthType, wifi_bt_conn_if_sem, wifi_bt_if_queue, wifi_bt_if_sem, WIFI_BT_INIT, wifi_cb(), xQueueCreate, xQueueReceive, xQueueSend, and xSemaphoreTake.
Referenced by main().