]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix num_mcast_sta counting issues
authorFelix Fietkau <nbd@openwrt.org>
Mon, 23 Apr 2012 17:49:03 +0000 (19:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Apr 2012 18:54:28 +0000 (14:54 -0400)
commitfb4a5e044f361a2e937c552f4a5713d2d6a75ec5
tree47a2a239639feaafd89729224d9e26492bb4eccd
parentbbf7450f865dcd58e132c073df5f6b42e129a6d3
mac80211: fix num_mcast_sta counting issues

Moving a STA to an AP VLAN prevents num_mcast_sta from being decremented
once the STA leaves, because sta->sdata changes. Fix this by checking
for AP VLANs as well.

Also exclude 4-addr VLAN stations from num_mcast_sta - remote 4-addr
stations ignore 3-address multicast frames anyway. In a typical bridge
configuration they receive the same packets as 4-address unicast.

This patch also fixes clearing the sdata->u.vlan.sta pointer when the
STA is removed from a 4-addr VLAN.

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