319-v4.17-0002-mac80211-support-AP-4-addr-mode-fast-rx.patch 720 B

12345678910111213141516171819202122232425
  1. From: Felix Fietkau <[email protected]>
  2. Date: Fri, 23 Feb 2018 10:00:22 +0100
  3. Subject: [PATCH] mac80211: support AP 4-addr mode fast-rx
  4. Signed-off-by: Felix Fietkau <[email protected]>
  5. ---
  6. --- a/net/mac80211/rx.c
  7. +++ b/net/mac80211/rx.c
  8. @@ -3774,6 +3774,15 @@ void ieee80211_check_fast_rx(struct sta_
  9. !(sdata->flags & IEEE80211_SDATA_DONT_BRIDGE_PACKETS) &&
  10. (sdata->vif.type != NL80211_IFTYPE_AP_VLAN ||
  11. !sdata->u.vlan.sta);
  12. +
  13. + if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN &&
  14. + sdata->u.vlan.sta) {
  15. + fastrx.expected_ds_bits |=
  16. + cpu_to_le16(IEEE80211_FCTL_FROMDS);
  17. + fastrx.sa_offs = offsetof(struct ieee80211_hdr, addr4);
  18. + fastrx.internal_forward = 0;
  19. + }
  20. +
  21. break;
  22. default:
  23. goto clear;