From: Kalle Valo Date: Tue, 30 Apr 2013 14:56:26 +0300 Subject: [ath9k-devel] [PATCH] ath10k: Fix TXOP handling In-Reply-To: <1367215479-29150-2-git-send-email-sujith@msujith.org> (Sujith Manoharan's message of "Mon, 29 Apr 2013 11:34:39 +0530") References: <1367215479-29150-1-git-send-email-sujith@msujith.org> <1367215479-29150-2-git-send-email-sujith@msujith.org> Message-ID: <87d2tcjkph.fsf@kamboji.qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Sujith Manoharan writes: > From: Sujith Manoharan > > The channel time duration programmed in the HW is in absolute microseconds, > while mac80211 gives the txop in units of 32 microseconds. Handle this > properly. > > Signed-off-by: Sujith Manoharan > --- > drivers/net/wireless/ath/ath10k/mac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c > index d31fa1c..bd91b15 100644 > --- a/drivers/net/wireless/ath/ath10k/mac.c > +++ b/drivers/net/wireless/ath/ath10k/mac.c > @@ -2188,7 +2188,7 @@ static int ath10k_conf_tx(struct ieee80211_hw *hw, > p->cwmin = params->cw_min; > p->cwmax = params->cw_max; > p->aifs = params->aifs; > - p->txop = params->txop; > + p->txop = params->txop * 32; Please add a comment. -- Kalle Valo