Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp270037rwb; Wed, 21 Sep 2022 22:08:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qZP9KUcealLxxVw6yXLhZ3E59LIH4xy69JxvUmSJb/PUGkodL2kXbWfjYj6DCuM261eix X-Received: by 2002:a05:6402:4305:b0:451:7b78:f2e0 with SMTP id m5-20020a056402430500b004517b78f2e0mr1476517edc.342.1663823289807; Wed, 21 Sep 2022 22:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663823289; cv=none; d=google.com; s=arc-20160816; b=Ja8XEXcoC3nvTuVCX2tzexnwQ9HR9KNaPSwkx8zmdTSxNakb6+aYKz8Mk6pTz6h7RO mrzr2bbrr6pLTzC4aUhuYI5VqT6K2yWiY8eL8FRqBGP4Ncaz9JMJCClOZH6f9goBRUo+ ZnH4hXFESw+V53kUR5326twkwoxMHSeCZz27sQQjESBU4rp7SuPeK1xyddt48TXo79IU wePOn4MzZlumoCWU4/UdkgK+UWpaIDcJzZ13Gjo40QifPIvGeekZh5nERvXcmpwGtNDy gVTuzNAHz/jWtj4e7RCHWnmZuPux1EykK1hoTMnBoxA2CW8kCv1GxJDa4DRwGOWs7ECA pVTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=GF0CYO2Dm8RXJM3Cde1QoXXeKF/zyen0Ux8H98/BwIY=; b=P37s7igU3OCUhkpR1eAiL/R+EapfEmv6qnCTpaAGsaYg0FvPscpu4cI7C8YPQpkVP4 fCe0EqmYStXaU5/oNqh8L4X9cObolu82vJyRhNrATBXgt/SpPe5pnEHQmWp5mQTHQ3B4 y9FgsQyYbA8uyIrxGshgrZ2fsDXVc1tpS9dDYnu3hpfuGx6l+K5IhdAuIL4gufRbzmbl V7J37C1JW0FOOXkAGgivLjbJIrdpy+tXiNmyof24ELgTGmpjiMoTvslsKXh7pPMOfWN9 jZvPUFrLYKwbhQBvlo3KPZqoou8NJ3GpMxHP3/LZXSw2NYexCMjCJuRMjCNVDw7woPmI vKYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TY3LAUxK; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056402271300b00453aa9656a3si4843229edd.466.2022.09.21.22.07.45; Wed, 21 Sep 2022 22:08:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TY3LAUxK; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiIVEnO (ORCPT + 63 others); Thu, 22 Sep 2022 00:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiIVEnN (ORCPT ); Thu, 22 Sep 2022 00:43:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1721893226; Wed, 21 Sep 2022 21:43:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A66D660E15; Thu, 22 Sep 2022 04:43:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAD3DC433C1; Thu, 22 Sep 2022 04:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663821792; bh=PhAbgL0g6IiPTeCsm/2ov7dmC59SuI25dD03BZIxxk0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TY3LAUxKuiZf0lCB4i2rxsK8RJZcPtnuHNhubNMG3XhOS4LgwVH4YWlcg8YFqCyBl JwtOcFLsnJ8GwbMj597NHiD982jm800vmWyGe8m+BiC5ka248IUxdOZfJ96pxHjrvr lbwo3h8ReyH2gvDFbISBfRKu1N/SVhUYJGNxYsiE+eUSwuqLDC50ITYeJep77nnjcQ sI3+Czi+qyS2uLNqKnu92Jh3Y+z/Z89TiE5/axdr+Y9GYoJ/COlG8PzpHLTBqUxn0r wNjOYynuhrGOXYZMzh7qtV52L75kidJBcPFn2Mrjx1z611d16X+FxWHVs8lRTiTxGf 3cxYgzsEBwdWQ== From: Kalle Valo To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Arend van Spriel , Franky Lin , Hante Meuleman , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Syed Rafiuddeen , Syed Rafiuddeen , Chung-Hsien Hsu , Chi-hsien Lin , Alvin =?utf-8?Q?=C5=A0ipraga?= , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] brcmfmac: Update SSID of hidden AP while informing its bss to cfg80211 layer References: <20220722115632.620681-1-alvin@pqrs.dk> <20220722115632.620681-7-alvin@pqrs.dk> Date: Thu, 22 Sep 2022 07:43:03 +0300 In-Reply-To: <20220722115632.620681-7-alvin@pqrs.dk> ("Alvin \=\?utf-8\?Q\?\=C5\=A0ipraga\=22's\?\= message of "Fri, 22 Jul 2022 13:56:31 +0200") Message-ID: <874jx06mug.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Alvin =C5=A0ipraga writes: > From: Syed Rafiuddeen > > cfg80211 layer on DUT STA is disconnecting ongoing connection attempt aft= er > receiving association response, because cfg80211 layer does not have valid > AP bss information. On association response event, brcmfmac communicates > the AP bss information to cfg80211 layer, but SSID seem to be empty in AP > bss information, and cfg80211 layer prints kernel warning and then > disconnects the ongoing connection attempt. > > SSID is empty in SSID IE, but 'bi->SSID' contains a valid SSID, so > updating the SSID for hidden AP while informing its bss information > to cfg80211 layer. > > Signed-off-by: Syed Rafiuddeen Syed's email address in From and s-o-b doesn't match. > @@ -3018,6 +3019,12 @@ static s32 brcmf_inform_single_bss(struct brcmf_cf= g80211_info *cfg, > notify_ielen =3D le32_to_cpu(bi->ie_length); > bss_data.signal =3D (s16)le16_to_cpu(bi->RSSI) * 100; >=20=20 > + ssid =3D brcmf_parse_tlvs(notify_ie, notify_ielen, WLAN_EID_SSID); > + if (ssid && ssid->data[0] =3D=3D '\0' && ssid->len =3D=3D bi->SSID_len)= { > + /* Update SSID for hidden AP */ > + memcpy((u8 *)ssid->data, bi->SSID, bi->SSID_len); > + } memcpy() takes a void pointer so the cast is not needed. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes