mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[IrDA]: Monitor mode.
Through the IrDA netlink set mode command, we switch to IrDA monitor mode, where one IrLAP instance receives all the packets on the media, without ever responding to them. Signed-off-by: Samuel Ortiz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
89da1ecf54
commit
411725280b
2 changed files with 8 additions and 0 deletions
|
|
@ -101,6 +101,13 @@ void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb)
|
|||
|
||||
irlap_insert_info(self, skb);
|
||||
|
||||
if (unlikely(self->mode & IRDA_MODE_MONITOR)) {
|
||||
IRDA_DEBUG(3, "%s(): %s is in monitor mode\n", __FUNCTION__,
|
||||
self->netdev->name);
|
||||
dev_kfree_skb(skb);
|
||||
return;
|
||||
}
|
||||
|
||||
dev_queue_xmit(skb);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue