[Make-wifi-fast] [PATCH 1/3] cfg80211: Expose TXQ stats and parameters to userspace
Johannes Berg
johannes at sipsolutions.net
Tue May 8 06:21:01 EDT 2018
On Mon, 2018-02-19 at 18:02 +0100, Toke Høiland-Jørgensen wrote:
> +static int ieee80211_get_txq_stats(struct wiphy *wiphy,
> + struct wireless_dev *wdev,
> + struct cfg80211_txq_stats *txqstats)
> +{
> + struct ieee80211_local *local = wiphy_priv(wiphy);
> + struct ieee80211_sub_if_data *sdata;
> +
> + if (!local->ops->wake_tx_queue)
> + return 1;
> +
> + spin_lock_bh(&local->fq.lock);
> + rcu_read_lock();
> +
> + if (wdev) {
> + sdata = IEEE80211_WDEV_TO_SUB_IF(wdev);
> + if (!sdata->vif.txq)
> + return 1;
here.
btw, it'd be nice to split it into cfg80211 and mac80211 separate
patches.
johannes
More information about the Make-wifi-fast
mailing list