diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-12-23 07:15:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:54:49 -0500 |
commit | 9607e6b66a0d25ca63b70d54a4283fa13d8f7c9d (patch) | |
tree | 706cb2c2db2df69fa446eb3848b27107b67f2d25 /net/mac80211/ieee80211_i.h | |
parent | d30506e0357e5448c7d38bb3739c451dbe4c174e (diff) |
mac80211: add ieee80211_sdata_running
Instead of always using netif_running(sdata->dev)
use ieee80211_sdata_running(sdata) now which is
just an inline containing netif_running() for now.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 88b0ba6c7484..adeae03c26a3 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -960,6 +960,11 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local); | |||
960 | u32 __ieee80211_recalc_idle(struct ieee80211_local *local); | 960 | u32 __ieee80211_recalc_idle(struct ieee80211_local *local); |
961 | void ieee80211_recalc_idle(struct ieee80211_local *local); | 961 | void ieee80211_recalc_idle(struct ieee80211_local *local); |
962 | 962 | ||
963 | static inline bool ieee80211_sdata_running(struct ieee80211_sub_if_data *sdata) | ||
964 | { | ||
965 | return netif_running(sdata->dev); | ||
966 | } | ||
967 | |||
963 | /* tx handling */ | 968 | /* tx handling */ |
964 | void ieee80211_clear_tx_pending(struct ieee80211_local *local); | 969 | void ieee80211_clear_tx_pending(struct ieee80211_local *local); |
965 | void ieee80211_tx_pending(unsigned long data); | 970 | void ieee80211_tx_pending(unsigned long data); |