Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1705165lqt; Wed, 20 Mar 2024 11:26:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWXZhIettt5dO9kLRjl7KyE63z1PW5pC5gMMKYhaEBXmk1yWM3cQUC1caIL/RKA4/xohcvZG7koptNNsAqYjK2klV9YWFEzYxawqodCw== X-Google-Smtp-Source: AGHT+IFXJdX8M+RUwsee23PfIEVRoZS8Xo3SMZKQVVpNvEmEPu0NAMVNehRBZ5hCzkbkJMoCxM75 X-Received: by 2002:a05:6a00:1783:b0:6e6:9a11:ccec with SMTP id s3-20020a056a00178300b006e69a11ccecmr21648057pfg.17.1710959161689; Wed, 20 Mar 2024 11:26:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710959161; cv=pass; d=google.com; s=arc-20160816; b=ENOvnf+dXaJrc/b9XfXRrkeCrcY4gwtUKX2Dr6M9lqoO5Wwisn3yylCYIlnobsIddp k0rI/aDtnsZxXqA/4IE2JZDPpDPmShRzyoTXucL/M+6aix2VNpfdd/nzYdeL+/5Dw2dd iulu3vkYtm8vLLSb8VUR1CCQMznqZWlqOCe1wVosfYAQ5yp9lZViWue5AuIPdibfguXe +5GLR19ECn0ZtG9k8sbfwrSIwleWXKoqaUpGT4rEd3UKQzimWzlwI2Ad8Zmr8j7u/JCW atLaXJg5sEP1MVNltr/vRNf8Q7RQZj5ZHN8DJ7bCQVor4kjlOlx1AlYQgkA/0HzQeUOC GKWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=e9nUrLP+rd0Wr+7TLK5dARZrVKPd+Dvrp6iOdke+3Hs=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=p/Ir94j5rfHHJL7ZP/vyBTRwZZRm4excWiFwePfR/Jzom/y4osX/7BdLCnDhbn0n7n A9l+gxf9Wh3ICvHsed4vGncgl+T3stSjkOlIeUnAZsFarqgZUipnonDzI1NpBA+10+IQ yBdclJkv9ROpjt5VaTmaUc6++Cv/wNw3KhQaDCTOh83zKvFKbSwm/jYZHlTykemLdx3V GEKV6VO2DpvbikmbVXQ/iU9S6tLnqBTUpESL9te7GTXtA/fPSu6ny3VwKRwctIeAgfhR +UneHPNntCKOANdEyIhZwRUv/UjpH1WWNsOcdf1V9r1/jlvB6rwEneZIUJubCwcAijqx zE9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sO/g+7rY"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i13-20020a63e90d000000b005dc4bdd113fsi12852664pgh.168.2024.03.20.11.26.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 11:26:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sO/g+7rY"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C3DB3B228DD for ; Wed, 20 Mar 2024 18:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCBC16CDDA; Wed, 20 Mar 2024 18:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sO/g+7rY" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9845A6CDB2 for ; Wed, 20 Mar 2024 18:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710959095; cv=none; b=pBdj31/0yV+L3xnUYjWBChkQMivwO/rW90od1DvcxD6SkcQn1avRYgg1Zhm4tf6n4gG+Nn8AJnybVoI3/t5i8gZ37aAigWnHU1kZchs0VN+CpKhJ5CnlDdOFPM3M59vky1zEDwa7vwZcuDJzIFSb5l7161zO4TfY0g8VmLJ/4cM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710959095; c=relaxed/simple; bh=KUkEF0Cuq4xY9j/WK0ZfSwkXNMWtQ9vbE5h+ntRtvnE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IsmHWvjhJLCTI/yM6K3LU7Yb4o6tWhRvIiFxrIbMhSjbc7lnovwCjqqnhce2vwSOTrthq0xQt/00sAhZT7Kpyyp1txlAsdiIvSJyplFNO/mrym04A6QlddQDge+0myitiUnfTav+m+nsP6t0ciDC7LEjhi/qyLYhFFr2UR+cLTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sO/g+7rY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C4AAC433C7 for ; Wed, 20 Mar 2024 18:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710959095; bh=KUkEF0Cuq4xY9j/WK0ZfSwkXNMWtQ9vbE5h+ntRtvnE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sO/g+7rYvDiHpNeUZ38UZKdiEIu8YF3v520InHDMpyUET+SIYIwB0wRN/WCekTqIZ v+cvbF67FmDD0JxRjwjM/c3aycuJJiRwR/W2qjqNwnejq+foaoy29gRv/ln3Jlfpm0 +QhZZ0HvIzCvjO4wAS1xeuzs0qXV3NoHjuzfwQWTccxnIbRF2oWBhtu00oPAKh7RKQ //kzszhYEsQg1D5tswIKWTO29OBDqc5Kbdspn3V2AxMzNFnREc2QKsgGtMvReqejqi cgHlwFdJtOnNVDUTaF9VwF3cW22o7+LjvjVfiYqhsZ+LQu3jVb6koGgPxTxRRO/GM+ uDudECHjfUXTQ== From: Kalle Valo To: linux-wireless@vger.kernel.org Subject: [PATCH 3/4] wifi: wcn36xx: main: fix sparse warnings Date: Wed, 20 Mar 2024 20:24:48 +0200 Message-Id: <20240320182449.3757215-4-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240320182449.3757215-1-kvalo@kernel.org> References: <20240320182449.3757215-1-kvalo@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Kalle Valo Sparse warns: drivers/net/wireless/ath/wcn36xx/main.c:758:58: warning: incorrect type in assignment (different base types) drivers/net/wireless/ath/wcn36xx/main.c:758:58: expected unsigned short [usertype] vht_rx_mcs_map drivers/net/wireless/ath/wcn36xx/main.c:758:58: got restricted __le16 [usertype] rx_mcs_map drivers/net/wireless/ath/wcn36xx/main.c:760:58: warning: incorrect type in assignment (different base types) drivers/net/wireless/ath/wcn36xx/main.c:760:58: expected unsigned short [usertype] vht_tx_mcs_map drivers/net/wireless/ath/wcn36xx/main.c:760:58: got restricted __le16 [usertype] tx_mcs_map le16_to_cpu() was just missing. Compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/wcn36xx/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index bfbd3c7a70b3..e760d8002e09 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -756,9 +756,9 @@ static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, if (sta->deflink.vht_cap.vht_supported) { sta_priv->supported_rates.op_rate_mode = STA_11ac; sta_priv->supported_rates.vht_rx_mcs_map = - sta->deflink.vht_cap.vht_mcs.rx_mcs_map; + le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); sta_priv->supported_rates.vht_tx_mcs_map = - sta->deflink.vht_cap.vht_mcs.tx_mcs_map; + le16_to_cpu(sta->deflink.vht_cap.vht_mcs.tx_mcs_map); } } -- 2.39.2