Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1881722ybc; Wed, 20 Nov 2019 05:40:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxCOw9khZ0wpmdpQsPU96MLWlbfgokjaFCB3+mfwY0826SZM9C+WHAuhq9zlwTJJTG6EXKo X-Received: by 2002:a17:906:a411:: with SMTP id l17mr5625312ejz.274.1574257206078; Wed, 20 Nov 2019 05:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574257206; cv=none; d=google.com; s=arc-20160816; b=YNRf/JPpysHaiZRA8cCLbp7igXcfXpnSZLCtlhL2RX6HQb6YBH73KW+j2PnGCW9Ibt T3V7H5GRUtthfqqiJ33viS+fBfpAasI0atD1AcpVUJ8WvkWmyS6IHGzdQNWMIW7oS15E WOUL4VBYq7q16hNU+jgsJAs4v7Jcv9BjMWwR6lin/Yb01i6yLZEhrHKR+v8WroNHW5vt v79Cmo0eUq014HpQXUAuRFZuShdzAmwPNdCcOdSilX6+pCgCS/GCg6UTW1nH6RecBhPT N/LHTDlxYQvLRDBXr0LtH8YJbkuaFx7/nsBa7KMw4XosjrBVPhWeE7+3L3U67NK9vFfq Vupg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZmOKohTu1QGc/90zlyG6ni6BaJRMGcFGDPEvWVrFcqo=; b=rzSKbzLCP6PosbRJF4wykggbd3+0XGCi1n+DxbfuIm+a30tecEBRhbWoNsPCJ3BFbt xBHeq1eACiRwdbTLAGVyVTTCKqkEzSMeHfONCITRyx8gbbv8XpLNbWe9FOy4QZ56Q2G+ L1P0tbwQ9OUoYNCBMyWk8zeExIgBd85qzE5Xunbb6DaHTplYn1l0Mt7HgbNUYdv4c2gh uAYaaUbSnjouixJYwICkAfoJP7rJSlP/tV4Yy8DrYKPhHJM6MHCiM3rILUgqAG3I5tvR SdlJm8UMSSs88bQq6SnN7T5FlO7GN0skmMrbPAMOGyepxCHQ9aEjpZasWI/1/6a0K45f BXkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WR/oiCAq"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si15941178ejt.202.2019.11.20.05.39.40; Wed, 20 Nov 2019 05:40:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WR/oiCAq"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728589AbfKTNCH (ORCPT + 99 others); Wed, 20 Nov 2019 08:02:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727960AbfKTNCH (ORCPT ); Wed, 20 Nov 2019 08:02:07 -0500 Received: from localhost.localdomain.com (unknown [77.139.212.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 56E4D2251D; Wed, 20 Nov 2019 13:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574254926; bh=TpDr8uTfo9TvOTPGss2vHtpXmP/wVL//pNpl3kJKA0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WR/oiCAq8jCMsOHZnxj5byIFu/KE4jFDIdea8NG9Sv8kK7gg0imxrTGzRGUq1fZc8 ycFI2oQIf1VgetDVNKz3/8VcJhVvj844JG01XL5VHgkcASZO04VX/sc4vwxAI3r17L A3f1gjphqeKsLZvSgaP0Xr0FjWq/w6cMBtOYfDFI= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, ryder.lee@mediatek.com, royluo@google.com Subject: [PATCH v2 2/3] mt76: mt7603: set 0 as min coverage_class value Date: Wed, 20 Nov 2019 15:01:44 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Set 0 as minimum configurable value for coverage_class since mt76 does not support dynack Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/main.c b/drivers/net/wireless/mediatek/mt76/mt7603/main.c index d31c9d307c2d..3ff822863391 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/main.c @@ -635,7 +635,7 @@ mt7603_set_coverage_class(struct ieee80211_hw *hw, s16 coverage_class) { struct mt7603_dev *dev = hw->priv; - dev->coverage_class = coverage_class; + dev->coverage_class = max_t(s16, coverage_class, 0); mt7603_mac_set_timing(dev); } -- 2.21.0