1. 15 9月, 2016 1 次提交
  2. 13 9月, 2016 1 次提交
  3. 09 6月, 2016 1 次提交
  4. 06 4月, 2016 2 次提交
  5. 24 2月, 2016 1 次提交
  6. 21 1月, 2016 1 次提交
    • A
      net/mac80211/debugfs.c: prevent build failure with CONFIG_UBSAN=y · 68920c97
      Andrey Ryabinin 提交于
      With upcoming CONFIG_UBSAN the following BUILD_BUG_ON in
      net/mac80211/debugfs.c starts to trigger:
      
        BUILD_BUG_ON(hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1);
      
      It seems, that compiler instrumentation causes some code
      deoptimizations.  Because of that GCC is not being able to resolve
      condition in BUILD_BUG_ON() at compile time.
      
      We could make size of hw_flag_names array unspecified and replace the
      condition in BUILD_BUG_ON() with following:
      
        ARRAY_SIZE(hw_flag_names) != NUM_IEEE80211_HW_FLAGS
      
      That will have the same effect as before (adding new flag without
      updating array will trigger build failure) except it doesn't fail with
      CONFIG_UBSAN.  As a bonus this patch slightly decreases size of
      hw_flag_names array.
      Signed-off-by: NAndrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      68920c97
  7. 04 12月, 2015 1 次提交
  8. 13 10月, 2015 1 次提交
  9. 29 9月, 2015 1 次提交
    • H
      mac80211: Copy tx'ed beacons to monitor mode · 35afa588
      Helmut Schaa 提交于
      When debugging wireless powersave issues on the AP side it's quite helpful
      to see our own beacons that are transmitted by the hardware/driver. However,
      this is not that easy since beacons don't pass through the regular TX queues.
      
      Preferably drivers would call ieee80211_tx_status also for tx'ed beacons
      but that's not always possible. Hence, just send a copy of each beacon
      generated by ieee80211_beacon_get_tim to monitor devices when they are
      getting fetched by the driver.
      
      Also add a HW flag IEEE80211_HW_BEACON_TX_STATUS that can be used by
      drivers to indicate that they report TX status for beacons.
      Signed-off-by: NHelmut Schaa <helmut.schaa@googlemail.com>
      (with a fix from Christian Lamparted rolled in)
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      35afa588
  10. 22 9月, 2015 1 次提交
  11. 17 7月, 2015 2 次提交
  12. 10 6月, 2015 1 次提交
    • J
      mac80211: convert HW flags to unsigned long bitmap · 30686bf7
      Johannes Berg 提交于
      As we're running out of hardware capability flags pretty quickly,
      convert them to use the regular test_bit() style unsigned long
      bitmaps.
      
      This introduces a number of helper functions/macros to set and to
      test the bits, along with new debugfs code.
      
      The occurrences of an explicit __clear_bit() are intentional, the
      drivers were never supposed to change their supported bits on the
      fly. We should investigate changing this to be a per-frame flag.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      30686bf7
  13. 03 6月, 2015 1 次提交
  14. 05 5月, 2015 2 次提交
  15. 20 3月, 2015 1 次提交
  16. 01 3月, 2015 1 次提交
    • J
      mac80211: remove TX latency measurement code · abfbc3af
      Johannes Berg 提交于
      Revert commit ad38bfc9 ("mac80211: Tx frame latency statistics")
      (along with some follow-up fixes).
      
      This code turned out not to be as useful in the current form as we
      thought, and we've internally hacked it up more, but that's not
      very suitable for upstream (for now), and we might just do that
      with tracing instead.
      
      Therefore, for now at least, remove this code. We might also need
      to use the skb->tstamp field for the TCP performance issue, which
      is more important than the debugging.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      abfbc3af
  17. 15 12月, 2014 1 次提交
  18. 11 9月, 2014 1 次提交
  19. 05 9月, 2014 1 次提交
  20. 09 4月, 2014 1 次提交
  21. 02 12月, 2013 1 次提交
  22. 01 10月, 2013 1 次提交
  23. 12 2月, 2013 1 次提交
  24. 31 1月, 2013 1 次提交
    • E
      mac80211: inform the driver about update of dtim_period · c65dd147
      Emmanuel Grumbach 提交于
      Currently, when the driver requires the DTIM period,
      mac80211 will wait to hear a beacon before association.
      This behavior is suboptimal since some drivers may be
      able to deal with knowing the DTIM period after the
      association, if they get it at all.
      
      To address this, notify the drivers with bss_info_changed
      with the new BSS_CHANGED_DTIM_PERIOD flag when the DTIM
      becomes known. This might be when changing to associated,
      or later when the entire association was done with only
      probe response information.
      
      Rename the hardware flag for the current behaviour to
      IEEE80211_HW_NEED_DTIM_BEFORE_ASSOC to more accurately
      reflect its behaviour. IEEE80211_HW_NEED_DTIM_PERIOD is
      no longer accurate as all drivers get the DTIM period
      now, just not before association.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      c65dd147
  25. 19 9月, 2012 1 次提交
  26. 20 8月, 2012 1 次提交
  27. 12 7月, 2012 1 次提交
    • J
      mac80211: redesign scan RX · d48b2968
      Johannes Berg 提交于
      Scan receive is rather inefficient when there are
      multiple virtual interfaces. We iterate all of the
      virtual interfaces and then notify cfg80211 about
      each beacon many times.
      
      Redesign scan RX to happen before everything else.
      Then we can also get rid of IEEE80211_RX_IN_SCAN
      since we don't have to accept frames into the RX
      handlers for scanning or scheduled scanning any
      more. Overall, this simplifies the code.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d48b2968
  28. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  29. 16 3月, 2012 1 次提交
  30. 07 2月, 2012 1 次提交
    • E
      mac80211: support hw scan while idle · 885bd8ec
      Eliad Peller 提交于
      Currently, mac80211 goes to idle-off before starting a scan.
      However, some devices that implement hw scan might not
      need going idle-off in order to perform a hw scan, and
      thus saving some energy and simplifying their state machine.
      
      (Note that this is also the case for sched scan - it
      currently doesn't make mac80211 go idle-off)
      
      Add a new flag to indicate support for hw scan while idle.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      885bd8ec
  31. 28 1月, 2012 2 次提交
  32. 29 11月, 2011 1 次提交
  33. 10 11月, 2011 1 次提交
  34. 28 9月, 2011 1 次提交
  35. 14 9月, 2011 2 次提交