Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: RFCOMM: Handle non supported message types
If peer sends any non supported message then it has to be responded with NSC (Non Supported Command) response. > ACL Data RX: Handle 256 flags 0x02 dlen 18 Channel: 64 len 14 [PSM 3 mode 0] {chan 0} RFCOMM: Unnumbered Info with Header Check (UIH) (0xef) Address: 0x03 cr 1 dlci 0x00 Control: 0xef poll/final 0 Length: 10 FCS: 0x70 MCC Message type: Unknown CMD (0x33) Length: 8 01 22 34 55 67 88 9a bb 70 < ACL Data TX: Handle 256 flags 0x00 dlen 11 Channel: 64 len 7 [PSM 3 mode 0] {chan 0} RFCOMM: Unnumbered Info with Header Check (UIH) (0xef) Address: 0x01 cr 0 dlci 0x00 Control: 0xef poll/final 0 Length: 3 FCS: 0xaa MCC Message type: Non Supported Command RSP (0x04) Length: 1 cr 1, mcc_cmd_type 33 Change-Id: I7be3b64a9cf437276c10868d52e0b9c555018df0 Signed-off-by: Jaganath Kanakkassery <[email protected]>
- Loading branch information