]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: avoid reflecting frames back to the client
authorJohannes Berg <johannes.berg@intel.com>
Tue, 9 Oct 2018 08:00:21 +0000 (10:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 14:00:59 +0000 (16:00 +0200)
commit7028d069719164733bd26ffb885d01869bd6cce8
treebec310b5ec4ebc3e09924138cfaece364384f17f
parentfc97e9ecdc41c3051a07a3597da6f41d63710a04
mac80211: avoid reflecting frames back to the client

I'm not really sure exactly _why_ I've been carrying a note
for what's probably _years_ to check that we don't do this,
but we clearly do reflect frames back to the station itself
if it sends such.

One way or the other, it's useless since the station doesn't
really need the AP to talk to itself, so suppress it.

While at it, clarify some of the logic by removing skb->data
references in favour of the destination address (pointer) we
already have separately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c