mac80211: do not pass AP VLAN vif pointers to drivers
commitbc192f8918ab8e41ba53b9ef881bc425ae92ed1b
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Nov 2011 14:09:49 +0000 (23 21:09 +0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 19:43:52 +0000 (28 14:43 -0500)
treea7a0e2e7eefda7fefdd1942821b9d71ab7610a5c
parent5ccc32ff46065f031075cdbbdfe21b9e3b05aaad
mac80211: do not pass AP VLAN vif pointers to drivers

This fixes frequent WARN_ONs when using AP VLAN + aggregation, as these vifs
are virtual and not registered with drivers.
Use sta_info_get_bss instead of sta_info_get in aggregation callbacks, so
that these callbacks can find the station entry when called with the AP vif.

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