Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp58951pxb; Mon, 8 Nov 2021 09:42:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWxe21pAAat9pF+BTaDzMLcgmM27+d7Obky7gJn+8n6cySKnL6k6FbBt0xyOKQSn2amGZh X-Received: by 2002:a6b:ed04:: with SMTP id n4mr584243iog.83.1636393349154; Mon, 08 Nov 2021 09:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636393349; cv=none; d=google.com; s=arc-20160816; b=JeQuzbiuHFAsC447iqLOl4GPTwU3BI78cYi+/60QSN+U8nDnRc3xZ+2Sti98ViEskn dV9lRga/vajPwuw6IpL25mGMKEEqT1xQgutIStU+vcxpBJCZpOK140/7Z5HuBOzgT7nt ad5hePvaNopYMCRSzbLr/kqp7b5PqFTybp9+D+JL60wc0K/h9aYxDqSWg/eulnGvjh2x hm26AoCpIWReTCBXIHX/xAJF77f4aWhQNf6rfaQBgfwG9/HHv/ZWe8ymQfMO3JIEHdx8 6TerUfS22z/Y/Q1UD+nhpdu3Kt1FmL+dqvV3EQx0mYu93Y3OxLNYhdqNed2rAOKUAUiq rBaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=chC3YbDWYzniOxK3WtaulowJ3UlKNSrFvxxb8N8ry0w=; b=TdYlbAkoOZNc9wSdk3FnA7pgFvGgBacrrOGt03otGDprT01dWPPbFnH+bMHL2oejYH VXA5anAq32AJjm3MZKfnnazit4R/o4vzQkW7HMLYrOFN6WxOauBGGFmiFBcWGWw3XtEy dZ1RwaY/ZNi3c91rAt2LVPKcJZNcxPXOBYKmSve3DwyIyYUWQPf/sNbo4f5F+7+nUroU r9muUrJcWB0k2o2n3EpWb9GL8lr760MjzbCf7/mVNWVi1bKIFE3Dqvg4/Jqvu4Uo1o5R LErjCUIgLXe/jK0JpftR8NGndkHuvVuB5Vl0uEg+Cg5h7pulN4KdoN86NhTd7wtnq2wN gKPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxAFOgbV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si36740268jaj.108.2021.11.08.09.42.05; Mon, 08 Nov 2021 09:42:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxAFOgbV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239302AbhKHP3j (ORCPT + 99 others); Mon, 8 Nov 2021 10:29:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbhKHP3i (ORCPT ); Mon, 8 Nov 2021 10:29:38 -0500 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D0EC061570; Mon, 8 Nov 2021 07:26:54 -0800 (PST) Received: by mail-ot1-x32e.google.com with SMTP id o15-20020a9d410f000000b0055c942cc7a0so3368811ote.8; Mon, 08 Nov 2021 07:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=chC3YbDWYzniOxK3WtaulowJ3UlKNSrFvxxb8N8ry0w=; b=JxAFOgbVnHLwfMIQIECNqVQSIEcoAgACmUt5826itb3T19FXbfVsqi6R8OHrxR6Pi/ a3fKmxc9lYKcvMCR+G/vJOWKMYwYpyIXVyVrPZbz6eYkMlyM4lVnixHHKlX3KQvQ4csZ dhgKnqbASbzPXqa5kxmcdMnb8bUnIgE2DxHEeRR+CABmKJEr9jnhQvavvAVu+yK1A2Il ZJS2fy4SEhOVhDHSF2XdjyB3ZQj+yuOuKXQnca4wZznE2KcsTlEo6XuaWOEe1P9FWpbV L6KelWpZhRfIIL1UzRbg2aZdaMQwH1zST7aFFyFtRUNfb5fcv3hche3SdjjNpo6K+4Vj UmZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=chC3YbDWYzniOxK3WtaulowJ3UlKNSrFvxxb8N8ry0w=; b=yj88Rb94cAGGbbT83zOfOEWIEjkdF2Y8EoUBWFu0aZRJbSCWzkGt9XiQwY8vJlY1LS 7/XCk/wK8lZkkVOUCsUbx6scuQQ/7gqD+IVJa9m44BUJqzB7AWxRykgjJYoPKniZvXN7 iZB9qWK/2ZEPseRHmMxzpKzFd8vo4PvlmEKFnlHTehMDi0cUyZMa2r1weK6WeKBnZHL/ +lkJUkm1q2Uol6mMVUl/KHvPkm4dl3YtU4DmUIamXJToY+rkrlR1KUVbgiQxkaLeo48z K5zNAlMIJkYg05mZVopwPKGdVLHjjOSJdi3kWKZjjfrKuhdGpEHnIKdgyr8pQm2OXhXq tznw== X-Gm-Message-State: AOAM530izV3ymCa8eNXxzNytdAPTuXyEtu4R9THDN8okvRU5l46lhYmp VYhprwpufdNLerNTg4FyVrk= X-Received: by 2002:a9d:590e:: with SMTP id t14mr530975oth.34.1636385213881; Mon, 08 Nov 2021 07:26:53 -0800 (PST) Received: from [192.168.1.103] (cpe-24-31-246-181.kc.res.rr.com. [24.31.246.181]) by smtp.gmail.com with ESMTPSA id 97sm480880otv.80.2021.11.08.07.26.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 07:26:53 -0800 (PST) Sender: Larry Finger Message-ID: <0d24888e-0132-4a9a-f8cb-4f5a3d4b10c6@lwfinger.net> Date: Mon, 8 Nov 2021 09:26:51 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v2] staging: r8188eu: Fix breakage introduced when 5G code was removed Content-Language: en-US To: David Laight , "gregkh@linuxfoundation.org" Cc: "phil@philpotter.co.uk" , "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" , Zameer Manji , kernel test robot , Stable References: <20211107173543.7486-1-Larry.Finger@lwfinger.net> <8e4dd863ae894c8488a3d3d0f6a11f66@AcuMS.aculab.com> From: Larry Finger In-Reply-To: <8e4dd863ae894c8488a3d3d0f6a11f66@AcuMS.aculab.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/21 04:55, David Laight wrote: > From: Larry Finger >> Sent: 07 November 2021 17:36 >> >> In commit 221abd4d478a ("staging: r8188eu: Remove no more necessary definitions >> and code"), two entries were removed from RTW_ChannelPlanMap[], but not replaced >> with zeros. The position within this table is important, thus the patch broke >> systems operating in regulatory domains osted later than entry 0x13 in the table. >> Unfortunately, the FCC entry comes before that point and most testers did not see >> this problem. > ... >> drivers/staging/r8188eu/core/rtw_mlme_ext.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c >> index 55c3d4a6faeb..5b60e6df5f87 100644 >> --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c >> +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c >> @@ -107,6 +107,7 @@ static struct rt_channel_plan_map RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = { >> {0x01}, /* 0x10, RT_CHANNEL_DOMAIN_JAPAN */ >> {0x02}, /* 0x11, RT_CHANNEL_DOMAIN_FCC_NO_DFS */ >> {0x01}, /* 0x12, RT_CHANNEL_DOMAIN_JAPAN_NO_DFS */ >> + {0x00}, /* 0x13 */ >> {0x02}, /* 0x14, RT_CHANNEL_DOMAIN_TAIWAN_NO_DFS */ >> {0x00}, /* 0x15, RT_CHANNEL_DOMAIN_ETSI_NO_DFS */ >> {0x00}, /* 0x16, RT_CHANNEL_DOMAIN_KOREA_NO_DFS */ >> @@ -118,6 +119,7 @@ static struct rt_channel_plan_map RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = { >> {0x00}, /* 0x1C, */ >> {0x00}, /* 0x1D, */ >> {0x00}, /* 0x1E, */ >> + {0x00}, /* 0x1F, */ >> /* 0x20 ~ 0x7F , New Define ===== */ >> {0x00}, /* 0x20, RT_CHANNEL_DOMAIN_WORLD_NULL */ >> {0x01}, /* 0x21, RT_CHANNEL_DOMAIN_ETSI1_NULL */ > > Is it worth changing that to use designated array initialisers? > so: > [0x21] = {0x01} /* RT_CHANNEL_DOMAIN_ETS11_NULL */ > > Then the {0x00} entries can be missed out (or just commented as not used). Yes, we could save a few bytes but risk getting into trouble aligning with some other array that I have not located. I think it should be left the way it is. Larry