Return-path: Received: from mail2.candelatech.com ([208.74.158.173]:57089 "EHLO mail2.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755490AbcG0R02 (ORCPT ); Wed, 27 Jul 2016 13:26:28 -0400 Subject: Re: [PATCH] ath10k: Allow setting coverage class To: Benjamin Berg , Kalle Valo , linux-wireless@vger.kernel.org References: <1469608424-11370-1-git-send-email-benjamin@sipsolutions.net> Cc: Mathias Kretschmer , Sebastian Gottschall , ath10k@lists.infradead.org, Simon Wunderlich From: Ben Greear Message-ID: <5798EEC3.5040008@candelatech.com> (sfid-20160727_192632_124053_0DA1045A) Date: Wed, 27 Jul 2016 10:26:27 -0700 MIME-Version: 1.0 In-Reply-To: <1469608424-11370-1-git-send-email-benjamin@sipsolutions.net> Content-Type: text/plain; charset=windows-1252; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 07/27/2016 01:33 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 any event 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. > > A warning will be generated if the hack is not supported on the card or > unexpected values are hit. There is no error reporting for userspace > applications though (this is a limitation in the mac80211 driver > interface). > > Thanks to Sebastian Gottschall for initially > working on a userspace support for this. This patch wouldn't have been > possible without this documentation. I would be concerned about the various resets firmware does to work around hardware hangs as well. I don't think any events are generated for these, unless you count the dbglog messages? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com