Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58960
b: refs/heads/master
c: 4117252
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz authored and David S. Miller committed Jul 11, 2007
1 parent 7dba3fc commit 782d480
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89da1ecf5483e6aa29b456a15ad6d05a6797c5a5
refs/heads/master: 411725280bd0058ebb83c0e32133b7a94902c3a6
1 change: 1 addition & 0 deletions trunk/include/linux/irda.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ enum nl80211_attrs {
/* IrDA modes */
#define IRDA_MODE_PRIMARY 0x1
#define IRDA_MODE_SECONDARY 0x2
#define IRDA_MODE_MONITOR 0x4

#endif /* KERNEL_IRDA_H */

Expand Down
7 changes: 7 additions & 0 deletions trunk/net/irda/irlap_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 782d480

Please sign in to comment.