1. 08 12月, 2012 2 次提交
  2. 25 9月, 2012 1 次提交
  3. 11 8月, 2012 1 次提交
  4. 12 7月, 2012 1 次提交
    • J
      mac80211: add time synchronisation with BSS for assoc · 8c358bcd
      Johannes Berg 提交于
      Some drivers (iwlegacy, iwlwifi and rt2x00) today use the
      bss_conf.last_tsf value. By itself though that value is
      completely worthless since it may be ancient. What really
      is needed is synchronisation between some device time and
      the TSF.
      
      To clarify this, rename bss_conf.last_tsf to sync_tsf and
      add sync_device_ts which is obtained from rx_status which
      gets a new field device_timestamp for this purpose. This
      is intentionally not using the mactime field since that
      is used for other things and in IBSS is expected to sync
      with the IBSS's TSF which isn't necessarily true for the
      device timestamp.
      
      Also, since we have the information and it's useful even
      before the connection has been established, give all the
      timing details to the driver before authenticating.
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8c358bcd
  5. 10 7月, 2012 1 次提交
    • S
      iwlegacy: always monitor for stuck queues · c2ca7d92
      Stanislaw Gruszka 提交于
      This is iwlegacy version of:
      
      commit 342bbf3f
      Author: Johannes Berg <johannes.berg@intel.com>
      Date:   Sun Mar 4 08:50:46 2012 -0800
      
          iwlwifi: always monitor for stuck queues
      
          If we only monitor while associated, the following
          can happen:
           - we're associated, and the queue stuck check
             runs, setting the queue "touch" time to X
           - we disassociate, stopping the monitoring,
             which leaves the time set to X
           - almost 2s later, we associate, and enqueue
             a frame
           - before the frame is transmitted, we monitor
             for stuck queues, and find the time set to
             X, although it is now later than X + 2000ms,
             so we decide that the queue is stuck and
             erroneously restart the device
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c2ca7d92
  6. 29 6月, 2012 1 次提交
    • P
      iwlegacy: print how long queue was actually stuck · 26b6da6b
      Paul Bolle 提交于
      Every now and then, after resuming from suspend, the iwlegacy driver
      prints
          iwl4965 0000:03:00.0: Queue 2 stuck for 2000 ms.
          iwl4965 0000:03:00.0: On demand firmware reload
      
      I have no idea what causes these errors. But the code currently uses
      wd_timeout in the first error. wd_timeout will generally be set at
      IL_DEF_WD_TIMEOUT (ie, 2000). Perhaps printing for how long the queue
      was actually stuck can clarify the cause of these errors.
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      26b6da6b
  7. 11 5月, 2012 1 次提交
    • J
      drivers/net: Convert compare_ether_addr to ether_addr_equal · 2e42e474
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e42e474
  8. 27 3月, 2012 2 次提交
    • S
      iwlegacy: fix BSSID setting · e92109be
      Stanislaw Gruszka 提交于
      Current commit 0775f9f9
      "mac80211: remove spurious BSSID change flag" exposed bug on iwlegacy,
      that we do not set BSSID address correctly and then device was not able
      to receive frames after successful associate.
      
      On the way fix scan canceling comment. Apparently ->post_associate()
      do cancel scan itself, but scan cancel on BSS_CHANGED_BSSID is needed.
      I'm not sure why, but when I removed it, I had frequent auth failures:
      
       wlan4: send auth to 54:e6:fc:98:63:fe (try 1/3)
       wlan4: send auth to 54:e6:fc:98:63:fe (try 2/3)
       wlan4: send auth to 54:e6:fc:98:63:fe (try 3/3)
       wlan4: authentication with 54:e6:fc:98:63:fe timed out
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      e92109be
    • S
      iwlegacy: do not nulify il->vif on reset · 883a649b
      Stanislaw Gruszka 提交于
      This il->vif is dereferenced in different part of iwlegacy code, so do
      not nullify it. This should fix random crashes observed in companion
      with microcode errors i.e. crash in il3945_config_ap().
      
      Additionally this should address also
      WARNING: at drivers/net/wireless/iwlegacy/common.c:4656 il_mac_remove_interface
      at least one of the possible reasons of that warning.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      883a649b
  9. 14 3月, 2012 1 次提交
  10. 23 2月, 2012 15 次提交
  11. 07 2月, 2012 14 次提交