From patchwork Wed Aug 14 06:01:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 2844190 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E3FE2BF546 for ; Wed, 14 Aug 2013 06:02:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1380920343 for ; Wed, 14 Aug 2013 06:02:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D36820345 for ; Wed, 14 Aug 2013 06:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429Ab3HNGBz (ORCPT ); Wed, 14 Aug 2013 02:01:55 -0400 Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:38295 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906Ab3HNGBw (ORCPT ); Wed, 14 Aug 2013 02:01:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=YX+/u7JQPWt2o+zXKj3uakz1Xcc162nxem2hluToVow=; b=yRN5EyLQZuq5t03fUbhk7T21NuIB8gekZ3r0b3ZnB+UE3sPnZ7QROpC7o0//pttb/gPcZnmic40lKIyTTfGQyRrV8yihYfDbLllXYutLLx7W4PCxDZXu5VisJ2fNOo/VZVRqdWbHgq8gVUzNg2/oF015dJBeYqJA3JDKUnRqR48=; Received: from p4ffe52c1.dip0.t-ipconnect.de ([79.254.82.193] helo=pandem0nium) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1V9U9W-00069m-Mn; Wed, 14 Aug 2013 08:01:50 +0200 Received: from dotslash by pandem0nium with local (Exim 4.80) (envelope-from ) id 1V9U9R-0006wN-Lt; Wed, 14 Aug 2013 08:01:45 +0200 From: Simon Wunderlich To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Simon Wunderlich , Mathias Kretschmer Subject: [PATCH-resend 1/9] ath9k: always use SIFS times from OFDM for 5/10 MHz Date: Wed, 14 Aug 2013 08:01:30 +0200 Message-Id: <1376460098-26648-2-git-send-email-siwu@hrz.tu-chemnitz.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1376460110-0000051A-73D3B595/0-0/0-0 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2013-08-14 08:01:50; 8be2f5f66bf4591b4b7c9c7bda42a1ae X-Scan-SA: cora.hrz.tu-chemnitz.de; 2013-08-14 08:01:50; e056ffb9fd99738086785e1feaac44ac X-Spam-Score: -1.0 (-) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 5/10 MHz channels should always use SIFS times as defined in IEEE 802.11-2012 18.4.4 (OFDM PHY characteristics). This makes it compatible to ath5k, which does the same. Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer --- drivers/net/wireless/ath/ath9k/hw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 151443b..b3a6891 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -1069,7 +1069,7 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah) if (IS_CHAN_A_FAST_CLOCK(ah, chan)) tx_lat += 11; - sifstime *= 2; + sifstime = 32; ack_offset = 16; slottime = 13; } else if (IS_CHAN_QUARTER_RATE(chan)) { @@ -1079,7 +1079,7 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah) if (IS_CHAN_A_FAST_CLOCK(ah, chan)) tx_lat += 22; - sifstime *= 4; + sifstime = 64; ack_offset = 32; slottime = 21; } else { @@ -1116,7 +1116,6 @@ void ath9k_hw_init_global_settings(struct ath_hw *ah) ctstimeout += 48 - sifstime - ah->slottime; } - ath9k_hw_set_sifs_time(ah, sifstime); ath9k_hw_setslottime(ah, slottime); ath9k_hw_set_ack_timeout(ah, acktimeout);