1. 24 2月, 2016 1 次提交
  2. 14 1月, 2016 2 次提交
    • S
      mac80211: pass block ack session timeout to to driver · 50ea05ef
      Sara Sharon 提交于
      Currently mac80211 does not inform the driver of the session
      block ack timeout when starting a rx aggregation session.
      Drivers that manage the reorder buffer need to know this
      parameter.
      Seeing that there are now too many arguments for the
      drv_ampdu_action() function, wrap them inside a structure.
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      50ea05ef
    • B
      Revert "mac80211_hwsim: support any address in userspace" · 354210f8
      Bob Copeland 提交于
      This reverts commit cd37a90b.
      
      Different userspace programs interpreted HWSIM_ATTR_ADDR_TRANSMITTER
      and HWSIM_ATTR_ADDR_RECEIVER differently: some expected it to
      be an unchanging hardware address that is tied to the radio despite
      which address is configured on the interface, while others expected
      to be a copy of the address in the frame (the configured address).
      The intent of the original authors is unclear.
      
      The latter interpretation doesn't really work properly with multiple
      vifs and broadcast frames.  Also, as the TA is already in the
      frame, userspace programs can actually support configured addresses
      in the former interpretation by mapping between them and the supplied
      HWSIM_ATTR_ADDR_TRANSMITTER.
      
      So, in the interest of API stability, revert to the previous mode
      of operation and going forward use the former interpretation.
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      354210f8
  3. 04 12月, 2015 7 次提交
  4. 10 11月, 2015 1 次提交
    • A
      remove abs64() · 79211c8e
      Andrew Morton 提交于
      Switch everything to the new and more capable implementation of abs().
      Mainly to give the new abs() a bit of a workout.
      
      Cc: Michal Nazarewicz <mina86@mina86.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      79211c8e
  5. 25 9月, 2015 1 次提交
  6. 22 9月, 2015 1 次提交
  7. 19 8月, 2015 1 次提交
  8. 14 8月, 2015 1 次提交
  9. 17 7月, 2015 1 次提交
  10. 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
  11. 06 5月, 2015 2 次提交
  12. 24 4月, 2015 1 次提交
    • J
      mac80211: remove support for IFF_PROMISC · df140465
      Johannes Berg 提交于
      This support is essentially useless as typically networks are encrypted,
      frames will be filtered by hardware, and rate scaling will be done with
      the intended recipient in mind. For real monitoring of the network, the
      monitor mode support should be used instead.
      
      Removing it removes a lot of corner cases.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      df140465
  13. 22 4月, 2015 1 次提交
  14. 04 3月, 2015 2 次提交
    • J
      mac80211_hwsim: fix beacon timers · 56067628
      Johannes Berg 提交于
      Jouni reported that certain combinations of hwsim test cases failed,
      and we found that beaconing was erroneously enabled too early on any
      channel switch, which lead to the BI of 2000 TU from the first test
      case to leak into the second one, which then didn't beacon properly.
      
      To fix this, set data->beacon_int to zero when all stop beaconing so
      that beaconing cannot be started (which was intended as 'restarted')
      elsewhere.
      
      Additionally, Jouni found that due to this 'restart' and the beacon
      interval handling station interfaces would also have a needlessly
      running beacon timer all the time, of course not doing anything.
      
      To also fix the latter case only use the beacon interval when it's
      actually needed, i.e. when beaconing gets enabled.
      Reported-by: NJouni Malinen <j@w1.fi>
      Tested-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      56067628
    • J
      wireless: Use eth_<foo>_addr instead of memset · 93803b33
      Joe Perches 提交于
      Use the built-in function instead of memset.
      
      Miscellanea:
      
      Add #include <linux/etherdevice.h> where appropriate
      Use ETH_ALEN instead of 6
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      93803b33
  15. 03 3月, 2015 1 次提交
  16. 01 3月, 2015 1 次提交
  17. 24 2月, 2015 1 次提交
  18. 18 1月, 2015 1 次提交
    • J
      netlink: make nlmsg_end() and genlmsg_end() void · 053c095a
      Johannes Berg 提交于
      Contrary to common expectations for an "int" return, these functions
      return only a positive value -- if used correctly they cannot even
      return 0 because the message header will necessarily be in the skb.
      
      This makes the very common pattern of
      
        if (genlmsg_end(...) < 0) { ... }
      
      be a whole bunch of dead code. Many places also simply do
      
        return nlmsg_end(...);
      
      and the caller is expected to deal with it.
      
      This also commonly (at least for me) causes errors, because it is very
      common to write
      
        if (my_function(...))
          /* error condition */
      
      and if my_function() does "return nlmsg_end()" this is of course wrong.
      
      Additionally, there's not a single place in the kernel that actually
      needs the message length returned, and if anyone needs it later then
      it'll be very easy to just use skb->len there.
      
      Remove this, and make the functions void. This removes a bunch of dead
      code as described above. The patch adds lines because I did
      
      -	return nlmsg_end(...);
      +	nlmsg_end(...);
      +	return 0;
      
      I could have preserved all the function's return values by returning
      skb->len, but instead I've audited all the places calling the affected
      functions and found that none cared. A few places actually compared
      the return value with <= 0 in dump functionality, but that could just
      be changed to < 0 with no change in behaviour, so I opted for the more
      efficient version.
      
      One instance of the error I've made numerous times now is also present
      in net/phonet/pn_netlink.c in the route_dumpit() function - it didn't
      check for <0 or <=0 and thus broke out of the loop every single time.
      I've preserved this since it will (I think) have caused the messages to
      userspace to be formatted differently with just a single message for
      every SKB returned to userspace. It's possible that this isn't needed
      for the tools that actually use this, but I don't even know what they
      are so couldn't test that changing this behaviour would be acceptable.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      053c095a
  19. 09 1月, 2015 1 次提交
  20. 22 12月, 2014 1 次提交
  21. 24 11月, 2014 1 次提交
  22. 21 11月, 2014 1 次提交
  23. 20 11月, 2014 6 次提交
  24. 10 11月, 2014 1 次提交
  25. 31 10月, 2014 2 次提交