Commit fa6f80d
committed
fix: cloud: Use correct Wi-Fi AP count for location request
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>1 parent 5941abc commit fa6f80d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments