channels/smartcard: cleanup packing