1. 16 12月, 2011 3 次提交
    • J
      mac80211: reduce station management complexity · 4d33960b
      Johannes Berg 提交于
      Now that IBSS no longer needs to insert stations
      from atomic context, we can get rid of all the
      special cases for that, and even get rid of the
      sta_lock (though it needs to stay as tim_lock.)
      
      This makes the station management code much more
      straight-forward.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4d33960b
    • J
      mac80211: count authorized stations per BSS · 29623892
      Johannes Berg 提交于
      Currently, each AP interface will send multicast
      traffic if any interface has a station entry even
      if that station entry is allocated only. With the
      new station state management we can easily fix it
      by adding a counter that counts each authorized
      station only and send multicast traffic only when
      the correct interface has at least one authorized
      station.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      29623892
    • J
      mac80211: refactor station state transitions · d9a7ddb0
      Johannes Berg 提交于
      Station entries can have various states, the most
      important ones being auth, assoc and authorized.
      This patch prepares us for telling the driver about
      these states, we don't want to confuse drivers with
      strange transitions, so with this we enforce that
      they move in the right order between them (back and
      forth); some transitions might happen before the
      driver even knows about the station, but at least
      runtime transitions will be ordered correctly.
      
      As a consequence, IBSS and MESH stations will now
      have the ASSOC flag set (so they can transition to
      AUTHORIZED), and we can get rid of a special case
      in TX processing.
      
      When freeing a station, unwind the state so that
      other parts of the code (or drivers later) can rely
      on the transitions.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d9a7ddb0
  2. 07 12月, 2011 1 次提交
  3. 29 11月, 2011 7 次提交
  4. 22 11月, 2011 4 次提交
  5. 18 11月, 2011 1 次提交
    • J
      mac80211: remove crypto special case for auth frames · a7f23f0a
      Johannes Berg 提交于
      The shared key authentication frame that needs to be
      encrypted (the third one in the shared key handshake)
      is directly encrypted in ieee80211_send_auth and the
      IEEE80211_TX_INTFL_DONT_ENCRYPT is set. All others
      are not encrypted, so the only way to get to this is
      erroneously on no-monitor AP side.
      
      Remove the special case for authentication frames to
      fix the AP shared key side when operating without
      cooked monitor interfaces -- with cooked monitor the
      IEEE80211_TX_INTFL_DONT_ENCRYPT also gets set, so we
      never get here -- an AP never encrypts auth frames.
      
      Without this patch, an AP operating in WEP mode with
      my no-monitor patches would erroneously encrypt all
      authentication frames, instead of none.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a7f23f0a
  6. 12 11月, 2011 1 次提交
  7. 10 11月, 2011 1 次提交
  8. 09 11月, 2011 2 次提交
  9. 01 11月, 2011 1 次提交
  10. 15 10月, 2011 1 次提交
  11. 12 10月, 2011 6 次提交
  12. 04 10月, 2011 1 次提交
  13. 01 10月, 2011 8 次提交
  14. 15 9月, 2011 2 次提交
  15. 14 9月, 2011 1 次提交