1 From: Johannes Berg <johannes.berg@intel.com>
2 Date: Fri, 20 Mar 2015 16:24:22 +0100
3 Subject: [PATCH] mac80211: drop 4-addr VLAN frames earlier if not
6 If there's no station on the 4-addr VLAN interface, then frames
7 cannot be transmitted. Drop such frames earlier, before setting
8 up all the information for them.
10 We should keep the old check though since that code might be used
11 for other internally-generated frames.
13 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
16 --- a/net/mac80211/tx.c
17 +++ b/net/mac80211/tx.c
18 @@ -1920,6 +1920,9 @@ static struct sk_buff *ieee80211_build_h
19 authorized = test_sta_flag(sta, WLAN_STA_AUTHORIZED);
20 wme_sta = sta->sta.wme;
22 + } else if (sdata->wdev.use_4addr) {
26 ap_sdata = container_of(sdata->bss, struct ieee80211_sub_if_data,