aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-05-28 09:41:32 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-14 07:45:09 -0400
commitf768b34017cbe6e7690686514f682f076bb1f477 (patch)
treef8911f6260cb92c70d9f384ed12eb49a27c00492 /net
parent2635a4bdfa8d513c531fa7d7a0ccafc1d6a9ff85 (diff)
NFC: llcp: Set the LLC Link Management well known service bit
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>
Diffstat (limited to 'net')
-rw-r--r--net/nfc/llcp_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/nfc/llcp_core.c b/net/nfc/llcp_core.c
index 47746a088f8f..d45bcbbc9f78 100644
--- a/net/nfc/llcp_core.c
+++ b/net/nfc/llcp_core.c
@@ -1590,6 +1590,7 @@ int nfc_llcp_register_device(struct nfc_dev *ndev)
1590 local->lto = 150; /* 1500 ms */ 1590 local->lto = 150; /* 1500 ms */
1591 local->rw = LLCP_MAX_RW; 1591 local->rw = LLCP_MAX_RW;
1592 local->miux = cpu_to_be16(LLCP_MAX_MIUX); 1592 local->miux = cpu_to_be16(LLCP_MAX_MIUX);
1593 local->local_wks = 0x1; /* LLC Link Management */
1593 1594
1594 nfc_llcp_build_gb(local); 1595 nfc_llcp_build_gb(local);
1595 1596