mac80211: fix WDS AP authentication issues (#11261, #11318)
[openwrt/staging/yousong.git] / package / mac80211 / patches / 300-pending_work.patch
index 79d8277ed9b83518d15c92afd817416d2eca2cab..668005b7f322d8593e890bf8e0071b9c2c117787 100644 (file)
                /*
                 * No associated STAs - no need to send multicast
                 * frames.
+@@ -1159,7 +1159,8 @@ ieee80211_tx_prepare(struct ieee80211_su
+               tx->sta = rcu_dereference(sdata->u.vlan.sta);
+               if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr)
+                       return TX_DROP;
+-      } else if (info->flags & IEEE80211_TX_CTL_INJECTED) {
++      } else if (info->flags & IEEE80211_TX_CTL_INJECTED ||
++                 tx->sdata->control_port_protocol == tx->skb->protocol) {
+               tx->sta = sta_info_get_bss(sdata, hdr->addr1);
+       }
+       if (!tx->sta)