1. 15 2月, 2013 5 次提交
    • 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
    • J
      mac80211: pass station to ieee80211_vht_cap_ie_to_sta_vht_cap · 4a34215e
      Johannes Berg 提交于
      Like with HT, make things a bit simpler in future patches by
      passing the station to ieee80211_vht_cap_ie_to_sta_vht_cap()
      instead of the vht_cap pointer. Also disable VHT here if HT
      isn't supported.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      4a34215e
  2. 17 10月, 2012 1 次提交