1. 01 3月, 2008 3 次提交
    • I
      wireless: Fix WARN_ON() with ieee802.11b · 406f2388
      Ivo van Doorn 提交于
      When the driver registers a IEEE80211_BAND_2GHZ band,
      it can either be 802.11b or 802.11g. But when 802.11b rates
      are registered "want" will be 3 (since 4 rates are being registered,
      and each of those 4 rates will decrease "want").
      Since this is a correct situation, there is no need to trigger
      a WARN_ON() for this.
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      406f2388
    • J
      wireless: fix ERP rate flags · aac09fbf
      Johannes Berg 提交于
      In the rate API patch I accidentally reverted the test for
      ERP rates, this fixes it. All rates except 1, 2, 5.5 and 11
      MBit are ERP rates, not those.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      aac09fbf
    • 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