Skip to content

Commit bda2f1e

Browse files
committed
Modified to MutableByteSpan
1 parent 0c2a8ae commit bda2f1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/platform/Tizen/ConnectivityManagerImpl.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,13 @@ CHIP_ERROR ConnectivityManagerImpl::GetWiFiBssId(ByteSpan & value)
259259
CHIP_ERROR err = Internal::WiFiMgr().GetBssId(bssId);
260260
ReturnErrorOnFailure(err);
261261

262-
value = ByteSpan(bssId, 6);
262+
MutableByteSpan mutableByteSpan = MutableByteSpan(bssId, 6);
263+
err = CopySpanToMutableSpan(value, mutableByteSpan);
264+
if (err != CHIP_NO_ERROR)
265+
{
266+
ChipLogProgress(DeviceLayer, "Failed to copy span data");
267+
return err;
268+
}
263269

264270
return CHIP_NO_ERROR;
265271
}

0 commit comments

Comments
 (0)