1. 09 Oct, 2013 1 commit
  2. 08 Oct, 2013 1 commit
  3. 23 Aug, 2013 1 commit
  4. 01 Aug, 2013 1 commit
  5. 16 Jul, 2013 3 commits
  6. 18 Jun, 2013 1 commit
  7. 11 Jun, 2013 2 commits
  8. 29 May, 2013 1 commit
  9. 24 May, 2013 1 commit
    • Jouni Malinen's avatar
      cfg80211: Allow TDLS peer AID to be configured for VHT · 5e4b6f56
      Jouni Malinen authored
      
      
      VHT uses peer AID in the PARTIAL_AID field in TDLS frames. The current
      design for TDLS is to first add a dummy STA entry before completing TDLS
      Setup and then update information on this STA entry based on what was
      received from the peer during the setup exchange.
      
      In theory, this could use NL80211_ATTR_STA_AID to set the peer AID just
      like this is used in AP mode to set the AID of an association station.
      However, existing cfg80211 validation rules prevent this attribute from
      being used with set_station operation. To avoid interoperability issues
      between different kernel and user space version combinations, introduce
      a new nl80211 attribute for the purpose of setting TDLS peer AID. This
      attribute can be used in both the new_station and set_station
      operations. It is not supposed to be allowed to change the AID value
      during the lifetime of the STA entry, but that validation is left for
      drivers to do in the change_station callback.
      Signed-off-by: default avatarJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      5e4b6f56
  10. 16 May, 2013 3 commits
  11. 22 Apr, 2013 1 commit
  12. 06 Mar, 2013 7 commits
    • Thomas Pedersen's avatar
      nl80211: user_mpm overrides auto_open_plinks · d37bb18a
      Thomas Pedersen authored
      
      
      If the user requested a userspace MPM, automatically
      disable auto_open_plinks to fully disable the kernel MPM.
      Signed-off-by: default avatarThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      d37bb18a
    • Thomas Pedersen's avatar
      nl80211: explicit userspace MPM · bb2798d4
      Thomas Pedersen authored
      
      
      Secure mesh had the implicit requirement that the Mesh
      Peering Management entity be in userspace.  However
      userspace might want to implement an open MPM as well, so
      specify a mesh setup parameter to indicate this.
      Signed-off-by: default avatarThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      bb2798d4
    • Jouni Malinen's avatar
      cfg80211: Extend support for IEEE 802.11r Fast BSS Transition · 355199e0
      Jouni Malinen authored
      
      
      Add NL80211_CMD_UPDATE_FT_IES to support update of FT IEs to the WLAN
      driver and NL80211_CMD_FT_EVENT to send FT events from the WLAN driver.
      This will carry the target AP's MAC address along with the relevant
      Information Elements. This event is used to report received FT IEs
      (MDIE, FTIE, RSN IE, TIE, RICIE). These changes allow FT to be supported
      with drivers that use an internal SME instead of user space option (like
      FT implementation in wpa_supplicant with mac80211-based drivers).
      Signed-off-by: default avatarJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      355199e0
    • Johannes Berg's avatar
      cfg80211: add ability to override VHT capabilities · ee2aca34
      Johannes Berg authored
      
      
      For testing it's sometimes useful to be able to
      override certain VHT capability advertisement,
      add the ability to do that in cfg80211.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      ee2aca34
    • Johannes Berg's avatar
      nl80211: allow splitting wiphy information in dumps · 3713b4e3
      Johannes Berg authored
      
      
      The per-wiphy information is getting large, to the point
      where with more than the typical number of channels it's
      too large and overflows, and userspace can't get any of
      the information at all.
      
      To address this (in a way that doesn't require making all
      messages bigger) allow userspace to specify that it can
      deal with wiphy information split across multiple parts
      of the dump, and if it can split up the data. This also
      splits up each channel separately so an arbitrary number
      of channels can be supported.
      
      Additionally, since GET_WIPHY has the same problem, add
      support for filtering the wiphy dump and get information
      for a single wiphy only, this allows userspace apps to
      use dump in this case to retrieve all data from a single
      device.
      
      As userspace needs to know if all this this is supported,
      add a global nl80211 feature set and include a bit for
      this behaviour in it.
      
      Cc: Dennis H Jensen <dennis.h.jensen@siemens.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      3713b4e3
    • Johannes Berg's avatar
      cfg80211: comprehensively check station changes · 77ee7c89
      Johannes Berg authored
      
      
      The station change API isn't being checked properly before
      drivers are called, and as a result it is difficult to see
      what should be allowed and what not.
      
      In order to comprehensively check the API parameters parse
      everything first, and then have the driver call a function
      (cfg80211_check_station_change()) with the additionally
      information about the kind of station that is being changed;
      this allows the function to make better decisions than the
      old code could.
      
      While at it, also add a few checks, particularly in mesh
      and clarify the TDLS station lifetime in documentation.
      
      To be able to reduce a few checks, ignore any flag set bits
      when the mask isn't set, they shouldn't be applied then.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      77ee7c89
    • Johannes Berg's avatar
      cfg80211: clean up mesh plink station change API · f8bacc21
      Johannes Berg authored
      
      
      Make the ability to leave the plink_state unchanged not use a
      magic -1 variable that isn't in the enum, but an explicit change
      flag; reject invalid plink states or actions and move the needed
      constants for plink actions to the right header file. Also
      reject plink_state changes for non-mesh interfaces.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      f8bacc21
  13. 15 Feb, 2013 5 commits
    • Johannes Berg's avatar
      nl80211: renumber NL80211_FEATURE_FULL_AP_CLIENT_STATE · 932dd97c
      Johannes Berg authored
      
      
      Adding the flag to mac80211 already without testing was
      clearly a mistake, one that we now pay for by having to
      reserve bit 13 forever. The problem is cfg80211 doesn't
      allow capability/rate changes for station entries that
      were added unassociated, so the station entries cannot
      be set up properly when marked associated.
      
      Change the NL80211_FEATURE_FULL_AP_CLIENT_STATE value
      to make it clear to userspace implementations that all
      current kernels don't actually support it, even though
      the previous bit is set, and of course also remove the
      flag from mac80211 until we test and fix the issues.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      932dd97c
    • Jouni Malinen's avatar
      cfg80211: Pass station (extended) capability info to kernel · 9d62a986
      Jouni Malinen authored
      
      
      The information of the peer's capabilities and extended capabilities are
      required for the driver to perform TDLS Peer UAPSD operations and off
      channel operations. This information of the peer is passed from user space
      using NL80211_CMD_SET_STATION command. This commit enhances
      the function nl80211_set_station to pass the capability information of
      the peer to the driver.
      
      Similarly, there may be need for capability information for other modes,
      so allow this to be provided with both add_station and change_station.
      Signed-off-by: default avatarJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      9d62a986
    • Johannes Berg's avatar
      cfg80211: advertise extended capabilities to userspace · a50df0c4
      Johannes Berg authored
      
      
      In many cases, userspace may need to know which of the
      802.11 extended capabilities ("Extended Capabilities
      element") are implemented in the driver or device, to
      include them e.g. in beacons, assoc request/response
      or other frames. Add a new nl80211 attribute to hold
      the extended capabilities bitmap for this.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      a50df0c4
    • Johannes Berg's avatar
      nl80211: advertise HT/VHT channel limitations · 50640f16
      Johannes Berg authored
      
      
      When drivers or regulatory have limitations on
      40, 80 or 160 MHz channels, advertise these to
      userspace via nl80211. Also add a new feature
      flag to let userspace know this is supported.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      50640f16
    • 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>
      04f39047
  14. 13 Feb, 2013 2 commits
  15. 12 Feb, 2013 1 commit
  16. 04 Feb, 2013 1 commit
    • Vladimir Kondratiev's avatar
      cfg80211: expand per-station byte counters to 64bit · 42745e03
      Vladimir Kondratiev authored
      
      
      In per-station statistics, present 32bit counters are too small
      for practical purposes - with gigabit speeds, it get overlapped
      every few seconds.
      
      Expand counters in the struct station_info to be 64-bit.
      Driver can still fill only 32-bit and indicate in @filled
      only bits like STATION_INFO_[TR]X_BYTES; in case driver provides
      full 64-bit counter, it should also set in @filled
      bit STATION_INFO_[TR]RX_BYTES64
      
      Netlink sends both 32-bit and 64-bit counters, if present, to not
      break userspace.
      Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
      [change to also have 32-bit counters if driver advertises 64-bit]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      42745e03
  17. 31 Jan, 2013 1 commit
  18. 25 Jan, 2013 1 commit
  19. 16 Jan, 2013 3 commits
  20. 03 Jan, 2013 1 commit
    • Johannes Berg's avatar
      nl80211/mac80211: support full station state in AP mode · d582cffb
      Johannes Berg authored
      
      
      Today, stations are added already associated. That is
      inefficient if, for example, the driver has no room
      for stations any more because then the station will
      go through the entire auth/assoc handshake, only to
      be kicked out afterwards.
      
      To address this a bit better, at least with drivers
      using the new station state callback, allow hostapd
      to add stations in unauthenticated mode, just after
      receiving the AUTH frame, before even replying. Thus
      if there's no more space at that point, it can send
      a negative auth frame back. It still needs to handle
      later state transition errors though, of course.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      d582cffb
  21. 27 Nov, 2012 1 commit
  22. 26 Nov, 2012 1 commit