Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/board/rtl8730e: fix multi scan ap config count 0 #6601

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZivLow
Copy link
Contributor

@ZivLow ZivLow commented Dec 26, 2024

  • Problem: When scan_ap_config_count is 0, will print "Can't malloc memory for channel list"
  • Root cause: malloc(0) returns NULL
  • Fix: Add check before malloc
  • Add multi scan scenario: If config is not NULL, scan_all is false, scan_ap_config_count is 0, then do not scan

@ZivLow ZivLow marked this pull request as ready for review December 26, 2024 11:19
- Problem: When scan_ap_config_count is 0, will print "Can't malloc memory for channel list"
- Root cause: malloc(0) returns NULL
- Fix: Add check for scan_ap_config_count is not 0
- Add multi scan scenario: If config is not NULL, scan_all is false, scan_ap_config_count is 0, then do not scan
@ZivLow ZivLow force-pushed the ailite_fix_multi_scan_config_count_0 branch from 2ee0d97 to c1e3455 Compare December 27, 2024 09:51
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