From patchwork Fri Oct 12 08:37:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manoharan, Rajkumar" X-Patchwork-Id: 1586241 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 21C3DDFF71 for ; Fri, 12 Oct 2012 10:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422676Ab2JLKfx (ORCPT ); Fri, 12 Oct 2012 06:35:53 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:46861 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132Ab2JLKfx (ORCPT ); Fri, 12 Oct 2012 06:35:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1350038152; x=1381574152; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2Rg3pCIITluOHUd2wz/FoVlfFO1JjfEDIizXo7Isg+Q=; b=bU9fJ2U1XZzYkFCT5V+Lh4iRf3QFISITvPAGkKgRYt1Jx/80dhokSbXn sYW5LgfotV+DvlE0V264dJWtdvkzUhF/6tQo3nHZsF1Rtk2F216IfKK6Y ruAA3cCBA1zy5mqj4dMH+PjNV0Hs0Kkf8Muzzg8BM0480wpJzRip4aCMK M=; X-IronPort-AV: E=McAfee;i="5400,1158,6862"; a="249376525" Received: from ironmsg02-l.qualcomm.com ([172.30.48.16]) by wolverine01.qualcomm.com with ESMTP; 12 Oct 2012 01:37:42 -0700 X-IronPort-AV: E=Sophos;i="4.80,576,1344236400"; d="scan'208";a="124916315" Received: from nasanexhc07.na.qualcomm.com ([172.30.39.190]) by ironmsg02-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 12 Oct 2012 01:37:42 -0700 Received: from qcmail1.qualcomm.com (172.30.39.5) by qcmail1.qualcomm.com (172.30.39.190) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 12 Oct 2012 01:37:40 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Fri, 12 Oct 2012 14:07:41 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 3/4] ath9k: fill channel mode in caldata Date: Fri, 12 Oct 2012 14:07:24 +0530 Message-ID: <1350031045-11860-3-git-send-email-rmanohar@qca.qualcomm.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1350031045-11860-1-git-send-email-rmanohar@qca.qualcomm.com> References: <1350031045-11860-1-git-send-email-rmanohar@qca.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [172.30.39.5] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is useful to have channel mode in caldata to find out whether operaing channel is in HT40/20 when we are currently on offchannel. It will be used by BTCOEX to enable/disable concurrent tx mechanism later. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/calib.c | 1 + drivers/net/wireless/ath/ath9k/hw.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index e5cceb0..f3448a0 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c @@ -410,6 +410,7 @@ void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, ah->caldata->channel = chan->channel; ah->caldata->channelFlags = chan->channelFlags & ~CHANNEL_CW_INT; + ah->caldata->chanmode = chan->chanmode; h = ah->caldata->nfCalHist; default_nf = ath9k_hw_get_default_nf(ah, chan); for (i = 0; i < NUM_NF_READINGS; i++) { diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 1d4f5f1..3e73bfe 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -401,6 +401,7 @@ enum ath9k_int { struct ath9k_hw_cal_data { u16 channel; u32 channelFlags; + u32 chanmode; int32_t CalValid; int8_t iCoff; int8_t qCoff;