mac802154: tx: remove monitor receive while xmit
authorAlexander Aring <alex.aring@gmail.com>
Mon, 27 Oct 2014 16:13:33 +0000 (17:13 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 27 Oct 2014 17:07:42 +0000 (18:07 +0100)
This removes the call of monitor receive funktion when any interface
type call xmit. There exist no such use case that a monitor interface
should receive the actual sending frame. One use case could be that a
wpan interface and monitor interface could be running at the same time
on one phy. Then the monitor interface receives the wpan frames also.
Furthermore we adding support for promiscous mode setting. With
promiscous mode setting we can't run a wpan and monitor interface at the
same time.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/ieee802154_i.h
net/mac802154/rx.c
net/mac802154/tx.c

index be2f2f6774ae86e47fb2bc69a076ffb9b270ce50..ac907d943bae1fac31e7953d789965efd3596390 100644 (file)
@@ -126,7 +126,6 @@ extern struct ieee802154_mlme_ops mac802154_mlme_wpan;
 int mac802154_slave_open(struct net_device *dev);
 int mac802154_slave_close(struct net_device *dev);
 
-void mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb);
 void mac802154_monitor_setup(struct net_device *dev);
 netdev_tx_t
 ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev);
index d8498c5fc297bbfe698f37ca0150640eea4e5d79..04f3d61719ecfca92cc0eba10127b48602414ec4 100644 (file)
@@ -216,7 +216,8 @@ mac802154_wpans_rx(struct ieee802154_local *local, struct sk_buff *skb)
                kfree_skb(skb);
 }
 
-void mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
+static void
+mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
 {
        struct sk_buff *skb2;
        struct ieee802154_sub_if_data *sdata;
index 31e51e4635e453b9b74fd613a5f6694331597a17..e85767355c482fe2128ad48568af4040c693f2bd 100644 (file)
@@ -82,8 +82,6 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb)
        struct net_device *dev = skb->dev;
        int ret;
 
-       mac802154_monitors_rx(local, skb);
-
        if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
                u16 crc = crc_ccitt(0, skb->data, skb->len);
 
This page took 0.027377 seconds and 5 git commands to generate.