ESP-IDF
g_roaming_app
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
g_roaming_app
g_roaming_app variable
Syntax
Show:
Summary
Declaration
from
roaming_app.c:30
static
struct
roaming_app
g_roaming_app
;
Examples
References
from
examples
Code
Location
Referrer
static
struct
roaming_app
g_roaming_app
;
roaming_app.c:30
g_roaming_app
.
allow_reconnect
=
false
;
roaming_app.c:57
roaming_app_disable_reconnect()
g_roaming_app
.
allow_reconnect
=
true
;
roaming_app.c:63
roaming_app_enable_reconnect()
if
(
(
ap_info
->
rssi
>
ROAMING_LOW_RSSI_THRESHOLD
)
&&
(
g_roaming_app
.
current_low_rssi_threshold
<
ROAMING_LOW_RSSI_THRESHOLD
)
)
{
roaming_app.c:74
roaming_app_get_ap_info()
g_roaming_app
.
current_low_rssi_threshold
=
ROAMING_LOW_RSSI_THRESHOLD
;
roaming_app.c:75
roaming_app_get_ap_info()
if
(
g_roaming_app
.
force_roam_ongoing
)
{
roaming_app.c:111
initialize_roaming_event()
g_roaming_app
.
periodic_rrm_active
=
true
;
roaming_app.c:128
init_periodic_rrm_event()
g_roaming_app
.
periodic_scan_active
=
true
;
roaming_app.c:139
init_periodic_scan_roam_event()
g_roaming_app
.
periodic_rrm_active
=
false
;
roaming_app.c:151
roaming_app_disconnected_event_handler()
g_roaming_app
.
periodic_scan_active
=
false
;
roaming_app.c:155
roaming_app_disconnected_event_handler()
}
else
if
(
g_roaming_app
.
allow_reconnect
==
false
)
{
roaming_app.c:162
roaming_app_disconnected_event_handler()
if
(
g_roaming_app
.
force_roam_ongoing
)
{
roaming_app.c:171
roaming_app_disconnected_event_handler()
g_roaming_app
.
allow_reconnect
=
false
;
roaming_app.c:182
roaming_app_sta_stop_event_handler()
roaming_app_get_ap_info
(
&
g_roaming_app
.
ap_info
)
;
roaming_app.c:189
roaming_app_connected_event_handler()
g_roaming_app
.
scan_params
.
ssid
=
g_roaming_app
.
ap_info
.
ssid
;
roaming_app.c:190
roaming_app_connected_event_handler()
if
(
g_roaming_app
.
ap_info
.
rssi
<
ROAMING_LOW_RSSI_THRESHOLD
)
{
roaming_app.c:191
roaming_app_connected_event_handler()
g_roaming_app
.
current_low_rssi_threshold
=
g_roaming_app
.
ap_info
.
rssi
-
RSSI_THRESHOLD_REDUCTION_OFFSET
;
roaming_app.c:194
roaming_app_connected_event_handler()
g_roaming_app
.
current_low_rssi_threshold
=
ROAMING_LOW_RSSI_THRESHOLD
;
roaming_app.c:196
roaming_app_connected_event_handler()
ESP_LOGD
(
ROAMING_TAG
,
"setting rssi threshold as %d"
,
g_roaming_app
.
current_low_rssi_threshold
)
;
roaming_app.c:198
roaming_app_connected_event_handler()
esp_wifi_set_rssi_threshold
(
g_roaming_app
.
current_low_rssi_threshold
)
;
roaming_app.c:199
roaming_app_connected_event_handler()
g_roaming_app
.
rrm_support
=
esp_rrm_is_rrm_supported_connection
(
)
;
roaming_app.c:201
roaming_app_connected_event_handler()
g_roaming_app
.
btm_support
=
esp_wnm_is_btm_supported_connection
(
)
;
roaming_app.c:202
roaming_app_connected_event_handler()
g_roaming_app
.
rrm_support
?
" "
:
"not "
,
roaming_app.c:204
roaming_app_connected_event_handler()
g_roaming_app
.
btm_support
?
" "
:
"not "
)
;
roaming_app.c:205
roaming_app_connected_event_handler()
gettimeofday
(
&
g_roaming_app
.
last_roamed_time
,
NULL
)
;
roaming_app.c:206
roaming_app_connected_event_handler()
if
(
g_roaming_app
.
rrm_support
)
{
roaming_app.c:209
roaming_app_connected_event_handler()
g_roaming_app
.
force_roam_ongoing
=
true
;
roaming_app.c:221
roaming_app_connected_event_handler()
g_roaming_app
.
allow_reconnect
=
true
;
roaming_app.c:223
roaming_app_connected_event_handler()
if
(
!
g_roaming_app
.
rrm_request_active
)
{
roaming_app.c:326
roaming_app_neighbor_report_recv_handler()
g_roaming_app
.
rrm_request_active
=
false
;
roaming_app.c:330
roaming_app_neighbor_report_recv_handler()
if
(
g_roaming_app
.
btm_neighbor_list
)
{
roaming_app.c:352
roaming_app_neighbor_report_recv_handler()
os_free
(
g_roaming_app
.
btm_neighbor_list
)
;
roaming_app.c:353
roaming_app_neighbor_report_recv_handler()
g_roaming_app
.
btm_neighbor_list
=
NULL
;
roaming_app.c:354
roaming_app_neighbor_report_recv_handler()
g_roaming_app
.
btm_neighbor_list
=
get_btm_neighbor_list
(
pos
+
1
,
report_len
-
1
)
;
roaming_app.c:357
roaming_app_neighbor_report_recv_handler()
roaming_app_get_ap_info
(
&
g_roaming_app
.
ap_info
)
;
roaming_app.c:368
roaming_app_rssi_low_handler()
g_roaming_app
.
current_low_rssi_threshold
-=
RSSI_THRESHOLD_REDUCTION_OFFSET
;
roaming_app.c:370
roaming_app_rssi_low_handler()
ESP_LOGD
(
ROAMING_TAG
,
"Resetting RSSI Threshold to %d"
,
g_roaming_app
.
current_low_rssi_threshold
)
;
roaming_app.c:371
roaming_app_rssi_low_handler()
esp_wifi_set_rssi_threshold
(
g_roaming_app
.
current_low_rssi_threshold
)
;
roaming_app.c:372
roaming_app_rssi_low_handler()
if
(
esp_wnm_send_bss_transition_mgmt_query
(
REASON_RSSI
,
g_roaming_app
.
btm_neighbor_list
,
1
)
<
0
)
{
roaming_app.c:383
trigger_network_assisted_roam()
gettimeofday
(
&
g_roaming_app
.
last_roamed_time
,
NULL
)
;
roaming_app.c:390
trigger_network_assisted_roam()
g_roaming_app
.
btm_attempt
++
;
roaming_app.c:391
trigger_network_assisted_roam()
gettimeofday
(
&
g_roaming_app
.
last_roamed_time
,
NULL
)
;
roaming_app.c:408
trigger_legacy_roam()
g_roaming_app
.
force_roam_ongoing
=
true
;
roaming_app.c:409
trigger_legacy_roam()
if
(
time_diff_sec
(
&
now
,
&
g_roaming_app
.
last_roamed_time
)
<
ROAMING_BACKOFF_TIME
)
{
roaming_app.c:418
roaming_app_trigger_roam()
ESP_LOGD
(
ROAMING_TAG
,
"Ignoring request as time difference to last request is %ld"
,
time_diff_sec
(
&
now
,
&
g_roaming_app
.
last_roamed_time
)
)
;
roaming_app.c:419
roaming_app_trigger_roam()
if
(
g_roaming_app
.
btm_support
)
{
roaming_app.c:423
roaming_app_trigger_roam()
if
(
g_roaming_app
.
btm_attempt
<=
BSS_TM_RETRY_COUNT
)
{
roaming_app.c:425
roaming_app_trigger_roam()
g_roaming_app
.
btm_attempt
=
0
;
roaming_app.c:432
roaming_app_trigger_roam()
roaming_app_get_ap_info
(
&
g_roaming_app
.
ap_info
)
;
roaming_app.c:492
periodic_rrm_request()
if
(
esp_rrm_is_rrm_supported_connection
(
)
&&
(
g_roaming_app
.
ap_info
.
rssi
<
RRM_MONITOR_RSSI_THRESHOLD
)
)
{
roaming_app.c:493
periodic_rrm_request()
g_roaming_app
.
rrm_request_active
=
true
;
roaming_app.c:498
periodic_rrm_request()
wifi_auth_mode_t
curr_auth
=
g_roaming_app
.
ap_info
.
authmode
;
roaming_app.c:505
candidate_security_match()
int8_t
rssi_threshold
=
g_roaming_app
.
current_rssi_threshold
;
roaming_app.c:547
parse_scan_results_and_roam()
for
(
i
=
0
;
i
<
g_roaming_app
.
scanned_aps
.
current_count
;
i
++
)
{
roaming_app.c:555
parse_scan_results_and_roam()
rssi_diff
=
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
.
rssi
-
ap_info
.
rssi
;
roaming_app.c:556
parse_scan_results_and_roam()
MAC2STR
(
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
.
bssid
)
,
MAC2STR
(
ap_info
.
bssid
)
,
roaming_app.c:558
parse_scan_results_and_roam()
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
.
rssi
,
ap_info
.
rssi
,
roaming_app.c:559
parse_scan_results_and_roam()
rssi_diff
,
rssi_threshold
,
best_rssi_diff
,
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
.
authmode
)
;
roaming_app.c:560
parse_scan_results_and_roam()
if
(
(
memcmp
(
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
.
bssid
,
ap_info
.
bssid
,
ETH_ALEN
)
!=
0
)
&&
roaming_app.c:561
parse_scan_results_and_roam()
candidate_profile_match
(
g_roaming_app
.
scanned_aps
.
ap_records
[
i
]
)
&&
rssi_diff
>
best_rssi_diff
)
{
roaming_app.c:562
parse_scan_results_and_roam()
os_memcpy
(
best_ap
->
bssid
,
g_roaming_app
.
scanned_aps
.
ap_records
[
best_ap_index
]
.
bssid
,
ETH_ALEN
)
;
roaming_app.c:573
parse_scan_results_and_roam()
best_ap
->
channel
=
g_roaming_app
.
scanned_aps
.
ap_records
[
best_ap_index
]
.
primary
;
roaming_app.c:574
parse_scan_results_and_roam()
ESP_LOGI
(
ROAMING_TAG
,
"Could not find a better AP with the threshold set to %d"
,
g_roaming_app
.
current_rssi_threshold
+
1
)
;
roaming_app.c:584
parse_scan_results_and_roam()
g_roaming_app
.
scanned_aps
.
current_count
=
MAX_CANDIDATE_COUNT
;
roaming_app.c:593
scan_done_event_handler()
esp_wifi_scan_get_ap_records
(
&
g_roaming_app
.
scanned_aps
.
current_count
,
g_roaming_app
.
scanned_aps
.
ap_records
)
;
roaming_app.c:594
scan_done_event_handler()
print_ap_records
(
&
g_roaming_app
.
scanned_aps
)
;
roaming_app.c:595
scan_done_event_handler()
g_roaming_app
.
scan_ongoing
=
false
;
roaming_app.c:597
scan_done_event_handler()
gettimeofday
(
&
g_roaming_app
.
scanned_aps
.
time
,
NULL
)
;
roaming_app.c:606
conduct_scan()
os_memset
(
&
g_roaming_app
.
scanned_aps
,
0
,
sizeof
(
struct
scanned_ap_info
)
)
;
roaming_app.c:608
conduct_scan()
if
(
esp_wifi_promiscuous_scan_start
(
&
g_roaming_app
.
scan_params
,
scan_done_event_handler
)
<
0
)
{
roaming_app.c:609
conduct_scan()
if
(
!
g_roaming_app
.
scan_ongoing
)
{
roaming_app.c:622
determine_best_ap()
g_roaming_app
.
scan_ongoing
=
true
;
roaming_app.c:623
determine_best_ap()
g_roaming_app
.
current_rssi_threshold
=
rssi_threshold
;
roaming_app.c:624
determine_best_ap()
if
(
time_diff_sec
(
&
now
,
&
g_roaming_app
.
scanned_aps
.
time
)
>
SCAN_RESULTS_USABILITY_WINDOW
)
{
roaming_app.c:625
determine_best_ap()
g_roaming_app
.
scan_ongoing
=
false
;
roaming_app.c:629
determine_best_ap()
}
else
if
(
rssi_threshold
<
g_roaming_app
.
current_rssi_threshold
)
{
roaming_app.c:631
determine_best_ap()
g_roaming_app
.
current_rssi_threshold
=
rssi_threshold
;
roaming_app.c:632
determine_best_ap()
roaming_app_get_ap_info
(
&
g_roaming_app
.
ap_info
)
;
roaming_app.c:652
periodic_scan_roam()
if
(
g_roaming_app
.
ap_info
.
rssi
>
SCAN_MONITOR_RSSI_THRESHOLD
)
{
roaming_app.c:653
periodic_scan_roam()
if
(
g_roaming_app
.
periodic_rrm_active
)
{
roaming_app.c:665
roaming_app_periodic_rrm_internal_handler()
if
(
g_roaming_app
.
periodic_scan_active
)
{
roaming_app.c:682
roaming_app_periodic_scan_internal_handler()
g_roaming_app
.
scan_params
.
channel_bitmap
.
ghz_2_channels
=
0
;
roaming_app.c:739
parse_scan_chan_list()
g_roaming_app
.
scan_params
.
channel_bitmap
.
ghz_2_channels
|=
(
1
<
<
channel
)
;
roaming_app.c:746
parse_scan_chan_list()
g_roaming_app
.
scan_params
.
scan_type
=
0
;
roaming_app.c:776
init_scan_params()
g_roaming_app
.
scan_params
.
scan_time
.
active
.
min
=
SCAN_TIME_MIN_DURATION
;
roaming_app.c:777
init_scan_params()
g_roaming_app
.
scan_params
.
scan_time
.
active
.
max
=
SCAN_TIME_MAX_DURATION
;
roaming_app.c:778
init_scan_params()
g_roaming_app
.
scan_params
.
home_chan_dwell_time
=
HOME_CHANNEL_DWELL_TIME
;
roaming_app.c:779
init_scan_params()
gettimeofday
(
&
g_roaming_app
.
scanned_aps
.
time
,
NULL
)
;
roaming_app.c:780
init_scan_params()
g_roaming_app
.
periodic_rrm_active
=
false
;
roaming_app.c:837
deinit_roaming_app()
g_roaming_app
.
periodic_scan_active
=
false
;
roaming_app.c:841
deinit_roaming_app()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
g_roaming_app
is read by 26 functions:
All items filtered out
g_roaming_app
roaming_app_disable_reconnect()
roaming_app_enable_reconnect()
roaming_app_get_ap_info()
initialize_roaming_event()
init_periodic_rrm_event()
init_periodic_scan_roam_event()
roaming_app_disconnected_event_handler()
roaming_app_sta_stop_event_handler()
roaming_app_connected_event_handler()
roaming_app_neighbor_report_recv_handler()
roaming_app_rssi_low_handler()
trigger_network_assisted_roam()
trigger_legacy_roam()
roaming_app_trigger_roam()
periodic_rrm_request()
candidate_security_match()
parse_scan_results_and_roam()
scan_done_event_handler()
conduct_scan()
determine_best_ap()
periodic_scan_roam()
roaming_app_periodic_rrm_internal_handler()
roaming_app_periodic_scan_internal_handler()
parse_scan_chan_list()
init_scan_params()
deinit_roaming_app()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out