1. 31 7月, 2012 1 次提交
  2. 17 7月, 2012 1 次提交
  3. 06 7月, 2012 1 次提交
  4. 03 7月, 2012 1 次提交
  5. 29 6月, 2012 1 次提交
    • T
      net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new() · 58050fce
      Thomas Graf 提交于
      Using NLMSG_GOODSIZE results in multiple pages being used as
      nlmsg_new() will automatically add the size of the netlink
      header to the payload thus exceeding the page limit.
      
      NLMSG_DEFAULT_SIZE takes this into account.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Cc: Jiri Pirko <jpirko@redhat.com>
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Reviewed-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      58050fce
  6. 25 6月, 2012 1 次提交
    • J
      mac80211_hwsim: fix smatch/sparse complaints · d0f718c1
      Johannes Berg 提交于
      The code is fine in both cases as-is, but we can
      write it slightly differently to fix smatch/sparse
      complaints:
       * compare the skb pointer (which we use as a cookie)
         by casting the skb to unsigned long rather than the
         cookie to a pointer (fixes "different address spaces")
       * when transmitting, data->channel must be assigned,
         don't check it (fixes "dereferenced before check")
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d0f718c1
  7. 09 6月, 2012 1 次提交
  8. 05 6月, 2012 1 次提交
  9. 16 5月, 2012 1 次提交
  10. 17 4月, 2012 1 次提交
  11. 12 4月, 2012 1 次提交
    • J
      mac80211: add explicit monitor interface if needed · 4b6f1dd6
      Johannes Berg 提交于
      The queue mapping redesign that I'm planning to do
      will break pure injection unless we handle monitor
      interfaces explicitly. One possible option would
      be to have the driver tell mac80211 about monitor
      mode queues etc., but that would duplicate the API
      since we already need to have queue assignments
      handled per virtual interface.
      
      So in order to solve this, have a virtual monitor
      interface that is added whenever all active vifs
      are monitors. We could also use the state of one
      of the monitor interfaces, but managing that would
      be complicated, so allocate separate state.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4b6f1dd6
  12. 11 4月, 2012 2 次提交
  13. 02 4月, 2012 1 次提交
  14. 13 3月, 2012 1 次提交
  15. 07 3月, 2012 2 次提交
  16. 28 2月, 2012 2 次提交
  17. 21 2月, 2012 1 次提交
  18. 20 12月, 2011 1 次提交
  19. 16 12月, 2011 1 次提交
  20. 09 11月, 2011 1 次提交
  21. 01 11月, 2011 1 次提交
  22. 04 10月, 2011 1 次提交
    • E
      mac80211: pass vif param to conf_tx() callback · 8a3a3c85
      Eliad Peller 提交于
      tx params should be configured per interface.
      add ieee80211_vif param to the conf_tx callback,
      and change all the drivers that use this callback.
      
      The following spatch was used:
      @rule1@
      struct ieee80211_ops ops;
      identifier conf_tx_op;
      @@
      	ops.conf_tx = conf_tx_op;
      
      @rule2@
      identifier rule1.conf_tx_op;
      identifier hw, queue, params;
      @@
      	conf_tx_op (
      -		struct ieee80211_hw *hw,
      +		struct ieee80211_hw *hw, struct ieee80211_vif *vif,
      		u16 queue,
      		const struct ieee80211_tx_queue_params *params) {...}
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8a3a3c85
  23. 11 8月, 2011 1 次提交
  24. 28 6月, 2011 1 次提交
  25. 02 6月, 2011 1 次提交
    • J
      mac80211_hwsim driver support userspace frame tx/rx · 7882513b
      Javier Lopez 提交于
      This patch adds to mac80211_hwsim the capability to send traffic via
      userspace.
      
      Frame exchange between kernel and user spaces is done through generic
      netlink communication protocol. A new generic netlink family
      MAC80211_HWSIM is proposed, this family contains three basic commands
      HWSIM_CMD_REGISTER, which is the command used to register a new
      traffic listener, HWSIM_CMD_FRAME, to exchange the frames from kernel
      to user and vice-versa, and HWSIM_CMD_TX_INFO_FRAME which returns
      from user all the information about retransmissions, rates, rx signal,
      and so on.
      
      How it works:
      
      Once the driver is loaded the MAC80211_HWSIM family will be registered.
      In the absence of userspace daemon, the driver itselfs implements a
      perfect wireless medium as it did in the past. When a daemon sends a
      HWSIM_CMD_REGISTER command, the module stores the application PID, and
      from this moment all frames will be sent to the registered daemon.
      
      The user space application will be in charge of process/forward all
      frames broadcast by any mac80211_hwsim radio. If the user application
      is stopped, the kernel module will detect the release of the socket
      and it will switch back to in-kernel perfect channel simulation.
      
      The userspace daemon must be waiting for incoming HWSIM_CMD_FRAME
      commands sent from kernel, for each HWSIM_CMD_FRAME command the
      application will try to broadcast this frame to all mac80211_hwsim
      radios, however the application may decide to forward/drop this frame.
      In the case of forwarding the frame, a new HWSIM_CMD_FRAME command will
      be created, all necessary attributes will be populated and the frame
      will be sent back to the kernel.
      
      Also after the frame broadcast phase, a HWSIM_CMD_TX_INFO_FRAME
      command will be sent from userspace to kernel, this command contains
      all the information regarding the transmission, such as number of
      tries, rates, ack signal, etc.
      
      You can find the actual implementation of wireless mediumd daemon
      (wmediumd) at:
      
      * Last version tarball: https://github.com/jlopex/cozybit/tarball/master
      * Or visiting my github tree: https://github.com/jlopex/cozybit/treeSigned-off-by: NJavier Lopez <jlopex@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7882513b
  26. 06 5月, 2011 1 次提交
  27. 31 3月, 2011 1 次提交
  28. 26 2月, 2011 1 次提交
    • J
      mac80211: make tx() operation return void · 7bb45683
      Johannes Berg 提交于
      The return value of the tx operation is commonly
      misused by drivers, leading to errors. All drivers
      will drop frames if they fail to TX the frame, and
      they must also properly manage the queues (if they
      didn't, mac80211 would already warn).
      
      Removing the ability for drivers to return a BUSY
      value also allows significant cleanups of the TX
      TX handling code in mac80211.
      
      Note that this also fixes a bug in ath9k_htc, the
      old "return -1" there was wrong.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: Sedat Dilek <sedat.dilek@googlemail.com> [ath5k]
      Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> [rt2x00]
      Acked-by: Larry Finger <Larry.Finger@lwfinger.net> [b43, rtl8187, rtlwifi]
      Acked-by: Luciano Coelho <coelho@ti.com> [wl12xx]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7bb45683
  29. 20 1月, 2011 1 次提交
    • J
      mac80211: track receiver's aggregation reorder buffer size · 0b01f030
      Johannes Berg 提交于
      The aggregation code currently doesn't implement the
      buffer size negotiation. It will always request a max
      buffer size (which is fine, if a little pointless, as
      the mac80211 code doesn't know and might just use 0
      instead), but if the peer requests a smaller size it
      isn't possible to honour this request.
      
      In order to fix this, look at the buffer size in the
      addBA response frame, keep track of it and pass it to
      the driver in the ampdu_action callback when called
      with the IEEE80211_AMPDU_TX_OPERATIONAL action. That
      way the driver can limit the number of subframes in
      aggregates appropriately.
      
      Note that this doesn't fix any drivers apart from the
      addition of the new argument -- they all need to be
      updated separately to use this variable!
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0b01f030
  30. 16 11月, 2010 1 次提交
  31. 17 9月, 2010 1 次提交
  32. 28 8月, 2010 1 次提交
  33. 25 8月, 2010 1 次提交
  34. 19 8月, 2010 1 次提交
  35. 28 7月, 2010 1 次提交
  36. 19 6月, 2010 1 次提交
  37. 03 6月, 2010 1 次提交