From: "Pedersen, Thomas" <c_tpeder@qca.qualcomm.com>
To: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: <ath6kl-devel@qualcomm.com>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath6kl: enable enhanced bmiss detection
Date: Mon, 14 May 2012 10:36:21 -0700 [thread overview]
Message-ID: <20120514173621.GA3705@pista> (raw)
In-Reply-To: <4FB0A931.80309@qca.qualcomm.com>
Hi Kalle,
Thanks for your comments, v2 coming shortly.
Thomas
On Mon, May 14, 2012 at 09:41:53AM +0300, Kalle Valo wrote:
> On 05/12/2012 02:14 AM, Thomas Pedersen wrote:
> > Enable enhanced bmiss detection if the firmware supports it. This
> > feature is only enabled on some firmwares since it comes with a power
> > cost.
> >
> > Also add a few missing command ids to keep the enums straight.
> >
> > Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
>
> [...]
>
> > @@ -1512,6 +1513,8 @@ static int ath6kl_cfg80211_change_iface(struct >
> wiphy *wiphy,
> > }
> > }
> >
> > + ath6kl_sta_bmiss_enhance(vif, false);
>
> A comment why you disable the feature is good to have. I'm sure there's
> a good reason :)
>
> > +void ath6kl_sta_bmiss_enhance(struct ath6kl_vif *vif, bool enable)
> > +{
>
> Please cfg80211 prefix, eg. ath6kl_cfg80211_bmiss_enhance() or something
> like that.
>
> > + int err;
> > +
> > + if (WARN_ON(!test_bit(WMI_READY, &vif->ar->flag)))
> > + return;
> > +
> > + if (vif->nw_type == INFRA_NETWORK &&
> > + test_bit(ATH6KL_FW_CAPABILITY_BMISS_ENHANCE,
> > + vif->ar->fw_capabilities)) {
>
> Less indentation:
>
> if (vif->nw_type != INFRA_NETWORK)
> return;
>
> if (!test_bit(ATH6KL_FW_CAPABILITY_BMISS_ENHANCE,
> vif->ar->fw_capabilities))
> return;
>
>
> > + ath6kl_dbg(ATH6KL_DBG_TRC, enable ? "enable fw bmiss enhance\n"
> > + : "");
>
> ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s fw bmiss enhance\n",
> enable ? "enable" : "disable");
>
>
> > + err = ath6kl_wmi_sta_bmiss_enhance_cmd(vif->ar->wmi,
> > + vif->fw_vif_idx, enable);
> > + if (err)
> > + ath6kl_dbg(ATH6KL_DBG_TRC,
> > + "failed to %s enhanced bmiss detection: %d\n",
> > + enable ? "set" : "disable",
> > + err);
>
> Use WLAN_CFG here as well.
>
> Kalle
prev parent reply other threads:[~2012-05-14 17:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 23:14 [PATCH] ath6kl: enable enhanced bmiss detection Thomas Pedersen
2012-05-14 6:41 ` Kalle Valo
2012-05-14 17:36 ` Pedersen, Thomas [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=20120514173621.GA3705@pista \
--to=c_tpeder@qca.qualcomm.com \
--cc=ath6kl-devel@qualcomm.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.