Daniel Starke e74c048ae4 tty: n_gsm: increase gsm_mux unsupported counted where appropriate
The structure gsm_mux contains the 'unsupported' field. However, there is
currently no place in the code which increases this counter.

Increase the 'unsupported' statistics counter in the following case:
- an unsupported frame type has been requested by the peer via parameter
  negotiation
- a control frame with an unsupported but known command has been received

Note that we have no means to detect an inconsistent/unsupported adaptation
sufficient accuracy as this changes the structure of the UI/UIH frames.
E.g. a one byte header is added in case of convergence layer type 2 instead
of 1 and contains the modem signal octet with the state of the signal
lines. There is no checksum or other value which indicates of this field is
correct or should be present. Therefore, we can only assume protocol
correctness here. See also 'gsm_dlci_data()' where this is handled.

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20230817093231.2317-6-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-22 15:21:24 +02:00
..
2023-08-11 21:12:45 +02:00
2023-08-13 08:50:26 -07:00
2023-06-29 11:00:17 -07:00
2023-08-19 17:31:46 +02:00
2023-08-11 21:12:47 +02:00
2023-06-29 08:09:31 -06:00
2023-07-26 11:47:57 -07:00
2023-08-07 00:01:41 +05:30
2023-07-12 11:56:22 -07:00
2023-08-11 21:12:47 +02:00
2023-07-03 11:26:05 -07:00
2023-08-19 13:13:55 +02:00
2023-07-03 10:55:04 -07:00
2023-08-11 12:14:08 -07:00
2023-06-15 13:42:18 +02:00
2023-08-11 09:39:17 -07:00
2023-07-05 12:55:06 -07:00
2023-07-03 17:03:05 -07:00
2023-06-29 15:22:19 -07:00
2023-07-03 10:43:10 -07:00
2023-08-13 08:43:26 -07:00
2023-07-08 12:35:18 -07:00
2023-06-29 15:22:19 -07:00
2023-06-30 15:22:09 -07:00
2023-07-27 07:53:12 +02:00