Skip to content

Commit

Permalink
resolving comments, issue with handing out the pointer(ap.bssid) and …
Browse files Browse the repository at this point in the history
…using an array
  • Loading branch information
chirag-silabs committed Jun 30, 2022
1 parent 9e881a6 commit d9893c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/EFR32/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiBssId(ByteSpan & BssId)
{
wfx_wifi_scan_result_t ap;
int32_t err = wfx_get_ap_info(&ap);
static uint8_t bssid[6];
if (err == 0)
{
BssId = ByteSpan(ap.bssid, 6);
memcpy(bssid,ap.bssid,6);
BssId = ByteSpan(bssid, 6);
return CHIP_NO_ERROR;
}
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
Expand Down

0 comments on commit d9893c8

Please sign in to comment.