port-serial-at: allow specifying subsystem when creating a 'MMPortSerialAt'

Don't just assume that all AT ports are TTYs.
This commit is contained in:
Aleksander Morgado
2013-11-19 20:24:27 +01:00
parent 9432674087
commit 38ebf7c95b
4 changed files with 19 additions and 6 deletions

View File

@@ -206,7 +206,7 @@ mm_base_modem_grab_port (MMBaseModem *self,
port = MM_PORT (mm_port_serial_qcdm_new (name));
else if (ptype == MM_PORT_TYPE_AT) {
/* AT port */
port = MM_PORT (mm_port_serial_at_new (name));
port = MM_PORT (mm_port_serial_at_new (name, MM_PORT_SUBSYS_TTY));
/* Set common response parser */
mm_port_serial_at_set_response_parser (MM_PORT_SERIAL_AT (port),