1. 12 5月, 2021 2 次提交
  2. 06 3月, 2021 1 次提交
  3. 21 1月, 2021 1 次提交
    • F
      mac80211: add rx decapsulation offload support · 80a915ec
      Felix Fietkau 提交于
      This allows drivers to pass 802.3 frames to mac80211, with some restrictions:
      
      - the skb must be passed with a valid sta
      - fast-rx needs to be active for the sta
      - monitor mode needs to be disabled
      
      mac80211 will tell the driver when it is safe to enable rx decap offload for
      a particular station.
      
      In order to implement support, a driver must:
      
      - call ieee80211_hw_set(hw, SUPPORTS_RX_DECAP_OFFLOAD)
      - implement ops->sta_set_decap_offload
      - mark 802.3 frames with RX_FLAG_8023
      
      If it doesn't want to enable offload for some vif types, it can mask out
      IEEE80211_OFFLOAD_DECAP_ENABLED in vif->offload_flags from within the
      .add_interface or .update_vif_offload driver ops
      Signed-off-by: NFelix Fietkau <nbd@nbd.name>
      Link: https://lore.kernel.org/r/20201218184718.93650-6-nbd@nbd.nameSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
      80a915ec
  4. 15 1月, 2021 1 次提交
  5. 11 12月, 2020 2 次提交
  6. 11 11月, 2020 1 次提交
  7. 03 11月, 2020 1 次提交
  8. 28 9月, 2020 2 次提交
  9. 18 9月, 2020 3 次提交
  10. 31 7月, 2020 3 次提交
  11. 25 6月, 2020 1 次提交
  12. 08 6月, 2020 1 次提交
  13. 27 5月, 2020 3 次提交
  14. 24 4月, 2020 2 次提交
  15. 20 3月, 2020 1 次提交
  16. 24 2月, 2020 2 次提交
  17. 07 2月, 2020 1 次提交
  18. 15 1月, 2020 1 次提交
  19. 08 10月, 2019 1 次提交
  20. 29 8月, 2019 2 次提交
  21. 19 6月, 2019 1 次提交
  22. 14 6月, 2019 1 次提交
  23. 26 4月, 2019 1 次提交
    • A
      mac80211: IEEE 802.11 Extended Key ID support · 96fc6efb
      Alexander Wetzel 提交于
      Add support for Extended Key ID as defined in IEEE 802.11-2016.
      
       - Implement the nl80211 API for Extended Key ID
       - Extend mac80211 API to allow drivers to support Extended Key ID
       - Enable Extended Key ID by default for drivers only supporting SW
         crypto (e.g. mac80211_hwsim)
       - Allow unicast Tx usage to be supressed (IEEE80211_KEY_FLAG_NO_AUTO_TX)
       - Select the decryption key based on the MPDU keyid
       - Enforce existing assumptions in the code that rekeys don't change the
         cipher
      Signed-off-by: NAlexander Wetzel <alexander@wetzel-home.de>
      [remove module parameter]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      96fc6efb
  24. 29 3月, 2019 1 次提交
  25. 22 2月, 2019 2 次提交
  26. 25 1月, 2019 1 次提交
    • M
      mac80211: Add attribute aligned(2) to struct 'action' · 7c53eb5d
      Mathieu Malaterre 提交于
      During refactor in commit 9e478066 ("mac80211: fix MU-MIMO
      follow-MAC mode") a new struct 'action' was declared with packed
      attribute as:
      
        struct {
                struct ieee80211_hdr_3addr hdr;
                u8 category;
                u8 action_code;
        } __packed action;
      
      But since struct 'ieee80211_hdr_3addr' is declared with an aligned
      keyword as:
      
        struct ieee80211_hdr {
        	__le16 frame_control;
        	__le16 duration_id;
        	u8 addr1[ETH_ALEN];
        	u8 addr2[ETH_ALEN];
        	u8 addr3[ETH_ALEN];
        	__le16 seq_ctrl;
        	u8 addr4[ETH_ALEN];
        } __packed __aligned(2);
      
      Solve the ambiguity of placing aligned structure in a packed one by
      adding the aligned(2) attribute to struct 'action'.
      
      This removes the following warning (W=1):
      
        net/mac80211/rx.c:234:2: warning: alignment 1 of 'struct <anonymous>' is less than 2 [-Wpacked-not-aligned]
      
      Cc: Johannes Berg <johannes.berg@intel.com>
      Suggested-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NMathieu Malaterre <malat@debian.org>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      7c53eb5d
  27. 19 1月, 2019 1 次提交
    • B
      mac80211: fix miscounting of ttl-dropped frames · a0dc0203
      Bob Copeland 提交于
      In ieee80211_rx_h_mesh_fwding, we increment the 'dropped_frames_ttl'
      counter when we decrement the ttl to zero.  For unicast frames
      destined for other hosts, we stop processing the frame at that point.
      
      For multicast frames, we do not rebroadcast it in this case, but we
      do pass the frame up the stack to process it on this STA.  That
      doesn't match the usual definition of "dropped," so don't count
      those as such.
      
      With this change, something like `ping6 -i0.2 ff02::1%mesh0` from a
      peer in a ttl=1 network no longer increments the counter rapidly.
      Signed-off-by: NBob Copeland <bobcopeland@fb.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      a0dc0203