diff options
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 4df39eb9115f..c80e3be8f79e 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -293,7 +293,7 @@ struct ieee80211_tx_info { | |||
293 | s8 tx_rate_idx; | 293 | s8 tx_rate_idx; |
294 | u8 antenna_sel_tx; | 294 | u8 antenna_sel_tx; |
295 | 295 | ||
296 | u8 queue; /* use skb_queue_mapping soon */ | 296 | /* 1 byte hole */ |
297 | 297 | ||
298 | union { | 298 | union { |
299 | struct { | 299 | struct { |
@@ -802,6 +802,24 @@ static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr) | |||
802 | memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN); | 802 | memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN); |
803 | } | 803 | } |
804 | 804 | ||
805 | static inline int ieee80211_num_regular_queues(struct ieee80211_hw *hw) | ||
806 | { | ||
807 | #ifdef CONFIG_MAC80211_QOS | ||
808 | return hw->queues; | ||
809 | #else | ||
810 | return 1; | ||
811 | #endif | ||
812 | } | ||
813 | |||
814 | static inline int ieee80211_num_queues(struct ieee80211_hw *hw) | ||
815 | { | ||
816 | #ifdef CONFIG_MAC80211_QOS | ||
817 | return hw->queues + hw->ampdu_queues; | ||
818 | #else | ||
819 | return 1; | ||
820 | #endif | ||
821 | } | ||
822 | |||
805 | static inline struct ieee80211_rate * | 823 | static inline struct ieee80211_rate * |
806 | ieee80211_get_tx_rate(const struct ieee80211_hw *hw, | 824 | ieee80211_get_tx_rate(const struct ieee80211_hw *hw, |
807 | const struct ieee80211_tx_info *c) | 825 | const struct ieee80211_tx_info *c) |