Skip to content

TizenRT\os\board\bk7239n: Reduce scanning time for scanning multiple APs - #7490

Open
wangyin-aclsemi wants to merge 2 commits into
Samsung:masterfrom
bekencorp:reduce_scan_time
Open

TizenRT\os\board\bk7239n: Reduce scanning time for scanning multiple APs#7490
wangyin-aclsemi wants to merge 2 commits into
Samsung:masterfrom
bekencorp:reduce_scan_time

Conversation

@wangyin-aclsemi

Copy link
Copy Markdown
Contributor

Reduce scanning time for scanning multiple APs

According to Samsung's requirement, when SSIDs are specified and 'scan all' is enabled, perform channel scanning only once to shorten the time consumption. Because of this change, the maximum number of specified SSIDs has been reduced to 5.

Reduce scanning time for scanning multiple APs

According to Samsung's requirement, when SSIDs are specified  and 'scan all' is enabled, perform channel scanning only once to shorten the time consumption.
Because of this change, the maximum number of specified SSIDs has been reduced to 5.
}

if (config->scan_all) {
os_memset(&scan_config, 0, sizeof(wifi_scan_config_t));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate memset; already initialized at line 1214-1215.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For your reference,
Dead code: Lines 731-800 (else branch with ssid_cnt==0) are now unreachable—has_empty_ssid() at line 103-105 delegates to bk_wifi_scan_result_handle() at line 657 first.

@hk-gwak

hk-gwak commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Also it looks like there is a scenario change. Could you take a look at this and apply?

Scenario bk_netmgr base (before PR) bk_netmgr head (after PR) rtk_netmgr
scan_all=true + AP count 0 LWNL_EVT_SCAN_FAILED LWNL_EVT_SCAN_DONE(NULL) (line 589) LWNL_EVT_SCAN_FAILED (line 212)
scan_all=false + AP count 0 LWNL_EVT_SCAN_FAILED LWNL_EVT_SCAN_FAILED (line 1334) LWNL_EVT_SCAN_FAILED (line 212)

Reduce scanning time for scanning multiple APs

According to Samsung's requirement, when SSIDs are specified  and 'scan all' is enabled, perform channel scanning only once to shorten the time consumption.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants