nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_modem_wifi_scan.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef NRF_MODEM_WIFI_SCAN_H__
15#define NRF_MODEM_WIFI_SCAN_H__
16
17#include <stdint.h>
18#include <stddef.h>
19#include <nrf_modem_toolchain.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
26#define NRF_MODEM_WIFI_SCAN_MAC_ADDRESS_LEN 6
28#define NRF_MODEM_WIFI_SCAN_SSID_BUF_LEN 33
30#define NRF_MODEM_WIFI_SCAN_RSSI_NOT_MEASURED 0
32#define NRF_MODEM_WIFI_SCAN_WIFI_ALL_CHANNELS 0xFFFF
34#define NRF_MODEM_WIFI_SCAN_TIME_MS_MIN 100
36#define NRF_MODEM_WIFI_SCAN_TIME_DESIRED_MS_DEFAULT 1000
37
59
85
119
131
139#define NRF_MODEM_WIFI_SCAN_ACTIONS_IGNORE_PROBES 0x01
141#define NRF_MODEM_WIFI_SCAN_ACTIONS_IGNORE_LOCAL_ADDR 0x02
152#define NRF_MODEM_WIFI_SCAN_ACTIONS_INCREASE_MAX_GAIN 0x04
157#define NRF_MODEM_WIFI_SCAN_ACTIONS_ENABLE_OFFLINE_PROCESSING 0x08
169 uint32_t actions;
170
179
193
200};
201
211
227
245
260
261#ifdef __cplusplus
262}
263#endif
264
265#endif /* NRF_MODEM_WIFI_SCAN_H__ */
266
int nrf_modem_wifi_scan_event_handler_set(nrf_modem_wifi_scan_event_handler_t handler)
Set the application event handler for Wi-Fi scan events.
nrf_modem_wifi_scan_status
Wi-Fi scan status values.
Definition nrf_modem_wifi_scan.h:41
@ NRF_MODEM_WIFI_SCAN_STATUS_NO_MEMORY
Definition nrf_modem_wifi_scan.h:55
@ NRF_MODEM_WIFI_SCAN_STATUS_INVALID_PARAMS
Definition nrf_modem_wifi_scan.h:45
@ NRF_MODEM_WIFI_SCAN_STATUS_SUCCESS
Definition nrf_modem_wifi_scan.h:43
@ NRF_MODEM_WIFI_SCAN_STATUS_TIMEOUT
Definition nrf_modem_wifi_scan.h:49
@ NRF_MODEM_WIFI_SCAN_STATUS_NOT_ALLOWED
Definition nrf_modem_wifi_scan.h:57
@ NRF_MODEM_WIFI_SCAN_STATUS_ABORTED
Definition nrf_modem_wifi_scan.h:47
@ NRF_MODEM_WIFI_SCAN_STATUS_FAILURE
Definition nrf_modem_wifi_scan.h:51
@ NRF_MODEM_WIFI_SCAN_STATUS_NOT_ACTIVE
Definition nrf_modem_wifi_scan.h:53
int nrf_modem_wifi_scan_cancel(void)
Cancel the ongoing Wi-Fi scan operation.
int nrf_modem_wifi_scan_start(struct nrf_modem_wifi_scan_start_params const *params)
Start Wi-Fi scan operation.
nrf_modem_wifi_scan_event_id
Definition nrf_modem_wifi_scan.h:61
@ NRF_MODEM_WIFI_SCAN_EVT_RESULT
Definition nrf_modem_wifi_scan.h:83
void(* nrf_modem_wifi_scan_event_handler_t)(const struct nrf_modem_wifi_scan_event *evt)
Application handler prototype for Wi-Fi scan events.
Definition nrf_modem_wifi_scan.h:210
#define NRF_MODEM_WIFI_SCAN_MAC_ADDRESS_LEN
Definition nrf_modem_wifi_scan.h:26
#define NRF_MODEM_WIFI_SCAN_SSID_BUF_LEN
Definition nrf_modem_wifi_scan.h:28
struct nrf_modem_wifi_scan_result result
Definition nrf_modem_wifi_scan.h:128
enum nrf_modem_wifi_scan_status status
Definition nrf_modem_wifi_scan.h:125
enum nrf_modem_wifi_scan_event_id id
Definition nrf_modem_wifi_scan.h:123
Wi-Fi scan event.
Definition nrf_modem_wifi_scan.h:121
uint8_t channel
Definition nrf_modem_wifi_scan.h:111
char ssid[33]
Definition nrf_modem_wifi_scan.h:117
bool finished
Definition nrf_modem_wifi_scan.h:96
uint8_t mac_address[6]
Definition nrf_modem_wifi_scan.h:114
int16_t rssi
Definition nrf_modem_wifi_scan.h:104
Data for an NRF_MODEM_WIFI_SCAN_EVT_RESULT event.
Definition nrf_modem_wifi_scan.h:87
uint32_t actions
Definition nrf_modem_wifi_scan.h:169
uint8_t ap_max_count
Definition nrf_modem_wifi_scan.h:199
uint16_t channels_bitmap
Definition nrf_modem_wifi_scan.h:178
uint16_t scan_time_desired_ms
Definition nrf_modem_wifi_scan.h:192
Wi-Fi scan start parameters.
Definition nrf_modem_wifi_scan.h:163