# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/umac/src/scanu/scanu.c File Reference

Definition of the Template module environment. More...

`#include "co_endian.h"`
`#include "co_utils.h"`
`#include "scanu.h"`
`#include "scanu_task.h"`
`#include "co_status.h"`
`#include "mac_frame.h"`
`#include "me_mgmtframe.h"`
`#include "me_utils.h"`
`#include "scan_task.h"`
`#include "rxu_task.h"`
`#include "me.h"`
`#include "mac_ie.h"`
`#include "vif_mgmt.h"`
`#include "tpc.h"`
`#include "p2p.h"`

Go to the source code of this file.

## Functions
static uint32_t | scanu_build_ie (void)
| Build the probe request IE.
static void | scanu_dma_cb (void *env, int dma_type)
| DMA callback, called upon download of the scan information elements to be added to the ProbeReq.
static void | scanu_ie_download (void)
| Prepare the download of the additional IEs.
static void | scanu_get_security_info (uint32_t ies, uint16_t ies_len, uint16_t capa, struct mac_scan_result *res)
| Parse security info from provided Elements.
static bool | scanu_new_bssid_set (struct scanu_mbssid_profile_tag *mbssid, uint8_t max_bss_ind, struct mac_scan_result const *res)
| Allocate a scan database element and copy the information about the nonTransmitted BSSID.
static void | scanu_store_multi_bssid_info (struct mac_scan_result const *res)
| Store the found nonTransmitted BSSIDs into the scan data base.
static void | scanu_get_multi_bssid_info (uint32_t ies, uint16_t ies_len)
| Parse potential multiple BSSID elements within the Beacon/ProbeRsp.
static bool | scanu_is_scanned_ssid (struct mac_ssid *ssid)
| Check if the SSID passed as parameter (retrieved from the beacon or probe response) matches one of the SSIDs we are scanning for.
static bool | scanu_check_ssid (struct mac_scan_result *res)
| Go through the SSIDs found in the Beacon/ProbeRsp and check if one is matching the SSIDs we are looking for.
static int | scanu_join_frame_handler (struct rxu_mgt_ind const *frame)
| Handle the reception of a beacon or probe response frame when such a frame is received during the joining process.
static int | scanu_scan_frame_handler (struct rxu_mgt_ind const *frame)
| Handle the reception of a beacon or probe response frame when such a frame is received during the scanning process.
void | scanu_confirm (uint8_t status)
| Send the appropriate confirmation to the source task.
void | scanu_init (void)
| Initialize the SCAN environment and task.
int | scanu_frame_handler (struct rxu_mgt_ind const *frame)
| Handle the reception of a beacon or probe response frame.
struct mac_scan_result * | scanu_find_result (struct mac_addr const *bssid_ptr, bool allocate)
| Look for a given BSS in the scan results and returns its parameters.
struct mac_scan_result * | scanu_search_by_bssid (struct mac_addr const *bssid)
| Look for a given BSS from its BSSID.
struct mac_scan_result * | scanu_search_by_ssid (struct mac_ssid const *ssid)
| Look for a given BSS from its SSID.
void | scanu_start (void)
| Start scanning process.
void | scanu_scan_next (void)
| Send a scan request to LMAC for the next band to scan.
## Variables
struct scanu_env_tag | scanu_env
| SCAN module environment definition.

## Detailed Description

Definition of the Template module environment.

Copyright (C) RivieraWaves 2011-2019

Definition in file scanu.c.