aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-24 11:57:27 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-24 12:22:29 +0100
commit703515f889124248480f39d65f8704548cbf1c09 (patch)
treecd06f11ec2cc4e6ddb75c8982ecaab9882d3a9ed /package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch
parentd27dd6298b0f9a66199758b32ce19c0932ef2ee0 (diff)
downloadupstream-703515f889124248480f39d65f8704548cbf1c09.tar.gz
upstream-703515f889124248480f39d65f8704548cbf1c09.tar.bz2
upstream-703515f889124248480f39d65f8704548cbf1c09.zip
mac80211: sync with master branch as of 9edff13abd97
Includes the following changes: 9edff13abd mac80211: disable potentially harmful PS software retry for A-MPDU sessions 75216a76b0 mac80211: backport upstream fix for CSA in IBSS mode 368cc8ef47 mac80211: update brcmfmac backporting brcmf_err cleanups 66a63d25c4 mac80211: fix build on linux 3.18 9eacb9d7fc rt2x00: mt7620: lots of improvements fd94fa61a7 mac80211: brcmfmac: update Raspberry Pi patches for linux 4.9 649e766a64 mac80211: update to wireless-testing 2017-01-31 47540afa5d ath9k: add a warning to the tx99 config option b367eef21d mac80211: rt2x00: add support for external LNA on MT7620 9200e168f2 mac80211: move (& update) upstream accepted brcmfmac patches Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch')
-rw-r--r--package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch b/package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch
deleted file mode 100644
index 7700254cd1..0000000000
--- a/package/kernel/mac80211/patches/320-mac80211-fix-A-MSDU-outer-SA-DA.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From: Michael Braun <michael-dev@fami-braun.de>
-Date: Sat, 15 Oct 2016 13:28:19 +0200
-Subject: [PATCH] mac80211: fix A-MSDU outer SA/DA
-
-According to IEEE 802.11-2012 section 8.3.2 table 8-19, the outer SA/DA
-of A-MSDU frames need to be changed depending on FromDS/ToDS values.
-
-Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
-[use ether_addr_copy and add alignment annotations]
-Signed-off-by: Johannes Berg <johannes.berg@intel.com>
----
-
---- a/include/net/mac80211.h
-+++ b/include/net/mac80211.h
-@@ -1438,7 +1438,7 @@ enum ieee80211_vif_flags {
- struct ieee80211_vif {
- enum nl80211_iftype type;
- struct ieee80211_bss_conf bss_conf;
-- u8 addr[ETH_ALEN];
-+ u8 addr[ETH_ALEN] __aligned(2);
- bool p2p;
- bool csa_active;
- bool mu_mimo_owner;
---- a/net/mac80211/ieee80211_i.h
-+++ b/net/mac80211/ieee80211_i.h
-@@ -443,7 +443,7 @@ struct ieee80211_if_managed {
- struct ieee80211_mgd_auth_data *auth_data;
- struct ieee80211_mgd_assoc_data *assoc_data;
-
-- u8 bssid[ETH_ALEN];
-+ u8 bssid[ETH_ALEN] __aligned(2);
-
- u16 aid;
-
---- a/net/mac80211/tx.c
-+++ b/net/mac80211/tx.c
-@@ -3074,6 +3074,7 @@ static bool ieee80211_amsdu_prepare_head
- int subframe_len = skb->len - hdr_len;
- void *data;
- u8 *qc, *h_80211_src, *h_80211_dst;
-+ const u8 *bssid;
-
- if (info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE)
- return false;
-@@ -3097,6 +3098,28 @@ static bool ieee80211_amsdu_prepare_head
- ether_addr_copy(amsdu_hdr->h_source, h_80211_src);
- ether_addr_copy(amsdu_hdr->h_dest, h_80211_dst);
-
-+ /* according to IEEE 802.11-2012 8.3.2 table 8-19, the outer SA/DA
-+ * fields needs to be changed to BSSID for A-MSDU frames depending
-+ * on FromDS/ToDS values.
-+ */
-+ switch (sdata->vif.type) {
-+ case NL80211_IFTYPE_STATION:
-+ bssid = sdata->u.mgd.bssid;
-+ break;
-+ case NL80211_IFTYPE_AP:
-+ case NL80211_IFTYPE_AP_VLAN:
-+ bssid = sdata->vif.addr;
-+ break;
-+ default:
-+ bssid = NULL;
-+ }
-+
-+ if (bssid && ieee80211_has_fromds(hdr->frame_control))
-+ ether_addr_copy(h_80211_src, bssid);
-+
-+ if (bssid && ieee80211_has_tods(hdr->frame_control))
-+ ether_addr_copy(h_80211_dst, bssid);
-+
- qc = ieee80211_get_qos_ctl(hdr);
- *qc |= IEEE80211_QOS_CTL_A_MSDU_PRESENT;
-