mbim-port: no longer needed to request next transaction ID
Already handled by the MbimDevice if none given.
This commit is contained in:
@@ -178,9 +178,7 @@ modem_load_current_capabilities (MMIfaceModem *self,
|
|||||||
modem_load_current_capabilities);
|
modem_load_current_capabilities);
|
||||||
|
|
||||||
mm_dbg ("loading current capabilities...");
|
mm_dbg ("loading current capabilities...");
|
||||||
message = (mbim_message_basic_connect_device_caps_query_request_new (
|
message = (mbim_message_basic_connect_device_caps_query_request_new (NULL));
|
||||||
mbim_device_get_next_transaction_id (device),
|
|
||||||
NULL));
|
|
||||||
mbim_device_command (device,
|
mbim_device_command (device,
|
||||||
message,
|
message,
|
||||||
10,
|
10,
|
||||||
@@ -449,9 +447,7 @@ modem_load_unlock_required (MMIfaceModem *self,
|
|||||||
modem_load_unlock_required);
|
modem_load_unlock_required);
|
||||||
|
|
||||||
mm_dbg ("loading unlock required...");
|
mm_dbg ("loading unlock required...");
|
||||||
message = (mbim_message_basic_connect_pin_query_request_new (
|
message = (mbim_message_basic_connect_pin_query_request_new (NULL));
|
||||||
mbim_device_get_next_transaction_id (device),
|
|
||||||
NULL));
|
|
||||||
mbim_device_command (device,
|
mbim_device_command (device,
|
||||||
message,
|
message,
|
||||||
10,
|
10,
|
||||||
@@ -584,9 +580,7 @@ modem_load_power_state (MMIfaceModem *self,
|
|||||||
user_data,
|
user_data,
|
||||||
modem_load_power_state);
|
modem_load_power_state);
|
||||||
|
|
||||||
message = (mbim_message_basic_connect_radio_state_query_request_new (
|
message = (mbim_message_basic_connect_radio_state_query_request_new (NULL));
|
||||||
mbim_device_get_next_transaction_id (device),
|
|
||||||
NULL));
|
|
||||||
mbim_device_command (device,
|
mbim_device_command (device,
|
||||||
message,
|
message,
|
||||||
10,
|
10,
|
||||||
|
@@ -31,16 +31,6 @@ struct _MMMbimPortPrivate {
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
guint32
|
|
||||||
mm_mbim_port_get_next_transaction_id (MMMbimPort *self)
|
|
||||||
{
|
|
||||||
return (self->priv->mbim_device ?
|
|
||||||
mbim_device_get_next_transaction_id (self->priv->mbim_device) :
|
|
||||||
0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
MMMbimPort *self;
|
MMMbimPort *self;
|
||||||
GSimpleAsyncResult *result;
|
GSimpleAsyncResult *result;
|
||||||
|
@@ -58,8 +58,6 @@ gboolean mm_mbim_port_open_finish (MMMbimPort *self,
|
|||||||
gboolean mm_mbim_port_is_open (MMMbimPort *self);
|
gboolean mm_mbim_port_is_open (MMMbimPort *self);
|
||||||
void mm_mbim_port_close (MMMbimPort *self);
|
void mm_mbim_port_close (MMMbimPort *self);
|
||||||
|
|
||||||
guint32 mm_mbim_port_get_next_transaction_id (MMMbimPort *self);
|
|
||||||
|
|
||||||
MbimDevice *mm_mbim_port_peek_device (MMMbimPort *self);
|
MbimDevice *mm_mbim_port_peek_device (MMMbimPort *self);
|
||||||
|
|
||||||
#endif /* MM_MBIM_PORT_H */
|
#endif /* MM_MBIM_PORT_H */
|
||||||
|
@@ -127,7 +127,6 @@ send_pin (MMSim *self,
|
|||||||
|
|
||||||
mm_dbg ("Sending PIN...");
|
mm_dbg ("Sending PIN...");
|
||||||
message = (mbim_message_basic_connect_pin_set_request_new (
|
message = (mbim_message_basic_connect_pin_set_request_new (
|
||||||
mbim_device_get_next_transaction_id (device),
|
|
||||||
MBIM_PIN_TYPE_PIN1,
|
MBIM_PIN_TYPE_PIN1,
|
||||||
MBIM_PIN_OPERATION_ENTER,
|
MBIM_PIN_OPERATION_ENTER,
|
||||||
pin,
|
pin,
|
||||||
|
Reference in New Issue
Block a user