1. 13 1月, 2010 6 次提交
  2. 07 1月, 2010 1 次提交
  3. 29 12月, 2009 8 次提交
  4. 23 12月, 2009 3 次提交
  5. 22 12月, 2009 3 次提交
    • J
      mac80211: reduce reliance on netdev · 47846c9b
      Johannes Berg 提交于
      For bluetooth 3, we will most likely not have
      a netdev for a virtual interface (sdata), so
      prepare for that by reducing the reliance on
      having a netdev. This patch moves the name
      and address fields into the sdata struct and
      uses them from there all over. Some work is
      needed to keep them sync'ed, but that's not
      a lot of work and in slow paths anyway.
      
      In doing so, this also reduces the number of
      pointer dereferences in many places, because
      of things like sdata->dev->dev_addr becoming
      sdata->vif.addr.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      47846c9b
    • J
      mac80211: make station management completely depend on vif · abe60632
      Johannes Berg 提交于
      The station management currently uses the virtual
      interface, but you cannot add the same station to
      multiple virtual interfaces if you're communicating
      with it in multiple ways.
      
      This restriction should be lifted so that in the
      future we can, for instance, support bluetooth 3
      with an access point that mac80211 is already
      associated to.
      
      We can do that by requiring all sta_info_get users
      to provide the virtual interface and making the RX
      code aware that an address may match more than one
      station struct. Thanks to the previous patches this
      one isn't all that large and except for the RX and
      TX status paths changes has low complexity.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      abe60632
    • J
      mac80211: fix WMM AP settings application · 0183826b
      Johannes Berg 提交于
      My
        commit 77fdaa12
        Author: Johannes Berg <johannes@sipsolutions.net>
        Date:   Tue Jul 7 03:45:17 2009 +0200
      
            mac80211: rework MLME for multiple authentications
      
      inadvertedly broke WMM because it removed, along with
      a bunch of other now useless initialisations, the line
      initialising sdata->u.mgd.wmm_last_param_set to -1
      which would make it adopt any WMM parameter set. If,
      as is usually the case, the AP uses WMM parameter set
      sequence number zero, we'd never update it until the
      AP changes the sequence number.
      
      Add the missing initialisation back to get the WMM
      settings from the AP applied locally.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Cc: stable@kernel.org [2.6.31+]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0183826b
  6. 08 12月, 2009 1 次提交
  7. 20 11月, 2009 1 次提交
    • J
      mac80211: avoid spurious deauth frames/messages · a58ce43f
      Johannes Berg 提交于
      With WEXT, it happens frequently that the SME
      requests an authentication but then deauthenticates
      right away because some new parameters came along.
      Every time this happens we print a deauth message
      and send a deauth frame, but both of that is rather
      confusing. Avoid it by aborting the authentication
      process silently, and telling cfg80211 about that.
      
      The patch looks larger than it really is:
      __cfg80211_auth_remove() is split out from
      cfg80211_send_auth_timeout(), there's no new code
      except __cfg80211_auth_canceled() (a one-liner) and
      the mac80211 bits (7 new lines of code).
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a58ce43f
  8. 19 11月, 2009 1 次提交
  9. 17 11月, 2009 1 次提交
  10. 28 10月, 2009 3 次提交
  11. 29 9月, 2009 1 次提交
  12. 29 8月, 2009 1 次提交
  13. 14 8月, 2009 1 次提交
  14. 05 8月, 2009 5 次提交
  15. 30 7月, 2009 1 次提交
  16. 28 7月, 2009 3 次提交
    • L
      mac80211: fix MLME issuing of probe requests while scanning · 91a3bd76
      Luis R. Rodriguez 提交于
      We were issuing probe requests to the associated AP on the wrong
      band by having our beacon timer loss trigger while we are scanning.
      When we would scan the timer could hit and force us to send a
      probe request to the AP but with a chance we'd be on the wrong band.
      
      This leads to finding no usable bitrate but we should not get so
      far on the xmit path. We should not be trying to send these probe
      request frames so prevent ieee80211_mgd_probe_ap() from sending
      these.
      
      As it turns out all callers of ieee80211_mgd_probe_ap() need this
      check so we just move the scan check there. This means we can remove
      the recenlty added check during ieee80211_sta_monitor_work().
      
      Additionally we now fix a race condition added by the patch
      "mac80211: do not monitor the connection while scanning" which
      had the same check in ieee80211_sta_conn_mon_timer(). The race
      happens because the timer routine *does* a valid check for
      scanning but after it queues work into the mac80211 workqueue
      the work callback can kick off with scanning enabled and cause
      the same issue we were trying to avoid.
      
      The more appropriate solution would be to disable the respective
      timers during scan and re-enable them after scan but requires more
      complex code and testing.
      
      Cc: Christian Lamparter <chunkeey@web.de>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Reported-by: NFabio Rossi <rossi.f@inwind.it>
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      91a3bd76
    • J
      mac80211: fix mlme timeouts · 48531847
      Johannes Berg 提交于
      When a new MLME work is created, its timeout is initialised
      to 0. This is wrong, it could then be thought of as having
      an actual timeout in the future (time_is_after_jiffies() can
      return true). Instead, it should be initialised to jiffies
      so that it will run right away as soon as the mlme work is
      executed.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Reported-by: NLuciano Roth Coelho <luciano.coelho@nokia.com>
      Reported-by: NAlban Browaeys <prahal@yahoo.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      48531847
    • H
      mac80211: Replace {sw, hw}_scanning variables with a bitfield · fbe9c429
      Helmut Schaa 提交于
      Use a bitfield to store the current scan mode instead of two boolean
      variables {sw,hw}_scanning. This patch does not introduce functional
      changes but allows us to enhance the scan flags later (for example
      for background scanning).
      Signed-off-by: NHelmut Schaa <helmut.schaa@googlemail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      fbe9c429