aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@collabora.com>2016-07-19 11:58:17 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2016-07-19 23:24:49 +0200
commit2a0fe4fe5bf2a6e2277354e7e8f369a20d881891 (patch)
tree79c35f3dc21422ec56ba41e0da9049843272e527 /drivers/net/ethernet/ethoc.c
parentNFC: nfcsim: Add support for sysfs control entry (diff)
downloadlinux-dev-2a0fe4fe5bf2a6e2277354e7e8f369a20d881891.tar.xz
linux-dev-2a0fe4fe5bf2a6e2277354e7e8f369a20d881891.zip
NFC: nfcsim: Simulate lost frames through debugfs entry
This patch allows to simulate the lost of frames exchanged between the 2 nfcsim devices through a control entry in the debugfs and is used as follow: echo n > /sys/kernel/debug/nfcsim/nfcX/dropframe Where n specifies the number of frames to be dropped between 0 and 255 and nfcX is either nfc0 or nfc1, one of the two nfcsim devices. In the following example, the next frame that should be sent by the nfc0 device will be dropped and thus not received by the nfc1 device: echo 1 > /sys/kernel/debug/nfcsim/nfc0/dropframe The value of 0 can be used to reset the dropframe counter. Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/net/ethernet/ethoc.c')
0 files changed, 0 insertions, 0 deletions