Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1436098rdb; Mon, 2 Oct 2023 09:24:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPvKE52AoOwfbXqdHB7BVavurri1IuextoOplDeOym149QRDU3D71hvDRTgeHQsqsWNeYD X-Received: by 2002:a05:6a20:4406:b0:153:dff0:c998 with SMTP id ce6-20020a056a20440600b00153dff0c998mr15674975pzb.6.1696263853671; Mon, 02 Oct 2023 09:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696263853; cv=none; d=google.com; s=arc-20160816; b=aRJiOdbDrC3AIEZtrua6Hk1CCfHRXEdwJoP2gT9rZPdOF9v5MDJAvfEwDTuIulZhRe doKqbpblO2zHxlpjL32mBzIe+kcgnQYd6ckNAwmQQeNt1xTVpVIjasa+6oMxFW5sYi9J kHYtb5o/UTkwmBJC4/PL5dAVocrPL8+6V2jtzO2ubnVpbnxOP+vGFdedLIOHsdLh1h7f OcqTYMhmrlycUH5XC+gUSMrHooYtnMO2+NZFJ8201+g4UKJagbsOF5TMqElc6itwt1YA txVzawc9TUBFDU9SonjU+1gnr0rWUvVDzFiPEtZ/1pnRjuNXA9KOV8fEy3sf3AvLY18Q tCmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=lXX3EF7ks8xey+ychTp/yRhjvwTVZNoy8N07LD96IUo=; fh=kDiSdFZeMf+RAyr8LplNxans8GtWQSpceAQarVCIyW4=; b=ZG/3Zz4eE5kUL4w/+rDHvsgDVAyCykcbXaPfDamP9Njh13ZvmU/IF3WSzMbaBhm6R+ O3+zWw+M5RmbKJ9iwRqO3nWh6oZC0x9LaLDzpPFgXiG6kU4mgT3CoYXSE7sdu0J2ZMdG oLMSYXhGGX7BV+XJ7Etj5zKhNFagI1Dt8ecxtYZLHzV1JbR5JVcTTbZCoi4Th93zM6XG u2KSnXInPyN+UqdMLO1ILINqTsfyvJrvgTVHdbouGLsztLOLkZROZ2PkA8mZ9jH7u2HV LoZT5bTJNEqRZ2oJk/n2F0s4CL9IpyTBlbbyCsMghRoXpfQ5mDbhG97wpq3XsBynr9Df yvLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B/DJbAtO"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s3-20020a63d043000000b00578b5eb76d1si24900041pgi.226.2023.10.02.09.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 09:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B/DJbAtO"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4110880ACB69; Mon, 2 Oct 2023 09:12:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238380AbjJBQMc (ORCPT + 53 others); Mon, 2 Oct 2023 12:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238116AbjJBQMb (ORCPT ); Mon, 2 Oct 2023 12:12:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B86A93 for ; Mon, 2 Oct 2023 09:12:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 949E4C433C7; Mon, 2 Oct 2023 16:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696263147; bh=hCn2OqcTzFqtqEAqQGkyNCHh5hZQMbM6wx1pLBkbcNA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=B/DJbAtO0VNuzlSnWjrblLfUVn6gZ2yvqAk2XsH+Qfn0YI5xvxT3UioDne8Pn7yc4 8bTtwQnWWcKFj/hD5FEni41XhlTh9j/KpNA7z6DHoEm/uLjb3TDexulo70UeHQbFma AcPMQ5YLAWtKEcjL0ZQBk7k563Nyc3T9iC6CXnFr7HTdsbZ2sM08k2aMXSQyI2G/4K dorsYkzDJNXtdsvLt610EPoXcY3fzsq5TypDwf9vvep88r1/KOK7NFxMBwDPdNm2ct AvvpcPNPCjEeXj3UgpJv7D+ZN2pXLyRu1IGe5gRZCKPopzd5bZBbFkYyatkKt4D1Nx R7jERPeZKSAnQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: wifi: ath12k: do not drop data frames from unassociated stations From: Kalle Valo In-Reply-To: <1689749074-14676-1-git-send-email-quic_haric@quicinc.com> References: <1689749074-14676-1-git-send-email-quic_haric@quicinc.com> To: Hari Chandrakanthan Cc: , , , Hari Chandrakanthan User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169626314465.3936351.82532246234260943.kvalo@kernel.org> Date: Mon, 2 Oct 2023 16:12:26 +0000 (UTC) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 09:12:31 -0700 (PDT) Hari Chandrakanthan wrote: > >From 'IEEE Std 802.11-2020 section 11.3.4.1': > If STA A in an infrastructure BSS receives a Class 2 or Class 3 frame > from STA B that is not authenticated with STA A > (i.e., the state for STA B is State 1), STA A shall discard the frame. > If the frame has an individual address in the Address 1 field, > the MLME of STA A shall send a Deauthentication frame to STA B. > > When data frames from unassociated stations are received by an AP, > the AP is supposed to send a deauthentication/disassociation frame with > reason code "Class 2 frame received from nonauthenticated STA" or > "Class 3 frame received from nonassociated STA". > > But ath12k AP doesn't send deauthentication/disassociation frames, > when it receives data frames from unassociated stations. > > The ath12k driver drops the data frames from unassociated > station and the upper layer(mac80211/hostapd) is not aware of such event. > Hence deauthentication/disassociation frame is not sent to that > particular station by the AP. > > To address this issue, allow the data frames from the > unassociated stations to reach mac80211 so that mac80211 can send > NL80211_CMD_UNEXPECTED_FRAME event to userspace(hostapd) and hostapd > upon receiving the event will send the deauthentication/disassociation > frame with proper reason code. > > The data frame from unassociated stations gets dropped in mac80211. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0-02903-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Hari Chandrakanthan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 1e55298a6394 wifi: ath12k: do not drop data frames from unassociated stations -- https://patchwork.kernel.org/project/linux-wireless/patch/1689749074-14676-1-git-send-email-quic_haric@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches