Skip to contentSkip to conversation

mac802154: rx packet handle cleanup

PATCH In review Varka Bhadram 2 participants 2 messages Jun 12, 2015 – Jun 14, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac802154: rx packet handle cleanup

This patch replaces !netif_running(sdata->dev) with !ieee802154_sdata_running(sdata) and also devide the code two separate if branches.

---
 net/mac802154/rx.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
net/mac802154/rx.c +4 -2
index 1bdf980..d93ad2d 100644
@@ -202,8 +202,10 @@ __ieee802154_rx_handle_packet(struct ieee802154_local *local,
 	}
 
 	list_for_each_entry_rcu(sdata, &local->interfaces, list) {
-		if (sdata->wpan_dev.iftype != NL802154_IFTYPE_NODE ||
-		    !netif_running(sdata->dev))
+		if (sdata->wpan_dev.iftype != NL802154_IFTYPE_NODE)
+			continue;
+
+		if (!ieee802154_sdata_running(sdata))
 			continue;
 
 		ieee802154_subif_frame(sdata, skb, &hdr);
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Varka,

Quoted 8 lines

This patch replaces !netif_running(sdata->dev) with !ieee802154_sdata_running(sdata) and also devide the code two separate if branches.

---
net/mac802154/rx.c | 6 ++++--

1 file changed, 4 insertions(+), 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel