Delete Wiegand configuration in firmware.
 * Add Wiegand configuration in the lib.
 * Fix malloc bug