tty: n_gsm: Fixed logic to decode break signal from modem status
authorRuss Gorby <russ.gorby@intel.com>
Tue, 14 Jun 2011 20:23:28 +0000 (13:23 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Jun 2011 19:00:15 +0000 (12:00 -0700)
commit7263287af93db4d5cf324a30546f2143419b7900
treebad1a6d8e473bb30ddd09aeea172b95e7c2b9d6f
parent2872628680bad71a6734e7d379168f990a91cc09
tty: n_gsm: Fixed logic to decode break signal from modem status

The modem status can be one or 2 octets and contains the V.24 signals
and in the 2 octet case also the break signal.
We were improperly decoding the break signal from the modem in the
2 octet case.

Signed-off-by: Russ Gorby <russ.gorby@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/n_gsm.c