1. 18 9月, 2020 2 次提交
  2. 31 7月, 2020 3 次提交
  3. 25 6月, 2020 1 次提交
  4. 08 6月, 2020 1 次提交
  5. 27 5月, 2020 3 次提交
  6. 24 4月, 2020 2 次提交
  7. 20 3月, 2020 1 次提交
  8. 24 2月, 2020 2 次提交
  9. 07 2月, 2020 1 次提交
  10. 15 1月, 2020 1 次提交
  11. 08 10月, 2019 1 次提交
  12. 29 8月, 2019 2 次提交
  13. 19 6月, 2019 1 次提交
  14. 14 6月, 2019 1 次提交
  15. 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
  16. 29 3月, 2019 1 次提交
  17. 22 2月, 2019 2 次提交
  18. 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
  19. 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
  20. 19 12月, 2018 2 次提交
  21. 18 12月, 2018 1 次提交
  22. 05 12月, 2018 1 次提交
  23. 09 11月, 2018 1 次提交
  24. 11 10月, 2018 1 次提交
    • J
      mac80211: avoid reflecting frames back to the client · 42dca5ef
      Johannes Berg 提交于
      I'm not really sure exactly _why_ I've been carrying a note
      for what's probably _years_ to check that we don't do this,
      but we clearly do reflect frames back to the station itself
      if it sends such.
      
      One way or the other, it's useless since the station doesn't
      really need the AP to talk to itself, so suppress it.
      
      While at it, clarify some of the logic by removing skb->data
      references in favour of the destination address (pointer) we
      already have separately.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      42dca5ef
  25. 11 9月, 2018 1 次提交
  26. 05 9月, 2018 4 次提交
  27. 29 8月, 2018 1 次提交
    • S
      mac80211: add missing WFA Multi-AP backhaul STA Rx requirement · 1ecef20c
      Sathishkumar Muruganandam 提交于
      The current mac80211 WDS (4-address mode) can be used to cover most of the
      Multi-AP requirements for Data frames per the WFA Multi-AP Specification v1.0.
      When configuring AP/STA interfaces in 4-address mode, they are able to function
      as fronthaul AP/backhaul STA of Multi-AP device complying below
      Tx, Rx requirements except one missing STA Rx requirement added by this patch.
      
      Multi-AP specification section 14.1 describes the following requirements:
      
      Transmitter requirements
      ------------------------
      1. Fronthaul AP
              i) When DA!=RA of backhaul STA, must use 4-address format
              ii) When DA==RA of backhaul STA, shall use either 3-address
                  or 4-address format with RA updated with STA MAC
      
                  (mac80211 support 4-address format via AP/VLAN interface)
      
      2. Backhaul STA
              i) When SA!=TA of backhaul STA, must use 4-address format
              ii) When SA==TA of backhaul STA, shall use either 3-address
                  or 4-address format with RA updated with AP MAC
      
                  (mac80211 support 4-address format via use_4addr)
      
      Receiver requirements
      ---------------------
      1. Fronthaul AP
              i) When SA!=TA of backhaul STA, must support receiving 4-address
                 format frames
              ii) When SA==TA of backhaul STA, must support receiving both
                  3-address and 4-address format frames
      
                  (mac80211 support both 3-addr & 4-addr via AP/VLAN interface)
      
      2. Backhaul STA
              i) When DA!=RA of backhaul STA, must support receiving 4-address
                 format frames
              ii) When DA==RA of backhaul STA,  must support receiving both
                  3-address and 4-address format frames
      
                  (mac80211 support only receiving 4-address format via
                   use_4addr)
      
      This patch addresses the above Rx requirement (ii) for backhaul STA to receive
      unicast (DA==RA) 3-address frames in addition to 4-address frames.
      
      The current design doesn't accept 3-address frames when configured in 4-address
      mode (use_4addr). Hence add a check to allow 3-address frames when DA==RA of
      backhaul STA (adhering to Table 9-26 of IEEE Std 802.11™-2016).
      
      This case was tested with a bridged station interface when associated with
      a non-mac80211 based vendor AP implementation using 3-address frames for WDS.
      
      STA was able to support the Multi-AP Rx requirement when DA==RA. No issues,
      no loops seen when tested with mac80211 based AP as well.
      
      Verified and confirmed all other Tx and Rx requirements of AP and STA for
      Multi-AP respectively. They all work using the current mac80211-WDS design.
      Signed-off-by: NSathishkumar Muruganandam <murugana@codeaurora.org>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      1ecef20c