Explorar o código

NFC: SN is not an invalid GT value

We just don't do anything with it when parsing the general bytes.
We handle it from the CONNECT reception code.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Samuel Ortiz %!s(int64=14) %!d(string=hai) anos
pai
achega
9dda50f4c9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      net/nfc/llcp/commands.c

+ 2 - 0
net/nfc/llcp/commands.c

@@ -152,6 +152,8 @@ int nfc_llcp_parse_tlv(struct nfc_llcp_local *local,
 		case LLCP_TLV_RW:
 			local->remote_rw = llcp_tlv_rw(tlv);
 			break;
+		case LLCP_TLV_SN:
+			break;
 		default:
 			pr_err("Invalid gt tlv value 0x%x\n", type);
 			break;