]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix sta lookup with AP VLAN interfaces and injected frames
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2010 22:25:24 +0000 (23:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Feb 2010 20:40:08 +0000 (15:40 -0500)
commitc3cfe1a61f46a74c56890a5f3b9cc681c6402472
tree7819dc3d403d80788fdc1c4b5af337fff2989bcf
parent94c01e0e449ccb9b9525d10fb4fa5727385ed9ee
mac80211: fix sta lookup with AP VLAN interfaces and injected frames

When injecting frames, mac80211 currently looks for the first AP
interface that matches the source address of the injected frame.
This breaks when such a frame is directed at a STA that has been moved
to a VLAN. This patch fixes it by using sta_info_get_bss instead of
sta_info_get, which also finds stations belonging to a VLAN interface
of the same BSS as the AP interface.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c