NFC: llcp: Set the LLC Link Management well known service bit
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 28 May 2013 13:41:32 +0000 (15:41 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 14 Jun 2013 11:45:09 +0000 (13:45 +0200)
In order to advertise our LLCP support properly and to follow the LLCP
specs requirements, we need to initialize the WKS (Well-Known Services)
bitfield to 1 as SAP 0 is the only mandatory supported service.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp_core.c

index 47746a088f8fca501a9d9b3ca1c67f280c98baf5..d45bcbbc9f7888921b5351e4f75173dbc8cf8c42 100644 (file)
@@ -1590,6 +1590,7 @@ int nfc_llcp_register_device(struct nfc_dev *ndev)
        local->lto = 150; /* 1500 ms */
        local->rw = LLCP_MAX_RW;
        local->miux = cpu_to_be16(LLCP_MAX_MIUX);
+       local->local_wks = 0x1; /* LLC Link Management */
 
        nfc_llcp_build_gb(local);