In order to fetch the discovered secure elements from an NFC controller, we need to send a netlink command that will dump the list of available SEs from NFC.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -84,6 +84,7 @@ · 83 unmodified lines | ||
| 84 | 84 | * @NFC_EVENT_SE_TRANSACTION: This event is sent when an application running on |
| 85 | 85 | * a specific SE notifies us about the end of a transaction. The parameter |
| 86 | 86 | * for this event is the application ID (AID). |
| 87 | + * @NFC_CMD_GET_SE: Dump all discovered secure elements from an NFC controller. | |
| 87 | 88 | */ |
| 88 | 89 | enum nfc_commands { |
| 89 | 90 | NFC_CMD_UNSPEC, |
| @@ -112,6 +113,7 @@ enum nfc_commands { · 22 unmodified lines | ||
| 112 | 113 | NFC_EVENT_SE_REMOVED, |
| 113 | 114 | NFC_EVENT_SE_CONNECTIVITY, |
| 114 | 115 | NFC_EVENT_SE_TRANSACTION, |
| 116 | + NFC_CMD_GET_SE, | |
| 115 | 117 | /* private: internal use only */ |
| 116 | 118 | __NFC_CMD_AFTER_LAST |
| 117 | 119 | }; |