From patchwork Wed Jun 3 12:46:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hodaszi, Robert" X-Patchwork-Id: 6537261 X-Patchwork-Delegate: johannes@sipsolutions.net 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B4D629F1CC for ; Wed, 3 Jun 2015 12:52:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE86020625 for ; Wed, 3 Jun 2015 12:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C303E206BE for ; Wed, 3 Jun 2015 12:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759245AbbFCMwg (ORCPT ); Wed, 3 Jun 2015 08:52:36 -0400 Received: from mail-outd.mail.t-online.hu ([195.228.240.69]:58575 "EHLO mail-outd.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759199AbbFCMwS (ORCPT ); Wed, 3 Jun 2015 08:52:18 -0400 X-Greylist: delayed 313 seconds by postgrey-1.27 at vger.kernel.org; Wed, 03 Jun 2015 08:52:18 EDT Received: from A1-HR-PC.DIGI.COM (54001B70.dsl.pool.telekom.hu [84.0.27.112]) by mail00k.mail.t-online.hu (Postfix) with ESMTPA id 3m1qkV5wNlzClP; Wed, 3 Jun 2015 14:46:58 +0200 (CEST) From: Robert Hodaszi To: davem@davemloft.net Cc: johannes.berg@intel.com, royujjal@gmail.com, linux-wireless@vger.kernel.org, Robert Hodaszi Subject: [PATCH] cfg80211: modify lower retry limit to 0 Date: Wed, 3 Jun 2015 14:46:00 +0200 Message-Id: <1433335560-17985-1-git-send-email-robert.hodaszi@digi.com> X-Mailer: git-send-email 1.9.1 X-DCC--Metrics: mail00k.mail.t-online.hu 1307; Body=5 Fuz1=5 Fuz2=5 X-Spam-Probability: 2.33154650364e-07 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 From: Robert Hodaszi To disable the transmit retries on RT28xx driver, the retry limit should be set to 0. The current lower limit (1) prevents it. Signed-off-by: Robert Hodaszi --- net/wireless/wext-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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 diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index fff1bef..6e38320 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c @@ -370,7 +370,7 @@ static int cfg80211_wext_siwretry(struct net_device *dev, u8 oshort = wdev->wiphy->retry_short; int err; - if (retry->disabled || retry->value < 1 || retry->value > 255 || + if (retry->disabled || retry->value < 0 || retry->value > 255 || (retry->flags & IW_RETRY_TYPE) != IW_RETRY_LIMIT) return -EINVAL;