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)
 
        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;
 }
 
 
        }
 
        /* 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;
        }
        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];
        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))