uim: add missing extra data for UIM PIN verify request
authorFelix Fietkau <nbd@nbd.name>
Fri, 4 Nov 2016 14:46:06 +0000 (15:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Nov 2016 14:46:06 +0000 (15:46 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
commands-uim.c

index 4c0287ef625930a2188f8fa57234c9e8fd360ee7..859da68e49278e2d6c50141a6becd311bf0506d1 100644 (file)
@@ -24,6 +24,10 @@ static enum qmi_cmd_result
 cmd_uim_verify_pin1_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
 {
        struct qmi_uim_verify_pin_request data = {
+               QMI_INIT_SEQUENCE(session_information,
+                       .session_type = QMI_UIM_SESSION_TYPE_CARD_SLOT_1,
+                       ""
+               ),
                QMI_INIT_SEQUENCE(info,
                        .pin_id = QMI_UIM_PIN_ID_PIN1,
                        .pin_value = arg
@@ -38,6 +42,10 @@ static enum qmi_cmd_result
 cmd_uim_verify_pin2_prepare(struct qmi_dev *qmi, struct qmi_request *req, struct qmi_msg *msg, char *arg)
 {
        struct qmi_uim_verify_pin_request data = {
+               QMI_INIT_SEQUENCE(session_information,
+                       .session_type = QMI_UIM_SESSION_TYPE_CARD_SLOT_1,
+                       ""
+               ),
                QMI_INIT_SEQUENCE(info,
                        .pin_id = QMI_UIM_PIN_ID_PIN2,
                        .pin_value = arg