From patchwork Mon Sep 22 12:59:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 4947701 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 91D019F313 for ; Mon, 22 Sep 2014 12:59:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5181B20125 for ; Mon, 22 Sep 2014 12:59:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0DACD20121 for ; Mon, 22 Sep 2014 12:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603AbaIVM7f (ORCPT ); Mon, 22 Sep 2014 08:59:35 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:36479 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753574AbaIVM7f convert rfc822-to-8bit (ORCPT ); Mon, 22 Sep 2014 08:59:35 -0400 Received: by mail-we0-f171.google.com with SMTP id k48so2867648wev.16 for ; Mon, 22 Sep 2014 05:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=rf4irEPGxSPawpndEcoMXVvWld94+PJHCzjZCRtakRw=; b=h79E8eQfkkch9H6NNedzfRGD2EN+stfFD/z2VgyOkg3rty9U0uJdRN7ehoShKwRSJP 22NMxBvUcUrvLmVKQCeY4pd9Qap1nwLFba0Zn7A4RgBcxeeJog0T39Vo9g26MYE3tcDa H3q4UzroC1kGU/4/DZlT/GGvDnuz00vqsLBKhU1E5Yvlk1usiYdVc+z/rZ71F5TBApHB VhbYKCHkR3OyKQYtuD2oGgscqAYcIWSZ6iIvxpUWeJd5smOUSAkDoPDjhI1eFGdrMJ86 cqAuTyRt2WkOWNKWRFNIPfC42TAgU1t68D8vltjZG82FYcTMV22UiynFegBEoaDpPPyg ugug== MIME-Version: 1.0 X-Received: by 10.181.11.133 with SMTP id ei5mr15577013wid.9.1411390773645; Mon, 22 Sep 2014 05:59:33 -0700 (PDT) Received: by 10.216.46.200 with HTTP; Mon, 22 Sep 2014 05:59:33 -0700 (PDT) In-Reply-To: <509C5E93-4D6C-4CCE-A4F6-BA1CEC80AB98@gmail.com> References: <509C5E93-4D6C-4CCE-A4F6-BA1CEC80AB98@gmail.com> Date: Mon, 22 Sep 2014 14:59:33 +0200 Message-ID: Subject: =?UTF-8?Q?Re=3A_compile_Failed_in_openwrt_for_=5BPATCH=5D_=E2=80=9Cadd_sup?= =?UTF-8?Q?port_for_ack_timeout_estimation_in_ath9k_driver_=E2=80=9D?= From: Lorenzo Bianconi To: jammy Cc: "linux-wireless@vger.kernel.org" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 > Hi, all? Hi, > I have read the http://www.spinics.net/lists/linux-wireless/msg124980.html for patching the ath9k driver in compat-wireless-2014-05-22 in openwrt trunk, but when I patch, for example, “the [PATCH 01/10] ath9k: export methods related to ack timeout estimation”, it failed. > please use latest dynack patchset: http://www.spinics.net/lists/linux-wireless/msg127038.html > the command window showed that? > patching file drivers/net/wireless/ath/ath9k/hw.h > Hunk #1 FAILED at 1080. > 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/wireless/ath/ath9k/hw.h.rej. > > i have checked the hw.h file, but I can not see anything wrong, how should i do further? > You should port dynack on compat-wireless-2014-05-22. E.g: { this chunk will fail since OpenWRT uses CPTCFG_ATH9K_BTCOEX_SUPPORT insted of CONFIG_ATH9K_BTCOEX_SUPPORT > another question is?if I patch them manualy?I can not see the dnyack choice in the menuconfig?what should I do then? > You should add dynack to OpenWRT mac80211 package Makefile > I am waiting for your suggestions. > > from jammy's iPhone-- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Regards, Lorenzo --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -1080,6 +1080,10 @@ void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan); void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning); void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan); +void ath9k_hw_set_ack_timeout(struct ath_hw *ah, u32 us); +void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us); +void ath9k_hw_setslottime(struct ath_hw *ah, u32 us); + #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)