[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200804301734.11804.IvDoorn@gmail.com>
Date: Wed, 30 Apr 2008 17:34:10 +0200
From: Ivo van Doorn <ivdoorn@...il.com>
To: Johannes Berg <johannes@...solutions.net>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
Ron Rindjunsky <ron.rindjunsky@...el.com>,
Tomas Winkler <tomasw@...il.com>,
Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>
Subject: Re: [RFC/RFT 4/4] mac80211: use multi-queue master netdevice
Hi,
Don't want to spoil the fun, but the following part doesn't compile
when CONFIG_MAC80211_QOS is not set.
In the following occurences struct ieee80211_local *local needs to be defined.
> void ieee80211_start_queues(struct ieee80211_hw *hw)
> {
> - struct ieee80211_local *local = hw_to_local(hw);
> +#ifdef CONFIG_MAC80211_QOS
> int i;
>
> - for (i = 0; i < local->hw.queues; i++)
> - clear_bit(IEEE80211_LINK_STATE_XOFF, &local->state[i]);
> - if (!ieee80211_qdisc_installed(local->mdev))
> - netif_start_queue(local->mdev);
> + for (i = 0; i < hw->queues; i++)
> + ieee80211_start_queue(hw, i);
> +#else
struct ieee80211_local *local = hw_to_local(hw);
> + netif_start_queue(local->mdev);
> +#endif
> }
> EXPORT_SYMBOL(ieee80211_start_queues);
>
> void ieee80211_stop_queues(struct ieee80211_hw *hw)
> {
> +#ifdef CONFIG_MAC80211_QOS
> int i;
>
> for (i = 0; i < hw->queues; i++)
> ieee80211_stop_queue(hw, i);
> +#else
struct ieee80211_local *local = hw_to_local(hw);
> + netif_stop_queue(local->mdev);
> +#endif
> }
> EXPORT_SYMBOL(ieee80211_stop_queues);
>
> void ieee80211_wake_queues(struct ieee80211_hw *hw)
> {
> +#ifdef CONFIG_MAC80211_QOS
> int i;
>
> for (i = 0; i < hw->queues; i++)
> ieee80211_wake_queue(hw, i);
> +#else
struct ieee80211_local *local = hw_to_local(hw);
> + netif_wake_queue(local->mdev);
> +#endif
> }
> EXPORT_SYMBOL(ieee80211_wake_queues);
Ivo
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists