1. 30 Nov, 2012 3 commits
  2. 23 Nov, 2012 1 commit
    • Johannes Berg's avatar
      cfg80211: use DS or HT operation IEs to determine BSS channel · 0172bb75
      Johannes Berg authored
      Currently, mac80211 checks the DS params IE if present and
      uses it for the (primary) BSS channel, instead of the one
      that the frame was received on. This is particularly useful
      in the 2.4 GHz band since a frame is often received on one
      of the adjacent channels due to overlap.
      Move this code to cfg80211 so other drivers also do this.
      Additionally, on 5 GHz, in particular with some (possibly)
      upcoming changes in 802.11ai and duplicate transmissions
      when wider channels are used, something similar happens.
      So if present, also use the (primary) channel information
      contained in the HT operation IE.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
  3. 18 Oct, 2012 4 commits
  4. 05 Sep, 2012 1 commit
  5. 12 Jul, 2012 1 commit
  6. 09 May, 2012 1 commit
    • Joe Perches's avatar
      wireless: Convert compare_ether_addr to ether_addr_equal · ac422d3c
      Joe Perches authored
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      I removed a conversion from scan.c/cmp_bss_core
      that appears to be a sorting function.
      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: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  7. 08 May, 2012 1 commit
  8. 16 Apr, 2012 1 commit
    • Rajkumar Manoharan's avatar
      cfg80211: increse bss expire time · f9616e0f
      Rajkumar Manoharan authored
      The background scan completion takes more time when the station is
      having heavy uplink traffic. The scan state machine decides to fall
      back to home channel on every off-channel visit when there are pending
      frames in tx queue. bgscan completion took ~30sec on dual band US
      regulatory card.
      scan period = (20 active channels * probe timeout) +
                    (12 passive channels * passive probe timeout) +
                    (32 * timeout on home channel) +
                    (32 * flush timeout)
      Signed-off-by: default avatarRajkumar Manoharan <rmanohar@qca.qualcomm.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
  9. 09 Apr, 2012 1 commit
  10. 13 Mar, 2012 1 commit
  11. 06 Feb, 2012 1 commit
  12. 11 Nov, 2011 1 commit
    • Dmitry Tarnyagin's avatar
      cfg80211: merge in beacon ies of hidden bss. · dd9dfb9f
      Dmitry Tarnyagin authored
      The problem with PSM when a hidden SSID was used was originally
      reported by Juuso Oikarinen.
       - When generally scanning, the AP is getting a bss entry with
         a zero SSID.
       - When associating, a probe-req is sent to the AP with the SSID,
         and as a result a probe-response is received with the hidden
         SSID in place. As a consequence, a second bss entry is created
         for the AP, now with the real SSID.
       - After association, mac80211 executes ieee80211_recalc_ps(),
         but does not switch to powersave because the beacon-ies are missing.
      As result, the STA does not ever enter PSM.
      The patch merges in beacon ies of hidden bss from beacon to the probe
      response, creating a consistent set of ies in place.
      Patch is depended on "cfg80211: fix cmp_ies" made by Johannes.
      Signed-off-by: default avatarDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
  13. 07 Nov, 2011 1 commit
  14. 19 Sep, 2011 1 commit
  15. 08 Aug, 2011 1 commit
  16. 20 Jul, 2011 1 commit
  17. 19 Jul, 2011 1 commit
  18. 08 Jul, 2011 1 commit
  19. 05 Jul, 2011 2 commits
  20. 01 Jun, 2011 1 commit
  21. 12 May, 2011 1 commit
  22. 11 May, 2011 2 commits
    • Luciano Coelho's avatar
      cfg80211/nl80211: add support for scheduled scans · 807f8a8c
      Luciano Coelho authored
      Implement new functionality for scheduled scan offload.  With this feature we
      can scan automatically at certain intervals.
      The idea is that the hardware can perform scan automatically and filter on
      desired results without waking up the host unnecessarily.
      commands to the nl80211 interface.  When results are available they are
      reported by NL80211_CMD_SCHED_SCAN_RESULTS events.  The userspace is
      informed when the scheduled scan has stopped with a
      NL80211_CMD_SCHED_SCAN_STOPPED event, which can be triggered either by
      the driver or by a call to NL80211_CMD_STOP_SCHED_SCAN.
      Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    • Javier Cardona's avatar
      cfg80211: Use capability info to detect mesh beacons. · 0a35d36d
      Javier Cardona authored
      Mesh beacons no longer use all-zeroes BSSID.  Beacon frames for MBSS,
      infrastructure BSS, or IBSS are differentiated by the Capability
      Information field in the Beacon frame.  A mesh STA sets the ESS and IBSS
      subfields to 0 in transmitted Beacon or Probe Response management
      Signed-off-by: default avatarJavier Cardona <javier@cozybit.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
  23. 28 Mar, 2011 2 commits
  24. 13 Dec, 2010 1 commit
  25. 06 Oct, 2010 1 commit
  26. 14 Jul, 2010 1 commit
  27. 21 May, 2010 1 commit
  28. 30 Mar, 2010 1 commit
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      The script does the followings.
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
      The conversion was done in the following steps.
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
      6. percpu.h was updated not to include slab.h.
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Guess-its-ok-by: default avatarChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
  29. 26 Jan, 2010 1 commit
  30. 12 Jan, 2010 1 commit
    • Jouni Malinen's avatar
      cfg80211: Store IEs from both Beacon and Probe Response frames · 34a6eddb
      Jouni Malinen authored
      Store information elements from Beacon and Probe Response frames in
      separate buffers to allow both sets to be made available through
      nl80211. This allows user space applications to get access to IEs from
      Beacon frames even if we have received Probe Response frames from the
      BSS. Previously, the IEs from Probe Response frames would have
      overridden the IEs from Beacon frames.
      This feature is of somewhat limited use since most protocols include
      the same (or extended) information in Probe Response frames. However,
      there are couple of exceptions where the IEs from Beacon frames could
      be of some use: TIM IE is only included in Beacon frames (and it would
      be needed to figure out the DTIM period used in the BSS) and at least
      some implementations of Wireless Provisioning Services seem to include
      the full IE only in Beacon frames).
      The new BSS attribute for scan results is added to allow both the IE
      sets to be delivered. This is done in a way that maintains the
      previously used behavior for applications that are not aware of the
      new NL80211_BSS_BEACON_IES attribute.
      Signed-off-by: default avatarJouni Malinen <j@w1.fi>
      Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
  31. 28 Dec, 2009 1 commit
  32. 29 Nov, 2009 1 commit