1. 06 12月, 2012 1 次提交
    • M
      mac80211: don't drop mesh peering frames from unknown STA · 815b8092
      Marco Porsch 提交于
      Previously, mesh peering frames from a STA without a station
      entry were being dropped.
      
      Mesh Peering Open and other frames (WLAN_CATEGORY_SELF_PROTECTED)
      are valid mesh peering frames even if received from a yet unknown
      station; the STA entry will be created in mesh_peer_init later.
      
      The problem didn't occur previously since both STAs receive each
      other's beacons which created the STA entry. However, this causes
      an unnecessary delay and beacons might not be received if either
      node is in PS mode.
      Signed-off-by: NMarco Porsch <marco.porsch@etit.tu-chemnitz.de>
      [reword commit log a bit]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      815b8092
  2. 05 12月, 2012 1 次提交
  3. 28 11月, 2012 1 次提交
  4. 27 11月, 2012 1 次提交
  5. 26 11月, 2012 2 次提交
  6. 23 11月, 2012 1 次提交
  7. 19 11月, 2012 2 次提交
  8. 14 11月, 2012 1 次提交
  9. 05 11月, 2012 1 次提交
  10. 27 10月, 2012 3 次提交
    • J
      mac80211: make sure data is accessible in EAPOL check · 6dbda2d0
      Johannes Berg 提交于
      The code to allow EAPOL frames even when the station
      isn't yet marked associated needs to check that the
      incoming frame is long enough and due to paged RX it
      also can't assume skb->data contains the right data,
      it must use skb_copy_bits(). Fix this to avoid using
      data that doesn't really exist.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      6dbda2d0
    • J
      mac80211: verify that skb data is present · 9b395bc3
      Johannes Berg 提交于
      A number of places in the mesh code don't check that
      the frame data is present and in the skb header when
      trying to access. Add those checks and the necessary
      pskb_may_pull() calls. This prevents accessing data
      that doesn't actually exist.
      
      To do this, export ieee80211_get_mesh_hdrlen() to be
      able to use it in mac80211.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      9b395bc3
    • J
      mac80211: check management frame header length · 4a4f1a58
      Johannes Berg 提交于
      Due to pskb_may_pull() checking the skb length, all
      non-management frames are checked on input whether
      their 802.11 header is fully present. Also add that
      check for management frames and remove a check that
      is now duplicate. This prevents accessing skb data
      beyond the frame end.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      4a4f1a58
  11. 26 10月, 2012 2 次提交
  12. 25 10月, 2012 2 次提交
  13. 19 10月, 2012 1 次提交
    • M
      mac80211: make client powersave independent of interface type · d012a605
      Marco Porsch 提交于
      This patch prepares mac80211 for a later implementation of mesh or
      ad-hoc powersave clients.
      The structures related to powersave (buffer, TIM map, counters) are
      moved from the AP-specific interface structure to a generic structure
      that can be embedded into any interface type.
      The functions related to powersave are prepared to allow easy
      extension with different interface types. For example with:
      
      + } else if (sta->sdata->vif.type == NL80211_IFTYPE_MESH_POINT) {
      +         ps = &sdata->u.mesh.ps;
      
      Some references to the AP's beacon structure are removed where they
      were obviously not used.
      
      The patch compiles without warning and has been briefly tested as AP
      interface with one client in PS mode.
      Signed-off-by: NMarco Porsch <marco.porsch@etit.tu-chemnitz.de>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d012a605
  14. 18 10月, 2012 1 次提交
  15. 05 9月, 2012 1 次提交
  16. 20 8月, 2012 3 次提交
  17. 12 7月, 2012 2 次提交
    • J
      mac80211: redesign scan RX · d48b2968
      Johannes Berg 提交于
      Scan receive is rather inefficient when there are
      multiple virtual interfaces. We iterate all of the
      virtual interfaces and then notify cfg80211 about
      each beacon many times.
      
      Redesign scan RX to happen before everything else.
      Then we can also get rid of IEEE80211_RX_IN_SCAN
      since we don't have to accept frames into the RX
      handlers for scanning or scheduled scanning any
      more. Overall, this simplifies the code.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d48b2968
    • J
      mac80211: track scheduled scan virtual interface · 5260a5b2
      Johannes Berg 提交于
      Instead of tracking whether or not we're in a
      scheduled scan, track the virtual interface
      (sdata) in an RCU-protected pointer to make it
      usable from RX to check the MAC address.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      5260a5b2
  18. 11 7月, 2012 1 次提交
  19. 09 7月, 2012 1 次提交
    • J
      cfg80211: use wdev in mgmt-tx/ROC APIs · 71bbc994
      Johannes Berg 提交于
      The management frame and remain-on-channel APIs will be
      needed in the P2P device abstraction, so move them over
      to the new wdev-based APIs. Userspace can still use both
      the interface index and wdev identifier for them so it's
      backward compatible, but for the P2P Device wdev it will
      be able to use the wdev identifier only.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      71bbc994
  20. 28 6月, 2012 1 次提交
  21. 24 6月, 2012 1 次提交
    • J
      mac80211: clean up debugging · bdcbd8e0
      Johannes Berg 提交于
      There are a few things that make the logging and
      debugging in mac80211 less useful than it should
      be right now:
       * a lot of messages should be pr_info, not pr_debug
       * wholesale use of pr_debug makes it require *both*
         Kconfig and dynamic configuration
       * there are still a lot of ifdefs
       * the style is very inconsistent, sometimes the
         sdata->name is printed in front
      
      Clean up everything, introducing new macros and
      separating out the station MLME debugging into
      a new Kconfig symbol.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      bdcbd8e0
  22. 22 6月, 2012 1 次提交
  23. 20 6月, 2012 1 次提交
  24. 19 6月, 2012 1 次提交
  25. 06 6月, 2012 1 次提交
  26. 17 5月, 2012 1 次提交
  27. 16 5月, 2012 1 次提交
  28. 10 5月, 2012 2 次提交
  29. 24 4月, 2012 1 次提交
  30. 18 4月, 2012 1 次提交