Skip to content

fix: cloud: Use correct Wi-Fi AP count for location request#433

Merged
simensrostad merged 1 commit intomainfrom
fixlocationwifiap
Nov 10, 2025
Merged

fix: cloud: Use correct Wi-Fi AP count for location request#433
simensrostad merged 1 commit intomainfrom
fixlocationwifiap

Conversation

@simensrostad
Copy link
Copy Markdown
Contributor

The wifi_ap_data_construct function was incorrectly using the size of the destination buffer instead of the actual number of scanned Wi-Fi access points. This caused uninitialized data with invalid MAC addresses to be sent to nRF Cloud, resulting in a location request failure.

The fix ensures the correct count of scanned APs is used, preventing invalid data from being sent.

The wifi_ap_data_construct function was incorrectly using the size
of the destination buffer instead of the actual number of scanned
Wi-Fi access points. This caused uninitialized data with invalid MAC
addresses to be sent to nRF Cloud, resulting in a location request
failure.

The fix ensures the correct count of scanned APs is used, preventing
invalid data from being sent.

Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
@sonarqubecloud
Copy link
Copy Markdown

@simensrostad simensrostad merged commit fa6f80d into main Nov 10, 2025
4 checks passed
@simensrostad simensrostad deleted the fixlocationwifiap branch November 10, 2025 10:02
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.

1 participant