n_gsm: fix UIH control byte : P bit should be 0
authorEric Bénard <eric@eukrea.com>
Wed, 9 Mar 2011 18:24:49 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Mar 2011 23:43:39 +0000 (15:43 -0800)
commited43b47b29bce303f86e1bff69b6f9924f5afcc4
treeb0cbbd2a75c33605c0d84cd442f0d577bc8e3616
parent323e84122ec6447a5a18de42b0dc7114f77e76c4
n_gsm: fix UIH control byte : P bit should be 0

* the GSM 07.10 specification says in 5.4.3.1 that
'both stations shall set the P bit to 0'
  thanks to Alan Cox for finding this explanation in the spec

* without this fix, on Telit & Sim.com modems, opening a new DLC
randomly fails. Not setting PF bit of the control byte gives a
reliable behaviour on these modems.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/n_gsm.c