n_gsm: Fix support for legacy encoding
authorAlan Cox <alan@linux.intel.com>
Thu, 4 Nov 2010 15:17:03 +0000 (15:17 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 11 Nov 2010 19:35:58 +0000 (11:35 -0800)
commitc2f2f0000bb69f067fea12624272e6a58a811702
tree05cfb995864a877c12a1a5bfe4fc2c3eefe99620
parent304e12665a4a7b8b25dfe8c64fa4fd56a04a67ea
n_gsm: Fix support for legacy encoding

The mux supports several encoding schemes. Encoding 0 is a "not
recommended" mode still sometimes used. This has now been tested with
hardware that supports this mode, and found wanting.

Fix the FCS handling in this mode and correct the state machine.

Signed-off-by: Ken Mills <ken.k.mills@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/n_gsm.c