Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3925332imm; Mon, 8 Oct 2018 11:47:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63hSvMaz2vnmbN60UJAhm4i5EQg7lET+VbbRHYjeULmx7kU6/4XGsm0g5+012FLzTQJOjD7 X-Received: by 2002:a17:902:be11:: with SMTP id r17-v6mr5522978pls.112.1539024442003; Mon, 08 Oct 2018 11:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024441; cv=none; d=google.com; s=arc-20160816; b=X6RX/rFjJjxRSpRiM2u3LN/C1WXwrErD53xF29KRj43Z+ghDgyZqC6ll3VOflHmUwx ypOfnGk52KnxOh/vTMcBGy1nFlcZ54IydP1iYHWimP7ynjW7ofcZshTq72nGsFNo9fi9 57TZBE8T5RcMA0+YtwdsQm8pCAsQxa1tYxQw6VpMIv3PYyKn/LRGD2BaovtLdptumhh4 QXCyjKP3feUEFjSjuXTuJ0tBQIKYSA7kAz56Y/BzqV4lKT4MyrKXl/h2CkcC6gTz7Kou YjeboOvIo25d46nqFkVtcWtZQsnURtop7v1lt8F6ECZHE4EgEvEBiHKVsGZj00OlgiUd IVrg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7EWTTkyPbRN6btfU5g29bRKFaPqhjvHmivCMl62cih8=; b=TpDg+XFo+GloiHIxsb8VTAasA5gd+3fgaq3ZYSURaaWmgGSdl6B4JawFN3jX8GQgFf aiyfPnjc51iJmREd1/NNi6nK8M/9HDYWYjFihSDuGkEq/8AzeXs/lEvCJLcwM+w6xhlh oiVx55s5VSEMxExkhgUFC6kViszsP36tTBfvHg9rjGA/osyF5II7q1DfDCapJhgdYpTH VULmKJbF8SeUU2ozSR+In46UOxrryEqCDymTOMa7DttthQEYcO6tAEUa4K4cYBxNTJaK klWcBpzwAwzzLqAX29hnT9o51Ce1KtPOmNT1bptP1m2D/XjYP4aHRcFlyyVup+ym/Jne 2TgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jknPlUwG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5-v6si17582704pgi.99.2018.10.08.11.47.07; Mon, 08 Oct 2018 11:47:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=jknPlUwG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731165AbeJIB7R (ORCPT + 99 others); Mon, 8 Oct 2018 21:59:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:47498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728570AbeJIB7Q (ORCPT ); Mon, 8 Oct 2018 21:59:16 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 E56CB2087D; Mon, 8 Oct 2018 18:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024370; bh=igfHERKDCbOMFKj32NpmeuEvS8MiHh4djFTDEFe2q+A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jknPlUwGWPzllgvuMh1mWMKq6pEiR8oXMpGMZVklO338kKNZuLCmUOAPwNo2fSZVd 7/71AC49u2E8UMhxaCSi0qMMNO5qbi8yUCUKG60iggyzpTOrN7DcLKrsHJw8xLeYpM 5JMLcUQ70aJkG6HyxIRMFtvKQleCu74AS+ELWneY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haim Dreyfuss , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 4.18 019/168] nl80211: Fix nla_put_u8 to u16 for NL80211_WMMR_TXOP Date: Mon, 8 Oct 2018 20:29:59 +0200 Message-Id: <20181008175620.779756107@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haim Dreyfuss [ Upstream commit d3c89bbc7491d5e288ca2993e999d24ba9ff52ad ] TXOP (also known as Channel Occupancy Time) is u16 and should be added using nla_put_u16 instead of u8, fix that. Fixes: 50f32718e125 ("nl80211: Add wmm rule attribute to NL80211_CMD_GET_WIPHY dump command") Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -672,8 +672,8 @@ static int nl80211_msg_put_wmm_rules(str rule->wmm_rule.client[j].cw_max) || nla_put_u8(msg, NL80211_WMMR_AIFSN, rule->wmm_rule.client[j].aifsn) || - nla_put_u8(msg, NL80211_WMMR_TXOP, - rule->wmm_rule.client[j].cot)) + nla_put_u16(msg, NL80211_WMMR_TXOP, + rule->wmm_rule.client[j].cot)) goto nla_put_failure; nla_nest_end(msg, nl_wmm_rule);