From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: add driver ops debugging
Date: Sat, 28 Mar 2009 13:12:45 +0200 [thread overview]
Message-ID: <20090328111245.GA13041@jm.kir.nu> (raw)
In-Reply-To: <1238066858.4331.30.camel@johannes.local>
On Thu, Mar 26, 2009 at 12:27:38PM +0100, Johannes Berg wrote:
> This patch adds (optional) debugging for each driver call
> (except tx) that can print out the call, its parameters and
> the return value from the driver.
... and breaks return value from many of the operations.. ;-)
> +++ wireless-testing/net/mac80211/driver-ops.h 2009-03-26 12:23:17.000000000 +0100
> +static inline int drv_config_interface(struct ieee80211_local *local,
> + struct ieee80211_vif *vif,
> + struct ieee80211_if_conf *conf)
> +{
> + int ret = 0;
> + if (local->ops->config_interface)
> + local->ops->config_interface(&local->hw, vif, conf);
> + dbg_config_interface(local, vif, conf, ret);
> + return ret;
> +}
ret not updated from the actual call..
> +static inline int drv_set_rts_threshold(struct ieee80211_local *local,
> + u32 value)
> +{
> + int ret = 0;
> + if (local->ops->set_rts_threshold)
> + local->ops->set_rts_threshold(&local->hw, value);
> + dbg_set_rts_threshold(local, value, ret);
> + return ret;
> +}
same here
> +static inline int drv_conf_tx(struct ieee80211_local *local, u16 queue,
> + const struct ieee80211_tx_queue_params *params)
> +{
> + int ret = -EOPNOTSUPP;
> + if (local->ops->conf_tx)
> + local->ops->conf_tx(&local->hw, queue, params);
> + dbg_conf_tx(local, queue, params, ret);
> + return ret;
> +}
same here (this one with the ampdu one below results in interesting set
of issues ;-)
> +static inline u64 drv_get_tsf(struct ieee80211_local *local)
> +{
> + u64 ret = -1ULL;
> + if (local->ops->get_tsf)
> + local->ops->get_tsf(&local->hw);
> + dbg_get_tsf(local, ret);
> + return ret;
> +}
same here
> +static inline int drv_tx_last_beacon(struct ieee80211_local *local)
> +{
> + int ret = 1;
> + if (local->ops->tx_last_beacon)
> + local->ops->tx_last_beacon(&local->hw);
> + dbg_tx_last_beacon(local, ret);
> + return ret;
> +}
same here
> +static inline int drv_ampdu_action(struct ieee80211_local *local,
> + enum ieee80211_ampdu_mlme_action action,
> + struct ieee80211_sta *sta, u16 tid,
> + u16 *ssn)
> +{
> + int ret = -EOPNOTSUPP;
> + if (local->ops->ampdu_action)
> + local->ops->ampdu_action(&local->hw, action, sta, tid, ssn);
> + dbg_ampdu_action(local, action, sta, tid, ssn, ret);
> + return ret;
> +}
same here
--
Jouni Malinen PGP id EFC895FA
prev parent reply other threads:[~2009-03-28 11:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 11:27 [PATCH] mac80211: add driver ops debugging Johannes Berg
2009-03-26 14:41 ` Bob Copeland
2009-03-26 14:46 ` Johannes Berg
2009-03-26 15:26 ` Bob Copeland
2009-03-26 15:33 ` Johannes Berg
2009-03-26 17:21 ` Luis R. Rodriguez
2009-03-27 9:47 ` Johannes Berg
2009-03-28 11:12 ` Jouni Malinen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090328111245.GA13041@jm.kir.nu \
--to=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).