This patch fixes a bug in SNP driver that the Cdb.StatCode should be check with
PXE_STATCODE_SUCCESS instead of EFI_SUCCESS.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
- if (Snp->Cdb.StatCode != EFI_SUCCESS) {\r
+ if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {\r
DEBUG (\r
(EFI_D_NET,\r
"\nSnp->undi.get_status() %xh:%xh\n",\r
DEBUG (\r
(EFI_D_NET,\r
"\nSnp->undi.get_status() %xh:%xh\n",\r
Implementation of managing the multicast receive filters of a network\r
interface.\r
\r
Implementation of managing the multicast receive filters of a network\r
interface.\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available under the \r
terms and conditions of the BSD License which accompanies this distribution. The \r
full text of the license may be found at \r
This program and the accompanying materials are licensed and made available under the \r
terms and conditions of the BSD License which accompanies this distribution. The \r
full text of the license may be found at \r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
- if (Snp->Cdb.StatCode != EFI_SUCCESS) {\r
+ if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
- if (Snp->Cdb.StatCode != EFI_SUCCESS) {\r
+ if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
- if (Snp->Cdb.StatCode != EFI_SUCCESS) {\r
+ if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r
//\r
// UNDI command failed. Return UNDI status to caller.\r
//\r