1. 15 Feb, 2013 1 commit
    • Simon Wunderlich's avatar
      nl80211/cfg80211: add radar detection command/event · 04f39047
      Simon Wunderlich authored
      Add new NL80211_CMD_RADAR_DETECT, which starts the Channel
      Availability Check (CAC). This command will also notify the
      usermode about events (CAC finished, CAC aborted, radar
      detected, NOP finished).
      Once radar detection has started it should continuously
      monitor for radars as long as the channel is active.
      This patch enables DFS for AP mode in nl80211/cfg80211.
      Based on original patch by Victor Goldenshtein <victorg@ti.com>
      Signed-off-by: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      [remove WIPHY_FLAG_HAS_RADAR_DETECT again -- my mistake]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
  2. 13 Feb, 2013 1 commit
  3. 11 Feb, 2013 4 commits
    • Johannes Berg's avatar
      cfg80211: move TSF into IEs · 8cef2c9d
      Johannes Berg authored
      While technically the TSF isn't an IE, it can be
      necessary to distinguish between the TSF from a
      beacon and a probe response, in particular in
      order to know the next DTIM TBTT, as not all APs
      are spec compliant wrt. TSF==0 being a DTIM TBTT
      and thus the DTIM count needs to be taken into
      account as well.
      To allow this, move the TSF into the IE struct
      so it can be known whence it came.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    • Johannes Berg's avatar
      cfg80211: remove scan ies NULL check · 83c7aa1a
      Johannes Berg authored
      There's no way scan BSS IEs can be NULL as even
      if the allocation fails the frame is discarded.
      Remove some code checking for this and document
      that it is always non-NULL.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    • Johannes Berg's avatar
      cfg80211: track hidden SSID networks properly · 776b3580
      Johannes Berg authored
      Currently, cfg80211 will copy beacon IEs from a previously
      received hidden SSID beacon to a probe response entry, if
      that entry is created after the beacon entry. However, if
      it is the other way around, or if the beacon is updated,
      such changes aren't propagated.
      Fix this by tracking the relation between the probe
      response and beacon BSS structs in this case.
      In case drivers have private data stored in a BSS struct
      and need access to such data from a beacon entry, cfg80211
      now provides the hidden_beacon_bss pointer from the probe
      response entry to the beacon entry.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    • Johannes Berg's avatar
      cfg80211: pass wiphy to cfg80211_ref_bss/put_bss · 5b112d3d
      Johannes Berg authored
      This prepares for using the spinlock instead of krefs
      which is needed in the next patch to track the refs
      of combined BSSes correctly.
      Acked-by: Bing Zhao <bzhao@marvell.com> [mwifiex]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
  4. 04 Feb, 2013 9 commits
  5. 31 Jan, 2013 1 commit
  6. 24 Jan, 2013 1 commit
  7. 30 Nov, 2012 4 commits
  8. 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>
  9. 18 Oct, 2012 4 commits
  10. 05 Sep, 2012 1 commit
  11. 12 Jul, 2012 1 commit
  12. 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>
  13. 08 May, 2012 1 commit
  14. 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>
  15. 09 Apr, 2012 1 commit
  16. 13 Mar, 2012 1 commit
  17. 06 Feb, 2012 1 commit
  18. 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>
  19. 07 Nov, 2011 1 commit
  20. 19 Sep, 2011 1 commit
  21. 08 Aug, 2011 1 commit
  22. 20 Jul, 2011 1 commit
  23. 19 Jul, 2011 1 commit