1. 12 6月, 2013 1 次提交
  2. 17 5月, 2013 1 次提交
  3. 22 4月, 2013 1 次提交
    • F
      mac80211: improve the rate control API · 0d528d85
      Felix Fietkau 提交于
      Allow rate control modules to pass a rate selection table to mac80211
      and the driver. This allows drivers to fetch the most recent rate
      selection from the sta pointer for already buffered frames. This allows
      rate control to respond faster to sudden link changes and it is also a
      step towards adding minstrel_ht support to drivers like iwlwifi.
      
      When a driver sets IEEE80211_HW_SUPPORTS_RC_TABLE, mac80211 will not
      fill info->control.rates with rates from the rate table (to preserve
      explicit overrides by the rate control module). The driver then
      explicitly calls ieee80211_get_tx_rates to merge overrides from
      info->control.rates with defaults from the sta rate table.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      0d528d85
  4. 17 4月, 2013 1 次提交
  5. 16 4月, 2013 4 次提交
  6. 08 4月, 2013 7 次提交
  7. 26 3月, 2013 1 次提交
  8. 25 3月, 2013 3 次提交
  9. 22 3月, 2013 1 次提交
  10. 19 3月, 2013 3 次提交
  11. 07 3月, 2013 1 次提交
    • J
      mac80211: provide ieee80211_sta_eosp() · e943789e
      Johannes Berg 提交于
      The irqsafe version ieee80211_sta_eosp_irqsafe() exists, but
      drivers must not mix calls to any irqsafe/non-irqsafe function.
      Both ath9k and iwlwifi, the likely first users of this interface,
      use non-irqsafe RX/TX/TX status so must also use a non-irqsafe
      version of this function. Since no driver uses the _irqsafe()
      version, remove that.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      e943789e
  12. 06 3月, 2013 9 次提交
  13. 15 2月, 2013 7 次提交
    • T
      mac80211: cache mesh beacon · 2b5e1967
      Thomas Pedersen 提交于
      Previously, the entire mesh beacon would be generated each
      time the beacon timer fired. Instead generate a beacon
      head and tail (so the TIM can easily be inserted when mesh
      power save is on) when starting a mesh or the MBSS
      parameters change.
      
      Also add a mutex for protecting beacon updates and
      preventing leaks.
      Signed-off-by: NThomas Pedersen <thomas@cozybit.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2b5e1967
    • J
      mac80211: constify IE parsing · 4a3cb702
      Johannes Berg 提交于
      Make all the parsed IE pointers const, and propagate
      the change to all the users etc.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      4a3cb702
    • J
      mac80211: add ieee80211_vif_change_bandwidth · 2c9b7359
      Johannes Berg 提交于
      For HT and VHT the current bandwidth can change,
      add the function ieee80211_vif_change_bandwidth()
      to take care of this. It returns a failure if the
      new bandwidth isn't compatible with the existing
      channel context, the caller has to handle that.
      When it happens, also inform the driver that the
      bandwidth changed for this virtual interface (no
      drivers would actually care today though.)
      
      Changing to/from HT/VHT isn't allowed though.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2c9b7359
    • J
      mac80211: handle operating mode notif in beacon/assoc response · bee7f586
      Johannes Berg 提交于
      In beacons and association response frames an AP may include an
      operating mode notification element to advertise changes in the
      number of spatial streams it can receive. Handle this using the
      existing function that handles the action frame, but only handle
      NSS changes, not bandwidth changes which aren't allowed here.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      bee7f586
    • J
      mac80211: handle VHT operating mode notification · 0af83d3d
      Johannes Berg 提交于
      Handle the operating mode notification action frame.
      When the supported streams or the bandwidth change
      let the driver and rate control algorithm know.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      0af83d3d
    • J
      mac80211: track number of spatial streams · 8921d04e
      Johannes Berg 提交于
      With VHT, a station can change the number of spatial
      streams it can receive on the fly, not unlike spatial
      multiplexing in HT. Prepare for that by tracking the
      maximum number of spatial streams it can receive when
      the connection is established.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8921d04e
    • J
      mac80211: stop toggling IEEE80211_HT_CAP_SUP_WIDTH_20_40 · e1a0c6b3
      Johannes Berg 提交于
      For VHT, many more bandwidth changes are possible. As a first
      step, stop toggling the IEEE80211_HT_CAP_SUP_WIDTH_20_40 flag
      in the HT capabilities and instead introduce a bandwidth field
      indicating the currently usable bandwidth to transmit to the
      station. Of course, make all drivers use it.
      
      To achieve this, make ieee80211_ht_cap_ie_to_sta_ht_cap() get
      the station as an argument, rather than the new capabilities,
      so it can set up the new bandwidth field.
      
      If the station is a VHT station and VHT bandwidth is in use,
      also set the bandwidth accordingly.
      
      Doing this allows us to get rid of the supports_40mhz flag as
      the HT capabilities now reflect the true capability instead of
      the current setting.
      
      While at it, also fix ieee80211_ht_cap_ie_to_sta_ht_cap() to not
      ignore HT cap overrides when MCS TX isn't supported (not that it
      really happens...)
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      e1a0c6b3