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)
commitb4d57adb727ec7c34020390eeb0eeb9e0a2959bc
tree7819dc3d403d80788fdc1c4b5af337fff2989bcf
parent17ad353b8d9843731258b5d23556667b764939e9
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