Restart NFCC is a CORE_GENERIC_ERROR_NTF 0xE1 is received.

When a core reset error notification with error 0xE1 meaning buffer
overflow is received, restart the CLF.
for that purpose, a CORE_RESET_NTF is created by the HAL to send to the
upper layer to restart properly the stack.

Bug: 195540580
Test: manual
Change-Id: I1dacbb30bbbd80c48d07272807390e28aeed4eb3
diff --git a/st21nfc/hal_wrapper.cc b/st21nfc/hal_wrapper.cc
index faf1800..6e07540 100644
--- a/st21nfc/hal_wrapper.cc
+++ b/st21nfc/hal_wrapper.cc
@@ -488,6 +488,16 @@
             HalSendDownstreamStopTimer(mHalHandle);
             mTimerStarted = false;
           }
+        } else if ((p_data[0] == 0x60) && (p_data[1] == 0x07) && (p_data[3] == 0xE1)) {
+          // Core Generic Error - Buffer Overflow Ntf - Restart all
+          STLOG_HAL_E("Core Generic Error - restart");
+          p_data[0] = 0x60;
+          p_data[1] = 0x00;
+          p_data[2] = 0x03;
+          p_data[3] = 0xE1;
+          p_data[4] = 0x00;
+          p_data[5] = 0x00;
+          data_len = 0x6;
         }
         mHalWrapperDataCallback(data_len, p_data);
       } else {