Message ID | 20220720160302.231516-4-ajay.kathat@microchip.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-wireless-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F184BC43334 for <linux-wireless@archiver.kernel.org>; Wed, 20 Jul 2022 16:03:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233315AbiGTQD0 (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Wed, 20 Jul 2022 12:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233172AbiGTQDY (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Wed, 20 Jul 2022 12:03:24 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF87A5466D for <linux-wireless@vger.kernel.org>; Wed, 20 Jul 2022 09:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658333001; x=1689869001; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=uZgP9VIHQFVV5BzTT0h8WkMFqvxZKt5wmqjdYmFeq+Y=; b=ixguRjGcBaxh1f8apWSjjFAyyt+ZvFk61OlDK0Nw1Lu6pDW0lHJxqXy1 eyngeDMoyKMuQioZvr00zxzSTpJVByuenJ5l0TUR0fgtYr9U9EdX5YOWG T8YMM1iek1Svn9bDS7Pyo70hkKSgxt49kCRz7vhHhERb5dYoWqBmvN8+X /26HMO0ux1LeiHkpuA9+S1hvZZ494bbbU5Np9t3zDc1ueamjRuvgeZDcN jrMhZdBYDkbnW636RUIs746xh4IvF9q08CPM/pnsFOOS05EQh3Mt5syiy 0qmgCrrp3w8r5yAuFvnY91fEEw+svSpsQsTOJLvMaT/6oCYMlVm0+OMDJ w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="173122941" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:08 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WjBtFJ++cjw4KD4A9kxumDTHw3nFTUyH6c9TnvVJCWlVp84yg9n6wP2H+b91hkY3vZSrIYDrS1B8MxeiuyUPzF8YusV5660CCsyOBz5yG+m4AwwoWFEUyA/OIppRXoBimwrhO73eaXlsoM0ASHBMwIYyIfNjZjleF/Wm0UoduD44Tz6mLClByPf6JjIT1HyMadCA+9jTjfo7eGjEoCRAXwz8MIDVork0ON3C1IyhMFzETay9IGF3efYLGUbzjqqwEbxeWFArTRor5s89LHSogfwntofyL/p8/eMJ73BQQrZbbHon1Xyla4TArOz7HWqeSYL+w6oDJI0VeqHWzs3HXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LOuXvQVx5xdSFn1oppAKOc2fhy74QGJDfB3/SqxC+zE=; b=U8ko58Ykt+16QqOxai5Rsf36q/fwYLx09T8uUYx5yn3APYwDETCJJ5PvIg94cQi5vKTiQOh1Fkjv69VrEBIFAGhfyzzOD1/45nliqeiT4qHVQUJ8MmNJKAkAhXK91F8S0HmiA1t+Crm45+bT7JSpYAk9YECZ/PMu1j/ZWun0JFTi/RzH1ZK988jG/x5Ce3VqBfAtrNSD6CXr7pRxWl7H4DZip8Vte8aiPBTByN3uvRkxTsKtIBh7uFN5teJQ8peVKFTWnZZtiOfOTQFSZI2GkTPwTjm0dN88ewDrhhLPfjXDxGbrEkTd9pPA0may2xrbHJs1r7TFbmz6IWekjm4HMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LOuXvQVx5xdSFn1oppAKOc2fhy74QGJDfB3/SqxC+zE=; b=BGxqwrCVegLi6YnH07pI5ZfkIhuT8IB1FAizPupsj06a9ej1r2rNwq/24/5OsBuVK/7TvYZA7xhrqxP6hCu7O8viJmW1FShEIK/rU3duduieDclcutGxaM9xuZPAT320525zccZ5HPfYRJZKhPWuQcgaJ3d4YPUXpwKohNrDS74= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:05 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:04 +0000 From: <Ajay.Kathat@microchip.com> To: <linux-wireless@vger.kernel.org> CC: <Claudiu.Beznea@microchip.com>, <Sripad.Balwadgi@microchip.com>, <Ajay.Kathat@microchip.com> Subject: [PATCH 4/8] wifi: wilc1000: set station_info flag only when signal value is valid Thread-Topic: [PATCH 4/8] wifi: wilc1000: set station_info flag only when signal value is valid Thread-Index: AQHYnFIx4NLfwcl9sESOagg4tMRVTQ== Date: Wed, 20 Jul 2022 16:03:04 +0000 Message-ID: <20220720160302.231516-4-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 40058d9d-938c-4703-6e05-08da6a695490 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4BwUBKbJoZKeC/XJuOM0NaAGcrxf7oNIbWDcS/kKZBzH+jXu276SMFCxWaT7ue4n1BV6OzHxGFdMqLFhEAZrYrZrNpPuyB50Eu2fV1aSJCotAl6jGkX3kT0+ivAvmnYGcXZwrzgTYh2cb/BzaAUG5eWxSPxWdvYPGho3/VUi01Kz1J+28TQ9GbwolBt6IlKtwPcmT4r1a7gwc1uXtEUi5iPZRsT3JnBOk/P57m2fwOg2v/mdN52dZePuedBMGksWaIAgu40p7gKwJSR+R/s4oV2zWZLlzhGr/pDpgCkSgKlN7jeNfkbtgsMKJEFgRYFLWbS7J1EYIBlZqBEsyyYab+YvcKh/T8xnmUgcmIi87XnkzQ2HolE/PXVCB2fvW2Ch1LJ724FxUkS1JSFOcGLdFb/YfiB+UsfWxKFXFL/pHZTSNDJGFUabCe8FIMYlA4tEG4DGe63bk6veM97loGDXPklLbyQ4OaRYV7a9SyAly8zsvSru2+5OWVk1WZGzwmV7Y4kWOKtTaxaAnkPXTNFGQHaPtRgEyo7Q7D6ijSTlCO6o6f1xMlKq9tkXBQ0uxRYwWJ047N8Aj6BZQP9Y5ZZ4a+GkPWT36T0XTk1zvdMhW4sA806zz6xjxxCZHxQEZK+YQTs5qLbWv+TApLESOiUThWzxjCikDsGfWwwISP8x5HoxWXCMZtz740Wb7GQwvlqmFqlOHpd/SQQnla0QByf9xuS0Z9+YQCwYvsRIT+7uE4ogy1Zt7xLIqpSjSr7v8SShkZoTRaEJanJnp0ILvDKHA74BfRNf2HeVA+zfKzPnqRpc24x55xWB4yD7rWIHrbNB x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5176.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?6jZNF0UNmqGHIdZIuFvyQEM?= =?iso-8859-1?q?hW4EusnnXiWtfzHY9rXEWOKfMFleFiDaGbnoFsM8fJatKJuoonFodcUCoPcr?= =?iso-8859-1?q?FDFTI2OWUXU5sEnw9dkEk0NKvx7+c2817Dx6Fy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iso-8859-1?q?t7nz+8egMpHpWcqP1Zx6mKJJG4th2ECGEdLvyKunnEbv5d4cVWpQ4XWSVPSV?= =?iso-8859-1?q?o/PWp5Wc5VSLEOiIZwv3ys7OtvmbGdN/1OSiDqnha0KpmYGoevHi1/IriTnh?= =?iso-8859-1?q?LZKYlewxAYKvnzf18M9r/MrN6OSi4gRt4CT+SzMf9jCZGcDbKJzPFsTR8Q8X?= =?iso-8859-1?q?wgJrAKqTv4vzW+aC8w9dTr2N+V+qvPaNMH7zOAx27btCuvcQJvmvAC2OZIJ4?= =?iso-8859-1?q?dKcMPoQOQsmqOJPHAFDX0xzyz9ohqrm5CvkLCJ3DvnahUwNkH33/hGPjiRZG?= =?iso-8859-1?q?qyKP4snhWf5FybH4CwyuHKnWL/No7pCD8NvUsB/GsYUAarGYlGEOiZaPz3Z/?= =?iso-8859-1?q?3fGRbmHK+Gmg6h2cbJ4tuCKYGQPOSGN8GJ0o/fJQ8DlK748i8kNGR62kaj2S?= =?iso-8859-1?q?QYObIfFYwTx6WRd+PKXkKQaz8bkkU8VvYGa9F1/qjHYaazBGhW2zQsFt0/jZ?= =?iso-8859-1?q?O25IcQUlXEfDOST0p74zDsSIC0YVYeo70Q4ex1t9qRSQLGIjbdzVmnsSuBWe?= =?iso-8859-1?q?WT+TLsgPyegBVIfVELGd9YXdoiycGM2sjFYtOZvZeP2HC3IMFWWpi6SxTlo4?= =?iso-8859-1?q?0qXwwAk3D9zhZRwUQz/nd3lpVnUXdTYFZICX/7YI4ehKNZ53KcR13K58ezSc?= =?iso-8859-1?q?=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40058d9d-938c-4703-6e05-08da6a695490 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:04.2959 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S28IYio57SWTrjzkRzKyUoMGyoceh2flyM+EEk5czHk8slr5TJLtbaraiqkIXoOwQrFeBhgFb78TXkXiZWeuafcEzxFOlG7duUCufjT9B6M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
[1/8] wifi: wilc1000: fix incorrect type assignment sparse warning
|
expand
|
diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c index 19862d932f1f..1e184ac93afa 100644 --- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c +++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c @@ -1312,12 +1312,11 @@ static int dump_station(struct wiphy *wiphy, struct net_device *dev, if (idx != 0) return -ENOENT; - sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL); - ret = wilc_get_rssi(vif, &sinfo->signal); if (ret) return ret; + sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL); memcpy(mac, vif->priv.associated_bss, ETH_ALEN); return 0; }