1. 01 3月, 2008 2 次提交
    • J
      nl80211: export hardware bitrate/channel capabilities · ee688b00
      Johannes Berg 提交于
      This makes nl80211 export the hardware bitrate/channel capabilities
      as registered in a wiphy.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ee688b00
    • 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
  2. 29 1月, 2008 8 次提交
  3. 20 11月, 2007 1 次提交
    • D
      [WIRELESS] WEXT: Fix userspace corruption on 64-bit. · 0a06ea87
      David S. Miller 提交于
      On 64-bit systems sizeof(struct ifreq) is 8 bytes larger than
      sizeof(struct iwreq).
      
      For GET calls, the wireless extension code copies back into userspace
      using sizeof(struct ifreq) but userspace and elsewhere only allocates
      a "struct iwreq".  Thus, this copy writes past the end of the iwreq
      object and corrupts whatever sits after it in memory.
      
      Fix the copy_to_user() length.
      
      This particularly hurts the compat case because the wireless compat
      code uses compat_alloc_userspace() and right after this allocated
      buffer is the current bottom of the user stack, and that's what gets
      overwritten by the copy_to_user() call.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0a06ea87
  4. 13 10月, 2007 1 次提交
    • K
      Driver core: change add_uevent_var to use a struct · 7eff2e7a
      Kay Sievers 提交于
      This changes the uevent buffer functions to use a struct instead of a
      long list of parameters. It does no longer require the caller to do the
      proper buffer termination and size accounting, which is currently wrong
      in some places. It fixes a known bug where parts of the uevent
      environment are overwritten because of wrong index calculations.
      
      Many thanks to Mathieu Desnoyers for finding bugs and improving the
      error handling.
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      7eff2e7a
  5. 11 10月, 2007 7 次提交
  6. 26 9月, 2007 2 次提交
  7. 13 7月, 2007 1 次提交
  8. 12 6月, 2007 1 次提交
  9. 27 4月, 2007 10 次提交
  10. 26 4月, 2007 3 次提交