Fix bugs related to SE+P2P co-exisitance.

Source: Patrice @ NXP

Change-Id: I9437a2c2798ffe7ea34f3f18df097d0036310568
diff --git a/src/phLibNfc_SE.c b/src/phLibNfc_SE.c
index 2361a87..42334d8 100644
--- a/src/phLibNfc_SE.c
+++ b/src/phLibNfc_SE.c
@@ -172,12 +172,18 @@
                 {
                     case NFC_EVT_TRANSACTION:
                     {
-                        if(pEvtInfo->eventInfo.aid.length != 0)
+                        if((pEvtInfo->eventInfo.aid.length != 0) && ((pEvtInfo->eventInfo.aid.length <= 16)))  // PLG
                         {
                             /*copy the Application id on which transaction happened*/                        
 							Se_Trans_Info.UiccEvtInfo.aid.buffer =pEvtInfo->eventInfo.aid.buffer;
 							Se_Trans_Info.UiccEvtInfo.aid.length =pEvtInfo->eventInfo.aid.length;
                         }
+						else
+						{
+							// PLG patch
+                            Se_Trans_Info.UiccEvtInfo.aid.buffer = NULL;
+							Se_Trans_Info.UiccEvtInfo.aid.length = 0;
+						}
 						if((pEvtInfo->eventHost == phHal_eUICCHost)
                            && (info.psEventInfo->eventInfo.uicc_info.param.length
                                 != 0))
@@ -218,7 +224,16 @@
                             status);
                         break;
                     }	
-                    case NFC_EVT_START_OF_TRANSACTION:
+                    case NFC_EVT_START_OF_TRANSACTION: // PLG ++
+                    
+                    (*pLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb)(
+                            pLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt,
+                            phLibNfc_eSE_EvtTypeTransaction,
+                            pSeInfo->hSecureElement,
+                            &Se_Trans_Info,
+                            status);
+
+                    break; // PLG --
                     default:
                     {
                         break;