diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-29 16:34:41 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-29 18:07:46 -0400 |
commit | 20b48120c14fb4bf6ebe4ed4cfa1b828e5e1dff8 (patch) | |
tree | 854ffaf70e18f91f0f3eae8f94f0e26ef6b19200 /net | |
parent | 18460672e0651705ca557c94a369003553c3f9d6 (diff) |
mac802154: rx: monitor receive cleanup
This patch replace the !netif_running(sdata->dev) instead we doing a
!ieee802154_sdata_running(sdata). Also move this in two separate if
branches to compare with mac80211 code.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac802154/rx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 6ba2769f5fb4..971a8553e9b6 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -233,8 +233,10 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) | |||
233 | skb->protocol = htons(ETH_P_IEEE802154); | 233 | skb->protocol = htons(ETH_P_IEEE802154); |
234 | 234 | ||
235 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { | 235 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
236 | if (sdata->type != IEEE802154_DEV_MONITOR || | 236 | if (sdata->type != IEEE802154_DEV_MONITOR) |
237 | !netif_running(sdata->dev)) | 237 | continue; |
238 | |||
239 | if (!ieee802154_sdata_running(sdata)) | ||
238 | continue; | 240 | continue; |
239 | 241 | ||
240 | skb2 = skb_clone(skb, GFP_ATOMIC); | 242 | skb2 = skb_clone(skb, GFP_ATOMIC); |