1 /* This program is free software; you can redistribute it and/or modify
2 * it under the terms of the GNU General Public License version 2
3 * as published by the Free Software Foundation.
5 * This program is distributed in the hope that it will be useful,
6 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 * GNU General Public License for more details.
11 * Alexander Aring <aar@pengutronix.de>
13 * Based on: net/mac80211/util.c
16 #include "ieee802154_i.h"
18 void ieee802154_wake_queue(struct ieee802154_hw *hw)
20 struct ieee802154_local *local = hw_to_local(hw);
21 struct ieee802154_sub_if_data *sdata;
24 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
28 netif_wake_queue(sdata->dev);
32 EXPORT_SYMBOL(ieee802154_wake_queue);
34 void ieee802154_stop_queue(struct ieee802154_hw *hw)
36 struct ieee802154_local *local = hw_to_local(hw);
37 struct ieee802154_sub_if_data *sdata;
40 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
44 netif_stop_queue(sdata->dev);
48 EXPORT_SYMBOL(ieee802154_stop_queue);
50 void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb)
52 ieee802154_wake_queue(hw);
55 EXPORT_SYMBOL(ieee802154_xmit_complete);