From: Benjamin Berg <benjamin@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>, ath10k@lists.infradead.org
Cc: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>,
Mathias Kretschmer <mathias.kretschmer@fit.fraunhofer.de>,
Michal Kazior <michal.kazior@tieto.com>,
Sebastian Gottschall <s.gottschall@dd-wrt.com>,
Simon Wunderlich <sw@simonwunderlich.de>
Subject: Re: [PATCHv3 2/2] ath10k: Allow setting coverage class
Date: Thu, 25 Aug 2016 16:33:26 +0200 [thread overview]
Message-ID: <1472135606.16921.74.camel@sipsolutions.net> (raw)
In-Reply-To: <57BF009B.4030008@candelatech.com>
[-- Attachment #1.1: Type: text/plain, Size: 2158 bytes --]
On Do, 2016-08-25 at 07:28 -0700, Ben Greear wrote:
>
> On 08/25/2016 06:25 AM, Benjamin Berg wrote:
> >
> > Unfortunately ath10k does not generally allow modifying the
> > coverage class
> > with the stock firmware and Qualcomm has so far refused to
> > implement this
> > feature so that it can be properly supported in ath10k. If we
> > however know
> > the registers that need to be modified for proper operation with a
> > higher
> > coverage class, then we can do these modifications from the driver.
> >
> > This patch implements this hack for first generation cards which
> > are based
> > on a core that is similar to ath9k. The registers are modified in
> > place and
> > need to be re-written every time the firmware sets them. To achieve
> > this
> > the register status is verified after certain WMI events from the
> > firmware.
> >
> > The coverage class may not be modified temporarily right after the
> > card
> > re-initializes the registers. This is for example the case during
> > scanning.
> >
> > Thanks to Sebastian Gottschall <s.gottschall@dd-wrt.com> for
> > initially
> > working on a userspace support for this. This patch wouldn't have
> > been
> > possible without this documentation.
>
>
>
> >
> > diff --git a/drivers/net/wireless/ath/ath10k/wmi.c
> > b/drivers/net/wireless/ath/ath10k/wmi.c
> > index d246288..8ccc8cf 100644
> > --- a/drivers/net/wireless/ath/ath10k/wmi.c
> > +++ b/drivers/net/wireless/ath/ath10k/wmi.c
> > @@ -4879,6 +4879,12 @@ exit:
> > return 0;
> > }
> >
> > +static inline void ath10k_wmi_queue_set_coverage_class_work(struct
> > ath10k *ar)
> > +{
> > + if (ar->hw_params.hw_ops->set_coverage_class)
> > + queue_work(ar->workqueue, &ar-
> > >set_coverage_class_work);
> > +}
>
> Maybe this should first check to see if the user has specified a
> coverage class
> before it attempts to do any work at all?
>
> That way, if user does not set anything, then the behaviour does not
> change
> in any significant way?
Hm, yes, adding a check there looks simple and I don't see any reason
why it wouldn't work.
Benjamin
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 146 bytes --]
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2016-08-25 14:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-25 13:25 [PATCHv3 0/2] ath10k: Allow setting coverage class Benjamin Berg
2016-08-25 13:25 ` [PATCHv3 1/2] ath10k: Rename hw_rx_desc_ops to hw_ops to use it for other purposes Benjamin Berg
2016-08-25 13:25 ` [PATCHv3 2/2] ath10k: Allow setting coverage class Benjamin Berg
2016-08-25 14:28 ` Ben Greear
2016-08-25 14:33 ` Benjamin Berg [this message]
2016-08-25 15:10 ` Sebastian Gottschall
2017-10-16 17:57 ` Ben Greear
2017-10-16 17:59 ` Adrian Chadd
2017-10-16 19:10 ` Sebastian Gottschall
2017-10-16 19:12 ` Adrian Chadd
2017-10-16 19:55 ` Ben Greear
2017-10-17 7:57 ` Sebastian Gottschall
2017-10-17 7:56 ` Sebastian Gottschall
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=1472135606.16921.74.camel@sipsolutions.net \
--to=benjamin@sipsolutions.net \
--cc=ath10k@lists.infradead.org \
--cc=greearb@candelatech.com \
--cc=mathias.kretschmer@fit.fraunhofer.de \
--cc=michal.kazior@tieto.com \
--cc=s.gottschall@dd-wrt.com \
--cc=sw@simonwunderlich.de \
--cc=vthiagar@qti.qualcomm.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 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.