From a7a761a1b1fe331a7762ec7c8b24d1da604561c8 Mon Sep 17 00:00:00 2001 From: "Lo,Chin-Ran" Date: Thu, 24 Oct 2024 16:20:26 +0800 Subject: [PATCH] Fix the compile error after rebasing to master branch --- src/transport/raw/WiFiPAF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/raw/WiFiPAF.cpp b/src/transport/raw/WiFiPAF.cpp index 51cb77dcdeb805..990e6aaa494b0d 100644 --- a/src/transport/raw/WiFiPAF.cpp +++ b/src/transport/raw/WiFiPAF.cpp @@ -68,7 +68,7 @@ CHIP_ERROR WiFiPAFBase::Init(const WiFiPAFListenParameters & param) CHIP_ERROR WiFiPAFBase::SendMessage(const Transport::PeerAddress & address, System::PacketBufferHandle && msgBuf) { VerifyOrReturnError(address.GetTransportType() == Type::kWiFiPAF, CHIP_ERROR_INVALID_ARGUMENT); - VerifyOrReturnError(mState != State::kNotReady, CHIP_ERROR_INCORRECT_STATE); + VerifyOrReturnError(mWiFiPAFLayer->GetWiFiPAFState() != chip::WiFiPAF::State::kNotReady, CHIP_ERROR_INCORRECT_STATE); DeviceLayer::ConnectivityMgr().WiFiPAFSend(std::move(msgBuf)); return CHIP_NO_ERROR;