1. 05 Jun, 2019 1 commit
  2. 29 Jun, 2018 1 commit
    • Omer Efrat's avatar
      mac80211: use BIT_ULL for NL80211_STA_INFO_* attribute types · a4217750
      Omer Efrat authored
      The BIT macro uses unsigned long which some architectures handle as 32 bit
      and therefore might cause macro's shift to overflow when used on a value
      equals or larger than 32 (NL80211_STA_INFO_RX_DURATION and afterwards).
      
      Since 'filled' member in station_info changed to u64, BIT_ULL macro
      should be used with all NL80211_STA_INFO_* attribute types instead of BIT
      to prevent future possible bugs when one will use BIT macro for higher
      attributes by mistake.
      
      This commit cleans up all usages of BIT macro with the above field
      in mac80211 by changing it to BIT_ULL instead.
      Signed-off-by: default avatarOmer Efrat <omer.efrat@tandemg.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      a4217750
  3. 18 May, 2018 2 commits
  4. 08 May, 2018 2 commits
  5. 07 May, 2018 1 commit
  6. 21 Oct, 2015 2 commits
    • Johannes Berg's avatar
      mac80211: move station statistics into sub-structs · e5a9f8d0
      Johannes Berg authored
      Group station statistics by where they're (mostly) updated
      (TX, RX and TX-status) and group them into sub-structs of
      the struct sta_info.
      
      Also rename the variables since the grouping now makes it
      obvious where they belong.
      
      This makes it easier to identify where the statistics are
      updated in the code, and thus easier to think about them.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      e5a9f8d0
    • Johannes Berg's avatar
      mac80211: move beacon_loss_count into ifmgd · 976bd9ef
      Johannes Berg authored
      There's little point in keeping (and even sending to userspace)
      the beacon_loss_count value per station, since it can only apply
      to the AP on a managed-mode connection. Move the value to ifmgd,
      advertise it only in managed mode, and remove it from ethtool as
      it's available through better interfaces.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      976bd9ef
  7. 05 May, 2015 1 commit
    • Johannes Berg's avatar
      mac80211: remove sta->tx_fragments counter · f83f1c12
      Johannes Berg authored
      This counter is unsafe with concurrent TX and is only exposed
      through debugfs and ethtool. Instead of trying to fix it just
      remove it for now, if it's really needed then it should be
      exposed through nl80211 and in a way that drivers that do the
      fragmentation in the device could support it as well.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      f83f1c12
  8. 08 Jan, 2015 2 commits
    • Johannes Berg's avatar
      cfg80211: remove enum station_info_flags · 319090bf
      Johannes Berg authored
      This is really just duplicating the list of information that's
      already available in the nl80211 attribute, so remove the list.
      Two small changes are needed:
       * remove STATION_INFO_ASSOC_REQ_IES complete, but the length
         (assoc_req_ies_len) can be used instead
       * add NL80211_STA_INFO_RX_DROP_MISC which exists internally
         but not in nl80211 yet
      
      This gets rid of the duplicate maintenance of the two lists.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      319090bf
    • Johannes Berg's avatar
      cfg80211: remove "channel" from survey names · 4ed20beb
      Johannes Berg authored
      All of the survey data is (currently) per channel anyway,
      so having the word "channel" in the name does nothing. In
      the next patch I'll introduce global data to the survey,
      where the word "channel" is actually confusing.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      4ed20beb
  9. 23 Jun, 2014 1 commit
    • Johannes Berg's avatar
      cfg80211: make ethtool the driver's responsibility · b7ffbd7e
      Johannes Berg authored
      Currently, cfg80211 tries to implement ethtool, but that doesn't
      really scale well, with all the different operations. Make the
      lower-level driver responsible for it, which currently only has
      an effect on mac80211. It will similarly not scale well at that
      level though, since mac80211 also has many drivers.
      
      To cleanly implement this in mac80211, introduce a new file and
      move some code to appropriate places.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      b7ffbd7e