• F
    mac80211: fix num_mcast_sta counting issues · 7e3ed02c
    Felix Fietkau 提交于
    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: NFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    7e3ed02c
cfg.c 72.0 KB