linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: allow station search on AP/VLANs
@ 2018-07-30  6:20 Manikanta Pubbisetty
  2018-08-14 11:28 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Manikanta Pubbisetty @ 2018-07-30  6:20 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Manikanta Pubbisetty

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 <mpubbise@codeaurora.org>
---
 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;
 
 		/*
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211: allow station search on AP/VLANs
  2018-07-30  6:20 [PATCH] mac80211: allow station search on AP/VLANs Manikanta Pubbisetty
@ 2018-08-14 11:28 ` Johannes Berg
  2018-08-14 11:52   ` Manikanta Pubbisetty
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2018-08-14 11:28 UTC (permalink / raw)
  To: Manikanta Pubbisetty; +Cc: linux-wireless

On Mon, 2018-07-30 at 11:50 +0530, Manikanta Pubbisetty wrote:
> 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.

I don't see how this makes sense. We use sta_info_get_bss() later, so
any AP/AP_VLAN would be OK, so we don't need to try it twice for
AP_VLAN?

johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211: allow station search on AP/VLANs
  2018-08-14 11:28 ` Johannes Berg
@ 2018-08-14 11:52   ` Manikanta Pubbisetty
  2018-08-14 11:53     ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Manikanta Pubbisetty @ 2018-08-14 11:52 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

On 8/14/2018 4:58 PM, Johannes Berg wrote:

> On Mon, 2018-07-30 at 11:50 +0530, Manikanta Pubbisetty wrote:
>> 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.
> I don't see how this makes sense. We use sta_info_get_bss() later, so
> any AP/AP_VLAN would be OK, so we don't need to try it twice for
> AP_VLAN?

AP/VLANs are skipped currently, we don't even get to sta_info_get_bss() 
if the iftype is AP/VLAN. No?

Manikanta

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211: allow station search on AP/VLANs
  2018-08-14 11:52   ` Manikanta Pubbisetty
@ 2018-08-14 11:53     ` Johannes Berg
  2018-08-14 12:13       ` Manikanta Pubbisetty
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2018-08-14 11:53 UTC (permalink / raw)
  To: Manikanta Pubbisetty; +Cc: linux-wireless

On Tue, 2018-08-14 at 17:22 +0530, Manikanta Pubbisetty wrote:
> On 8/14/2018 4:58 PM, Johannes Berg wrote:
> 
> > On Mon, 2018-07-30 at 11:50 +0530, Manikanta Pubbisetty wrote:
> > > 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.
> > 
> > I don't see how this makes sense. We use sta_info_get_bss() later, so
> > any AP/AP_VLAN would be OK, so we don't need to try it twice for
> > AP_VLAN?
> 
> AP/VLANs are skipped currently, we don't even get to sta_info_get_bss() 
> if the iftype is AP/VLAN. No?

Yes, we won't try anything for the AP_VLANs, but when we hit the AP we
look up through everything, no?

Or maybe not - the _bss() just means fallback to AP?

Hmm. But even then I can't really see where this would apply?

johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211: allow station search on AP/VLANs
  2018-08-14 11:53     ` Johannes Berg
@ 2018-08-14 12:13       ` Manikanta Pubbisetty
  0 siblings, 0 replies; 5+ messages in thread
From: Manikanta Pubbisetty @ 2018-08-14 12:13 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless



On 8/14/2018 5:23 PM, Johannes Berg wrote:
> On Tue, 2018-08-14 at 17:22 +0530, Manikanta Pubbisetty wrote:
>> On 8/14/2018 4:58 PM, Johannes Berg wrote:
>>
>>> On Mon, 2018-07-30 at 11:50 +0530, Manikanta Pubbisetty wrote:
>>>> 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.
>>> I don't see how this makes sense. We use sta_info_get_bss() later, so
>>> any AP/AP_VLAN would be OK, so we don't need to try it twice for
>>> AP_VLAN?
>> AP/VLANs are skipped currently, we don't even get to sta_info_get_bss()
>> if the iftype is AP/VLAN. No?
> Yes, we won't try anything for the AP_VLANs, but when we hit the AP we
> look up through everything, no?

I think it does, it gets the correct station information when AP iftype 
is hit.
Makes sense, we can drop this patch.

Manikanta

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-14 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-30  6:20 [PATCH] mac80211: allow station search on AP/VLANs Manikanta Pubbisetty
2018-08-14 11:28 ` Johannes Berg
2018-08-14 11:52   ` Manikanta Pubbisetty
2018-08-14 11:53     ` Johannes Berg
2018-08-14 12:13       ` Manikanta Pubbisetty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).