1. 29 12月, 2009 1 次提交
    • J
      rtl8187: remove priv->mode · d30506e0
      John W. Linville 提交于
      It is checked in add_interface, but there it is easily replaced with
      a check of priv->vif.  If that information should become necessary,
      it is available in vif->type anyway.
      
      It is also checked in led_turn_on and led_turn_off, where I made the
      substitutions as described above.  Of course, these checks seem to
      have been incorrect since the driver was using NL80211_IFTYPE_MONITOR
      to indicate no interface rather than NL80211_IFTYPE_UNSPECIFIED.
      Anyway, I think these checks may be extraneous...?
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d30506e0
  2. 11 12月, 2009 1 次提交
  3. 08 12月, 2009 1 次提交
  4. 07 11月, 2009 1 次提交
  5. 29 8月, 2009 1 次提交
  6. 12 5月, 2009 1 次提交
  7. 23 4月, 2009 1 次提交
  8. 30 1月, 2009 1 次提交
  9. 13 12月, 2008 1 次提交
  10. 26 11月, 2008 2 次提交
  11. 22 11月, 2008 1 次提交
  12. 01 11月, 2008 1 次提交
    • J
      mac80211: provide sequence numbers · 94778280
      Johannes Berg 提交于
      I've come to think that not providing sequence numbers for
      the normal STA mode case was a mistake, at least two drivers
      now had to implement code they wouldn't otherwise need, and
      I believe at76_usb and adm8211 might be broken.
      
      This patch makes mac80211 assign a sequence number to all
      those frames that need one except beacons. That means that
      if a driver only implements modes that do not do beaconing
      it need not worry about the sequence number.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      94778280
  13. 23 8月, 2008 1 次提交
  14. 02 8月, 2008 1 次提交
  15. 30 7月, 2008 2 次提交
    • L
      rtl8187: Improve wireless statistics for RTL8187B · 0ccd58fc
      Larry Finger 提交于
      Wireless statistics produced by the RTL8187B driver are not particularly
      informative about the strength of the received signal. From the data sheet
      provided by Realtek, I discovered that certain parts of the RX header
      should have the information necessary to calculate signal quality and
      strength. With testing, it became clear that most of these quantities were
      very jittery - only the AGC correlated with the signals expected from nearby
      AP's. As a result, the quality and strength are derived from the agc value.
      The scaling has been determined so that the numbers are close to those
      obtained by b43 under the same conditions. The results are qualitatively
      correct.
      
      Statistics derived for the RTL8187 have not been changed.
      
      The RX header variables have been renamed to match the quantites described
      in the Realtek data sheet.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0ccd58fc
    • L
      rtl8187: Fix for TX sequence number problem · 1f690d7b
      Larry Finger 提交于
      "mac80211: fix TX sequence numbers" broke rtl8187. This
      patch makes the same kind of fix that was done for rt2x00. Note that
      this code will have to be reworked for proper sequence numbers on beacons.
      In addition, the sequence number has been placed in the hardware state,
      not the vif state.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1f690d7b
  16. 09 7月, 2008 1 次提交
  17. 22 5月, 2008 1 次提交
  18. 01 3月, 2008 1 次提交
    • J
      cfg80211 API for channels/bitrates, mac80211 and driver conversion · 8318d78a
      Johannes Berg 提交于
      This patch creates new cfg80211 wiphy API for channel and bitrate
      registration and converts mac80211 and drivers to the new API. The
      old mac80211 API is completely ripped out. All drivers (except ath5k)
      are updated to the new API, in many cases I expect that optimisations
      can be done.
      
      Along with the regulatory code I've also ripped out the
      IEEE80211_HW_DEFAULT_REG_DOMAIN_CONFIGURED flag, I believe it to be
      unnecessary if the hardware simply gives us whatever channels it wants
      to support and we then enable/disable them as required, which is pretty
      much required for travelling.
      
      Additionally, the patch adds proper "basic" rate handling for STA
      mode interface, AP mode interface will have to have new API added
      to allow userspace to set the basic rate set, currently it'll be
      empty... However, the basic rate handling will need to be moved to
      the BSS conf stuff.
      
      I do expect there to be bugs in this, especially wrt. transmit
      power handling where I'm basically clueless about how it should work.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8318d78a
  19. 29 1月, 2008 2 次提交
  20. 11 10月, 2007 2 次提交
    • J
      [PATCH] mac80211: revamp interface and filter configuration · 4150c572
      Johannes Berg 提交于
      Drivers are currently supposed to keep track of monitor
      interfaces if they allow so-called "hard" monitor, and
      they are also supposed to keep track of multicast etc.
      
      This patch changes that, replaces the set_multicast_list()
      callback with a new configure_filter() callback that takes
      filter flags (FIF_*) instead of interface flags (IFF_*).
      For a driver, this means it should open the filter as much
      as necessary to get all frames requested by the filter flags.
      Accordingly, the filter flags are named "positively", e.g.
      FIF_ALLMULTI.
      
      Multicast filtering is a bit special in that drivers that
      have no multicast address filters need to allow multicast
      frames through when either the FIF_ALLMULTI flag is set or
      when the mc_count value is positive.
      
      At the same time, drivers are no longer notified about
      monitor interfaces at all, this means they now need to
      implement the start() and stop() callbacks and the new
      change_filter_flags() callback. Also, the start()/stop()
      ordering changed, start() is now called *before* any
      add_interface() as it really should be, and stop() after
      any remove_interface().
      
      The patch also changes the behaviour of setting the bssid
      to multicast for scanning when IEEE80211_HW_NO_PROBE_FILTERING
      is set; the IEEE80211_HW_NO_PROBE_FILTERING flag is removed
      and the filter flag FIF_BCN_PRBRESP_PROMISC introduced.
      This is a lot more efficient for hardware like b43 that
      supports it and other hardware can still set the BSSID
      to all-ones.
      
      Driver modifications by Johannes Berg (b43 & iwlwifi), Michael Wu
      (rtl8187, adm8211, and p54), Larry Finger (b43legacy), and
      Ivo van Doorn (rt2x00).
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NMichael Wu <flamingice@sourmilk.net>
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4150c572
    • D
      [MAC80211]: improved short preamble handling · 7e9ed188
      Daniel Drake 提交于
      Similarly to CTS protection, whether short preambles are used for 802.11b
      transmissions should be a per-subif setting, not device global.
      
      For STAs, this patch makes short preamble handling automatic based on the ERP
      IE. For APs, hostapd still uses the prism ioctls, but the write ioctl has been
      restricted to AP-only subifs.
      
      ieee80211_txrx_data.short_preamble (an unused field) was removed.
      
      Unfortunately, some API changes were required for the following functions:
       - ieee80211_generic_frame_duration
       - ieee80211_rts_duration
       - ieee80211_ctstoself_duration
       - ieee80211_rts_get
       - ieee80211_ctstoself_get
      Affected drivers were updated accordingly.
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Signed-off-by: NJiri Benc <jbenc@suse.cz>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7e9ed188
  21. 09 7月, 2007 2 次提交