From patchwork Mon Jul 30 06:20:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 10548467 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2667BA755 for ; Mon, 30 Jul 2018 06:20:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 185EE299C9 for ; Mon, 30 Jul 2018 06:20:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16394299CB; Mon, 30 Jul 2018 06:20:35 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 0861C29986 for ; Mon, 30 Jul 2018 06:20:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbeG3Hx5 (ORCPT ); Mon, 30 Jul 2018 03:53:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57398 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbeG3Hx4 (ORCPT ); Mon, 30 Jul 2018 03:53:56 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5037B615D2; Mon, 30 Jul 2018 06:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532931632; bh=8aCZWXdSi0qOjDoYH7YzNa6qMbktRL3vvIqGSKodHx4=; h=From:To:Cc:Subject:Date:From; b=CLJ77MMcBPFpftH8o7/VmN4FcE3asWcf9tvNuJ5eibTkHxU6QbL4jLwFdPX55mkyp 6OI4JX6ZaBWgJ7MlPwl3HrxY2w/vGrBMqjtj0gBklrM6xJ0Pxz4I0y+lFRLoJgFDoI bN/4djLRpxY6NZik9WSAIRWN7DWkOGNgiAKjbqPY= Received: from tejas.qca.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A4FD5615CB; Mon, 30 Jul 2018 06:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532931631; bh=8aCZWXdSi0qOjDoYH7YzNa6qMbktRL3vvIqGSKodHx4=; h=From:To:Cc:Subject:Date:From; b=W9GUxUqaAEuseQb9poaobUKf4NVunvX0xFYzpp0YNLQ/LRKHbvpeTpXkwVeymQDjh C1qH1CJbuOCo3xe1rtZu9KScY/xh4xAL2o2UwGSIwSAvLQ5Q9jeYDj6hJ5mQE3HMAK 1SqBx62YmY5TzuxJIDpMFETA2Or+Nl497iS194Rs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A4FD5615CB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Manikanta Pubbisetty Subject: [PATCH] mac80211: allow station search on AP/VLANs Date: Mon, 30 Jul 2018 11:50:20 +0530 Message-Id: <1532931620-3161-1-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 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 When mac80211 receives a packet, we interate over the list of active interfaces to find the station(which transmitted the packet). Currently, station search is not allowed on AP/VLAN interface; since stations can also get mapped to AP/VLAN interfaces, they are worth considering for station search. Found this during code review; just a theoritical fix. Signed-off-by: Manikanta Pubbisetty --- net/mac80211/rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index a16ba56..e3fbed1 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4391,8 +4391,7 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, if (!ieee80211_sdata_running(sdata)) continue; - if (sdata->vif.type == NL80211_IFTYPE_MONITOR || - sdata->vif.type == NL80211_IFTYPE_AP_VLAN) + if (sdata->vif.type == NL80211_IFTYPE_MONITOR) continue; /*