From patchwork Thu Jul 27 23:06:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 9867669 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55C3D6038C for ; Thu, 27 Jul 2017 23:07:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 495B920001 for ; Thu, 27 Jul 2017 23:07:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E3DF268AE; Thu, 27 Jul 2017 23:07:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4C6D20001 for ; Thu, 27 Jul 2017 23:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751651AbdG0XHl (ORCPT ); Thu, 27 Jul 2017 19:07:41 -0400 Received: from mail-bn3nam01on0080.outbound.protection.outlook.com ([104.47.33.80]:46841 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751637AbdG0XHi (ORCPT ); Thu, 27 Jul 2017 19:07:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rTk5poYwfxZKo7THBCOH4+PwKmfRAtMyZmGDqWjvjbM=; b=2lrXXuvfI+KRxz6ywD3+KpVab+BgWjngOB5Gk+2+LfvjKfusaJh2uMOCXxxiyPUTbM5u/s3XpBA0AOto0zLh7SFyddqZZ4mvhgFEP7Fn0T361WYPMFrJJHUKO4TEumdoX8abs6c7ZhINyLfU6opEgYONEPCSiE5OuFO7UBjwpYI= Received: from bars.quantenna.com (195.182.157.78) by BY2PR05MB1928.namprd05.prod.outlook.com (10.163.32.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1304.10; Thu, 27 Jul 2017 23:07:35 +0000 From: Sergey Matyukevich To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko , Avinash Patil , Sergey Matyukevich Subject: [PATCH v2 06/12] qtnfmac: fix station leave reason endianness Date: Fri, 28 Jul 2017 02:06:48 +0300 Message-Id: <20170727230654.30850-7-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170727230654.30850-1-sergey.matyukevich.os@quantenna.com> References: <20170727230654.30850-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: MWHPR11CA0019.namprd11.prod.outlook.com (10.172.48.157) To BY2PR05MB1928.namprd05.prod.outlook.com (10.163.32.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ee02e33b-7ce3-46b5-93af-08d4d54445d0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254116)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR05MB1928; X-Microsoft-Exchange-Diagnostics: 1; BY2PR05MB1928; 3:D6GZrYCnV88877O8DnOHm06rkV3DGLDnY+2MXGn6reihXKVnP+ZRr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Enlvb3V3/aTGF8USkQW1bBrR5Kg5DZe+oiEai49fl8MGeZQ6xI08HeMp4uBz82AbUMEOhZaGUFyCbfDCVKhV6t+OLqU5VLYKkt2IHhdD8fa9z+z86lgngtoGaW9cxqmRotk/uB8WFBUzsHzuf2/THrK7 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR05MB1928; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR05MB1928; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR05MB1928; 4:6Y1M64MQXEoW9WQCYg3tk4hLZgAmc8SIpBpPuVW2vq?= =?us-ascii?Q?NeiKytZ+HjDqvopHy7ca0QsdHVRMHdnDJc5Ua6DvMWmCpJra7Zox2eFlybJw?= =?us-ascii?Q?841tQKj1576rJL/Nr6ze6nmN9uCnHjmrR9Z5TC7a0wTfxldybdP4F+s55dAB?= =?us-ascii?Q?c+wtylV/UdAM7w2L5SqP7fLIX2QuMiq5H3hko/D5pcHUsxHGCxjglw0NPyUk?= =?us-ascii?Q?WKgtuvoFxJwEnc2OncFDASwj7LVg6GqPQB/39V1eXEaZ01BVkufgTlSh1Vp8?= =?us-ascii?Q?GHmsXXm6IeMcWSczLn/TOH76T/7O0Iw/U7VwK7KYiDEShoV0e2/uSKYiAo51?= =?us-ascii?Q?E/Lc3wEkk+QFrJN2n38xmR5ijE5Knooj19WmJv67YhMz3pZOvIzdYiAc7YKq?= =?us-ascii?Q?LAsqlLUZWOSmhRNfr83btrSSf/6QBp5pPdXpNmH5QYVk0Fw/joToVNZj6riu?= =?us-ascii?Q?/6MRnkoOAkKKIdf5dSCwV0GaiH//sMO83pNbkDZx68nBj/hWjPMXUkVmsIh1?= =?us-ascii?Q?KaTr081LHwVLKz+fuyCLq6uio3KycisKXChONghHtySiCrt7rt/nlxBtoDsf?= =?us-ascii?Q?tInUSxBhhhW0SDQPWfQEWtnLpDefTkmriZWC59JEJN8Fz39PEr3JC5VOoNs4?= =?us-ascii?Q?V0C/WGaxPC0x2SUNxvqGLLsj9V1zAH4dknkxDBdIDrolGFTUaFy92gnFXTor?= =?us-ascii?Q?7kWfeOna5KUt1o44FOFPoK0ukfUp/yCQiwIhoPpVON59IOfpchi4rYoTTFXI?= =?us-ascii?Q?Am6DkAU6Qsni26ikSm9ENu9FCkM73MF2LrlkA+4n8x+lGKNzzL3j6BRKAqfU?= =?us-ascii?Q?vuvKSSiMFMux1uXoA2kpUSfN1XY5Felxtnj5h/HzuY8jik3j9TQ7NwvNKhrp?= =?us-ascii?Q?JbdlVOpn8mCYaUHXNMBJB6dEGgRzWzC8BkunAW9iNqoLhS+ildroFgKGj/RR?= =?us-ascii?Q?yL7PybT/SrD/w9U/qmaiGqaCc12daIbvWOIcTTbXHFFKVhKD+v8Gglp/RPF3?= =?us-ascii?Q?7RuIVPFyjq2YyYXaKx5MWwur2CTm5eBc9ONLn4TdAu5EuaseBpEeaog+H9aJ?= =?us-ascii?Q?fkZnfogXqjGSscsZyYIToZUbE0Y1KswOuh+uOfAlgBFdIffNZgjuy4z/hNyp?= =?us-ascii?Q?2z+vKEZicz9oqlIlkj1T3kkAMfV91Y?= X-Forefront-PRVS: 03818C953D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39450400003)(39830400002)(39400400002)(39410400002)(199003)(189002)(50226002)(66066001)(575784001)(86362001)(110136004)(53936002)(107886003)(50986999)(38730400002)(4326008)(68736007)(50466002)(305945005)(7736002)(6916009)(2950100002)(76176999)(25786009)(478600001)(1076002)(6116002)(54906002)(6666003)(6486002)(101416001)(69596002)(3846002)(189998001)(103116003)(7350300001)(2906002)(5003940100001)(97736004)(5660300001)(105586002)(2351001)(48376002)(81156014)(81166006)(8676002)(2361001)(53416004)(36756003)(106356001)(42186005)(47776003)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR05MB1928; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR05MB1928; 23:Sc63tkrGXno5guEm4iM7rCsCU8pBYPMxKh1tJslWB?= =?us-ascii?Q?cMDLmIxYukY8ZzIIfaMS4vURImNp2bGUiSDOcSvEW1EWhb4HXXnGSfRc5+eN?= =?us-ascii?Q?LtUjsNbZQ+92nzAyUdqweOTr+6e+gpHnwOfrhewOWBbYIl9cyhDrPyEuQzR8?= =?us-ascii?Q?9txCMCm1PtKbSLc9bvNdPL5DHWNRZJM5oquhJe4jfaMcyKbdjToLXxEUAX2i?= =?us-ascii?Q?QnlKvlPoMDjf+r1tuPBZwTQ2ErZEymP0qlBQZBuEFQgS5EMh2AdNDgAKmmm6?= =?us-ascii?Q?zyjwBfM3JnikDZAkcTc+0wvXxwNkGmwOOas6k9wFHHOGGFqHZNP+u+9d9C1Q?= =?us-ascii?Q?G0FOnFKkAWNVZ+pJQ1HuphQ0uOGNUeIyNpqrPqaK95PY0Dz5m0Mfg4C6Ybw7?= =?us-ascii?Q?F1N88zufz+0flDJZqXJbWrcF8kQ2HoQ9odawLSdy8qgsZZy5GNpBCU74YyWj?= =?us-ascii?Q?LUW8K1oOo/syZirXxMAiR9dBKSXygp6y8pPilh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q?8PJbg=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR05MB1928; 6:04jAfvQIoUI2QJm2eQA09mz2xsQeTJ9ho3FsSRAULn?= =?us-ascii?Q?MGKmpEH1FHqVjERa68kJIaCxY+4X5JqMWgStjiS84DL1apEj6mujvB13A2Lu?= =?us-ascii?Q?/C44zheH1td175FXmEQr+1iqxV7FxegILG85UC867R9XEFJ3PqgwOYZ7oOmD?= =?us-ascii?Q?BZ1KoSWKq3rQtbWlQCYtli6/lG7lzJljvppb/mF53zf7AOjSwySezyG37aId?= =?us-ascii?Q?GxesHlHUJqhtCXEyTDgkoNBCRloL6PYyRR6S6p6QwZr7ch9LA2RJIPwp1zuV?= =?us-ascii?Q?nSJanglEQnlFoQsl/FzwMvSevZFz6Rj/JxibNAs4GnRnyX7bDv4NULmvBfPC?= =?us-ascii?Q?a8Up8jzxI7CkFv5aY/90g4D/+9zGEqVNzUbf0aKu+xLpMRKwJce1fI/tuMhI?= =?us-ascii?Q?1w0zs1SySa4KaLfwRYrMPUdu4iN3EvCfk2CQb3bbY2uE5r27WsVCySb0+77P?= =?us-ascii?Q?ZPu1sZhUG68ds1Tynn2ugTR2w1gOyhDnY5MF2+bUKQbCJW3u93IVdOnh0HHS?= =?us-ascii?Q?ki6YPfyIQavJwrxFyHs39vmNWnzEJPMmMjTV7VMwpumqQ9AD8DhrA5bvo7cN?= =?us-ascii?Q?7p7lhtjh38Xg0vc0IJPVfRmqSAP2d47DOL0uQcLbRAKocMxDIp4F0Z35426b?= =?us-ascii?Q?HbhKrI0IDJMcybbm6PpyJrEx0P6tWCJeAT7fDTiXgUTlhrj6zC5zoZWbui3E?= =?us-ascii?Q?TyI/nTYKSPX19inVA/tz845y8Mmj/hINDWcijNfAvGx3RWDOEHJm8wmU92dl?= =?us-ascii?Q?NUp2YpoqQUQq5u4cebvuJsBWMoorG30YPcVk/DqFRiCrp4AycqqaAtSkONrZ?= =?us-ascii?Q?Oo2BKk5lvkNQltHOaLgO1RQFRlhWt6KS3cGSP6aq9GfIOvlveDTs4Z+CdcJp?= =?us-ascii?Q?DacGvyKUhcYdwHLMDqQ1u4fH9iMh0Zp7ABBnKy/IGm3x/vti6eRJQ/svikgE?= =?us-ascii?Q?E7BQXLyaLBDlznWCyzZJ1jvRu5Yjt9uLZmNMAmtzPx4P0lY+GwFYbpSYL/n4?= =?us-ascii?Q?0=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR05MB1928; 5:epn/n1DYwD4+LtAmqb4t9TdbPpJsNPwo+ssQ6S0xQ9EFTdbp+dkF5PZCbkGocTwRnNWPldG5HjDM5x6eWLqn+XFcUY6cSxBeu0VK2ubnrhapnve0HbFzOGsvOvGIkCfKGj6/+8kUjyLSZraysPLu/yLXRK1giRDD+07pwem1SI/s4oNDbgZKqtOByLorsvgzb6//ufkv+nIBsEOXYgxN/oO4hKupg0rS70UjwHW/mnpwvxzYAa3LFTUmtGmVEfPTD9ywxIi2MDVtw//2r/WvIUyiWzzHn1DqvaV6B51lpdBzamQ2m+jkMg4OeFyDqJZKtA81EaWOnRNvDHnEEv4moirwmMtaaNu9mVVk1ebXo9DOu2poPEjHRaWUUpCU4AbR8B1dMcDDLGUViS9HlasAEQaKu26VXS/NyHRfT25vcm4swfubEN1OsFc/RXijWrlzuVgVNtxftD9gcpwW9yaUlvTTijvdQK1+xOu0YvKmbKrv5izfovDydNWuekuSFkiS; 24:XJ7JIWk9NIcsBnoybbuaieP6vC11K3nUD1mJ2L0kz+y58j3Xu7obNLBId1UIg0p7xrJf3Obpqfw3eGjLLa9HFAwu+VbFjBVvOi/MZrhRWe4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR05MB1928; 7:XrmBBZU8iV4zN3SRmI2RhvNGFfSJcIiMhE1AKJl3GbLpYVpUeBAkf5/i0/SYvlAhFn1K8yOWWLnEuWvikATCbnToC7/pSH7J9I4IIA5FuODDOZZLaxHv5C7/15zsIQRJlYHsZOaLORIi63TH9zrAZ2BH7JFU8WEJD7vZI+s6WY9PsUpZBLKIhS0blsJin8QERaGuafr9h2lu6v2QjEWceKGe/97qqqw0JCAoY7JNVl9SuO/tuTPH+Xht1RFhzaZVfgMIYGvDdlu0ZeQEPc8H+nivPwGtm88Cv4p2xf3fu4MQ7xxUECrQF7oUMFuNp4tamQezNvIjmJrTjxHKERfyqOIBJ7ujjPTFlXV9fUzHHFd3wgrUZTQkOi8iijc6wOM9JHY3KN8PGE7hb8wwHp5MTo65ZVSTxaZdEQ1M174OiHDeap/I5UkYBgHaZQExHES5r/ow9H29n64V1uW2ueO9gIGXoPbO7aU77S0N0WcnD2qvbTB/aWqPYW9nLTHTGKN4resiVESJgNAXi6lCNYzRovgcnSDWi+RnvgXm6Vd2a/nlwlA34+u46bZz7g+POjqK8DIQ2m5UrPWbLzJ/LNhzdA7nV7Ic7JEfX3q5T+sLGAfmeHfyNIqN3Zqa++4IUiK/t702ZJBuCV7GMbNnKlGiZdRWmRW8l8ii3FmQVZlRu2poJuD5mMQI3ajFVwAADCuPI/liHPOmtbj/UGfC7fC+tiCHmpG+A6fzJ32YVTWrc8Pv4XeYuMlJNf+0vUbPiYp870JMX3riXu7ZQ0QWCjfV29Z8uhQknao8o2h4rhky7lE= X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2017 23:07:35.1558 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB1928 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use proper endianness conversion for client station leave reason. Signed-off-by: Igor Mitsyanko Signed-off-by: Sergey Matyukevich Signed-off-by: Avinash Patil --- drivers/net/wireless/quantenna/qtnfmac/event.c | 4 ++-- drivers/net/wireless/quantenna/qtnfmac/qlink.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/event.c b/drivers/net/wireless/quantenna/qtnfmac/event.c index 9b61e9a83670..00570de918e6 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/event.c +++ b/drivers/net/wireless/quantenna/qtnfmac/event.c @@ -211,8 +211,8 @@ qtnf_event_handle_bss_leave(struct qtnf_vif *vif, pr_debug("VIF%u.%u: disconnected\n", vif->mac->macid, vif->vifid); - cfg80211_disconnected(vif->netdev, leave_info->reason, NULL, 0, 0, - GFP_KERNEL); + cfg80211_disconnected(vif->netdev, le16_to_cpu(leave_info->reason), + NULL, 0, 0, GFP_KERNEL); vif->sta_state = QTNF_STA_DISCONNECTED; netif_carrier_off(vif->netdev); diff --git a/drivers/net/wireless/quantenna/qtnfmac/qlink.h b/drivers/net/wireless/quantenna/qtnfmac/qlink.h index 6c6940b503a4..5c2d8f0abd7f 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/qlink.h +++ b/drivers/net/wireless/quantenna/qtnfmac/qlink.h @@ -733,7 +733,7 @@ struct qlink_event_bss_join { */ struct qlink_event_bss_leave { struct qlink_event ehdr; - u16 reason; + __le16 reason; } __packed; enum qlink_rxmgmt_flags {