Skip to content

Commit

Permalink
Enable MRP in WiFi-PAF commissioning
Browse files Browse the repository at this point in the history
Signed-off-by: Lo,Chin-Ran <chin-ran.lo@nxp.com>
  • Loading branch information
crlonxp committed Oct 7, 2024
1 parent 45a68f8 commit c56af30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/transport/SecureSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ class SecureSession : public Session, public ReferenceCounted<SecureSession, Sec

bool IsCommissioningSession() const override;

bool AllowsMRP() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kUdp; }
bool AllowsMRP() const override { return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF)); }

bool AllowsLargePayload() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kTcp; }

Expand Down
3 changes: 2 additions & 1 deletion src/transport/UnauthenticatedSessionTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ class UnauthenticatedSession : public Session, public ReferenceCounted<Unauthent
return Access::SubjectDescriptor(); // return an empty ISD for unauthenticated session.
}

bool AllowsMRP() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kUdp; }
bool AllowsMRP() const override { return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF)); }

bool AllowsLargePayload() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kTcp; }

Expand Down

0 comments on commit c56af30

Please sign in to comment.