From patchwork Mon Jul 16 13:39:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Rebbagondla X-Patchwork-Id: 10526811 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0EAE60348 for ; Mon, 16 Jul 2018 13:36:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0A33287B4 for ; Mon, 16 Jul 2018 13:36:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4749287CB; Mon, 16 Jul 2018 13:36:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57795287B4 for ; Mon, 16 Jul 2018 13:36:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728124AbeGPODt (ORCPT ); Mon, 16 Jul 2018 10:03:49 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34174 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbeGPODt (ORCPT ); Mon, 16 Jul 2018 10:03:49 -0400 Received: by mail-pf0-f194.google.com with SMTP id k19-v6so931804pfi.1 for ; Mon, 16 Jul 2018 06:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YmhHhTvj0LYZxiKOhGhlJSR1+ezMadHGNaj0SJQwSfo=; b=Nqa9Xkp0uY/O+iqUcAE4HMNde5ytX/RuhMGecsp6qw+elCP8+pp9RaaxqcjzT8f4uD PHDcgOblmPY4h+/hiCLdgLwTpf6WDvmXMTPhao4ffmJP7x+maKhGLblbNHJKD4cYdBHy htgP8pefozfNfhR2nPkMYDUNsNKDpDh/Nd47ZH1EPpmX9Jh5rGtnp+gI/Lip0VdXFIrI lWtdoqmvjVHvytWKtm2idA6r0tLP4LC+arp/6RM8dAQLLEkNPVx3Q1le9AZ4mOvPWloL SAJu1Uz3DKvO7EYZfzBvtrAwC4hHO7Tsd6cHT577F6DZgxoesjc4vZ4jtFgkzTv5We2l HzMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YmhHhTvj0LYZxiKOhGhlJSR1+ezMadHGNaj0SJQwSfo=; b=bIU3WwZZF90WHuvf44p3LN98Vnk2I8B+GfwTmOyz7bS/33ECl7SvY7aLIRtKeb+Z4o 6SQLFRSy9KpXUG5MWAzR40shhnjABONVaXVTk3dGwyq1vw82Wpre3zDVo8jzVG3n/Fn9 Pyv4jHHnSKwJ/goOuGH5R/vqBGWjdChqjJ6Cxsz50ofy4X5N+LYvDStVhTnxFzFIcX2t 5YqwCJ8caRf67PwQqZnsMWfnpjQc1vD7UAVYiEoWt2gHJxOPM8gQ9cwZCdNaJZ9mVlJm gUu6MV9zJFzKfjpAh4y69iXwmV+QbaiDj8kXNPC60KMJB5XMYUlstbATQ6twC+tcfifM Qd5Q== X-Gm-Message-State: AOUpUlFA6qtOW1kDNG028Wtgz/oSAtr0az4ZJv8Sg0XDWI/tVnQA7lfe q5Lu1lbVUeHN3x9mpDs/Q+Xux9qtLfg= X-Google-Smtp-Source: AAOMgpdlpO8k9d1SWQlF+xvzyEN0+/V+2kgrN2gXb2TmVibvoGA+vco6A46z7tQbalMJzb8e1srMuQ== X-Received: by 2002:a63:b00f:: with SMTP id h15-v6mr15737141pgf.442.1531748179504; Mon, 16 Jul 2018 06:36:19 -0700 (PDT) Received: from cpu459.localdomain ([27.59.226.48]) by smtp.gmail.com with ESMTPSA id t3-v6sm53756167pfk.161.2018.07.16.06.36.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 06:36:18 -0700 (PDT) From: Siva Rebbagondla To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Sushant Kumar Mishra , Siva Rebbagondla , Amol Hanwate Subject: [PATCH 4/6] rsi: Correct RSI_NEEDED_HEADROOM in mac80211_attach. Date: Mon, 16 Jul 2018 19:09:35 +0530 Message-Id: <1531748377-29215-5-git-send-email-siva8118@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1531748377-29215-1-git-send-email-siva8118@gmail.com> References: <1531748377-29215-1-git-send-email-siva8118@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Amol Hanwate Currently, RSI_NEEDED_HEADROOM is '80' for rsi driver, which is wrong. As per rsi internal frame format, the RSI_NEEDED_HEADROOM shall be '84', which is 64(dword_align) + 4(extended_desc) + 16(frame_desc). Hence, corrected the needed headroom. Signed-off-by: Amol Hanwate Signed-off-by: Siva Rebbagondla --- drivers/net/wireless/rsi/rsi_mgmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/rsi/rsi_mgmt.h b/drivers/net/wireless/rsi/rsi_mgmt.h index 1462093..359fbdf 100644 --- a/drivers/net/wireless/rsi/rsi_mgmt.h +++ b/drivers/net/wireless/rsi/rsi_mgmt.h @@ -22,7 +22,7 @@ #include "rsi_main.h" #define MAX_MGMT_PKT_SIZE 512 -#define RSI_NEEDED_HEADROOM 80 +#define RSI_NEEDED_HEADROOM 84 #define RSI_RCV_BUFFER_LEN 2000 #define RSI_11B_MODE 0