From e9aa24cfadec8a921f1ca107c9f70c2b5c2599e8 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Thu, 12 Mar 2009 23:49:28 +0100 Subject: [PATCH] --- yaml --- r: 136111 b: refs/heads/master c: 176be728ee7d32cfd33702d82c0733e51f66ab5b h: refs/heads/master i: 136109: fc75b636e3ccdd1a62a353b628db89903de60b20 136107: c281284b501e05118d3330784f220e9b707becb4 136103: 518320618aadb9cad594a4ae4892a30869261a57 136095: dad818d595b2bedfa00e4823a871f316c3e447c9 v: v3 --- [refs] | 2 +- trunk/include/net/mac80211.h | 5 ----- trunk/net/mac80211/mlme.c | 2 +- trunk/net/mac80211/tx.c | 7 +++---- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index b52c47422790..294da777a020 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 14587ce2a8898de959f32dfd505b4871f09930d5 +refs/heads/master: 176be728ee7d32cfd33702d82c0733e51f66ab5b diff --git a/trunk/include/net/mac80211.h b/trunk/include/net/mac80211.h index 12a52efcd0d1..3bfc6c6c8c4a 100644 --- a/trunk/include/net/mac80211.h +++ b/trunk/include/net/mac80211.h @@ -1017,11 +1017,6 @@ static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr) memcpy(hw->wiphy->perm_addr, addr, ETH_ALEN); } -static inline int ieee80211_num_regular_queues(struct ieee80211_hw *hw) -{ - return hw->queues; -} - static inline struct ieee80211_rate * ieee80211_get_tx_rate(const struct ieee80211_hw *hw, const struct ieee80211_tx_info *c) diff --git a/trunk/net/mac80211/mlme.c b/trunk/net/mac80211/mlme.c index 841b8450b3de..aaf7793583a7 100644 --- a/trunk/net/mac80211/mlme.c +++ b/trunk/net/mac80211/mlme.c @@ -1834,7 +1834,7 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) ifmgd->flags |= IEEE80211_STA_CREATE_IBSS | IEEE80211_STA_AUTO_BSSID_SEL | IEEE80211_STA_AUTO_CHANNEL_SEL; - if (ieee80211_num_regular_queues(&sdata->local->hw) >= 4) + if (sdata->local->hw.queues >= 4) ifmgd->flags |= IEEE80211_STA_WMM_ENABLED; } diff --git a/trunk/net/mac80211/tx.c b/trunk/net/mac80211/tx.c index 457238a2f3fc..038460b0a48a 100644 --- a/trunk/net/mac80211/tx.c +++ b/trunk/net/mac80211/tx.c @@ -1666,8 +1666,7 @@ int ieee80211_subif_start_xmit(struct sk_buff *skb, } /* receiver and we are QoS enabled, use a QoS type frame */ - if (sta_flags & WLAN_STA_WME && - ieee80211_num_regular_queues(&local->hw) >= 4) { + if ((sta_flags & WLAN_STA_WME) && local->hw.queues >= 4) { fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); hdrlen += 2; } @@ -1802,7 +1801,7 @@ void ieee80211_clear_tx_pending(struct ieee80211_local *local) int i, j; struct ieee80211_tx_stored_packet *store; - for (i = 0; i < ieee80211_num_regular_queues(&local->hw); i++) { + for (i = 0; i < local->hw.queues; i++) { if (!test_bit(i, local->queues_pending)) continue; store = &local->pending_packet[i]; @@ -1827,7 +1826,7 @@ void ieee80211_tx_pending(unsigned long data) int i, ret; netif_tx_lock_bh(dev); - for (i = 0; i < ieee80211_num_regular_queues(&local->hw); i++) { + for (i = 0; i < local->hw.queues; i++) { /* Check that this queue is ok */ if (__netif_subqueue_stopped(local->mdev, i) && !test_bit(i, local->queues_pending_run))