]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix vlan and optimise RX
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 1 Oct 2009 20:06:29 +0000 (22:06 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:33:49 +0000 (16:33 -0400)
commit0c75d77f95a57a53d5027690a3d7c7d04b663e15
tree9869e534f828dd3377cffd2917dfdb6cc72023d3
parent01c85f2bf68fdf054511edf9ae3f1ca2a42fb06c
mac80211: fix vlan and optimise RX

When receiving data frames, we can send them only to
the interface they belong to based on transmitting
station (this doesn't work for probe requests). Also,
don't try to handle other frames for AP_VLAN at all
since those interface should only receive data.

Additionally, the transmit side must check that the
station we're sending a frame to is actually on the
interface we're transmitting on, and not transmit
packets to functions that live on other interfaces,
so validate that as well.

Another bug fix is needed in sta_info.c where in the
VLAN case when adding/removing stations we overwrite
the sdata variable we still need.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c
net/mac80211/sta_info.c
net/mac80211/tx.c