1. 20 8月, 2009 1 次提交
    • J
      mac80211: allow configure_filter callback to sleep · 3ac64bee
      Johannes Berg 提交于
      Over time, a whole bunch of drivers have come up
      with their own scheme to delay the configure_filter
      operation to a workqueue. To be able to simplify
      things, allow configure_filter to sleep, and add
      a new prepare_multicast callback that drivers that
      need the multicast address list implement. This new
      callback must be atomic, but most drivers either
      don't care or just calculate a hash which can be
      done atomically and then uploaded to the hardware
      non-atomically.
      
      A cursory look suggests that at76c50x-usb, ar9170,
      mwl8k (which is actually very broken now), rt2x00,
      wl1251, wl1271 and zd1211 should make use of this
      new capability.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3ac64bee
  2. 14 8月, 2009 1 次提交
  3. 05 8月, 2009 1 次提交
    • L
      mac80211: redefine usage of the mac80211 workqueue · 42935eca
      Luis R. Rodriguez 提交于
      The mac80211 workqueue exists to enable mac80211 and drivers
      to queue their own work on a single threaded workqueue. mac80211
      takes care to flush the workqueue during suspend but we never
      really had requirements on drivers for how they should use
      the workqueue in consideration for suspend.
      
      We extend mac80211 to document how the mac80211 workqueue should
      be used, how it should not be used and finally move raw access to
      the workqueue to mac80211 only. Drivers and mac80211 use helpers
      to queue work onto the mac80211 workqueue:
      
        * ieee80211_queue_work()
        * ieee80211_queue_delayed_work()
      
      These helpers will now warn if mac80211 already completed its
      suspend cycle and someone is trying to queue work. mac80211
      flushes the mac80211 workqueue prior to suspend a few times,
      but we haven't taken the care to ensure drivers won't add more
      work after suspend. To help with this we add a warning when
      someone tries to add work and mac80211 already completed the
      suspend cycle.
      
      Drivers should ensure they cancel any work or delayed work
      in the mac80211 stop() callback.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      42935eca
  4. 04 8月, 2009 1 次提交
  5. 11 7月, 2009 1 次提交
    • J
      mac80211: push rx status into skb->cb · f1d58c25
      Johannes Berg 提交于
      Within mac80211, we often need to copy the rx status into
      skb->cb. This is wasteful, as drivers could be building it
      in there to start with. This patch changes the API so that
      drivers are expected to pass the RX status in skb->cb, now
      accessible as IEEE80211_SKB_RXCB(skb). It also updates all
      drivers to pass the rx status in there, but only by making
      them memcpy() it into place before the call to the receive
      function (ieee80211_rx(_irqsafe)). Each driver can now be
      optimised on its own schedule.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f1d58c25
  6. 21 5月, 2009 1 次提交
  7. 07 5月, 2009 1 次提交
  8. 17 3月, 2009 1 次提交
  9. 06 3月, 2009 1 次提交
  10. 28 2月, 2009 1 次提交
  11. 14 2月, 2009 2 次提交
  12. 10 2月, 2009 1 次提交
  13. 09 1月, 2009 1 次提交
  14. 05 12月, 2008 1 次提交
    • S
      zd1211rw: use unaligned safe memcmp() in-place of compare_ether_addr() · cde6901b
      Shaddy Baddah 提交于
      Under my 2.6.28-rc6 sparc64, when associating to an AP through my
      zd1211rw device, I was seeing kernel log messages like (not exact output):
      
        Kernel unaligned access at TPC[10129b68] zd_mac_rx+0x144/0x32c [zd1211rw]
      
      For the zd1211rw module, on RX, the 80211 packet will be located after
      the PLCP header in the skb data buffer. The PLCP header being 5 bytes
      long, the 80211 header will start unaligned from an aligned skb
      buffer.
      
      As per Documentation/unaligned-memory-access.txt, we must replace the
      not unaligned() safe compare_ether_addr() with memcmp() to protect
      architectures that require alignment.
      Signed-off-by: NShaddy Baddah <shaddy_baddah@hotmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      cde6901b
  15. 01 11月, 2008 3 次提交
  16. 28 10月, 2008 1 次提交
  17. 23 9月, 2008 1 次提交
  18. 16 9月, 2008 2 次提交
  19. 06 9月, 2008 1 次提交
  20. 30 7月, 2008 1 次提交
  21. 15 7月, 2008 1 次提交
    • J
      mac80211: revamp beacon configuration · 9d139c81
      Johannes Berg 提交于
      This patch changes mac80211's beacon configuration handling
      to never pass skbs to the driver directly but rather always
      require the driver to use ieee80211_beacon_get(). Additionally,
      it introduces "change flags" on the config_interface() call
      to enable drivers to figure out what is changing. Finally, it
      removes the beacon_update() driver callback in favour of
      having IBSS beacon delivered by ieee80211_beacon_get() as well.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9d139c81
  22. 10 7月, 2008 1 次提交
  23. 09 7月, 2008 1 次提交
  24. 27 6月, 2008 1 次提交
  25. 10 6月, 2008 1 次提交
  26. 22 5月, 2008 4 次提交
  27. 15 5月, 2008 2 次提交
    • B
      mac80211: use hardware flags for signal/noise units · 566bfe5a
      Bruno Randolf 提交于
      trying to clean up the signal/noise code. the previous code in mac80211 had
      confusing names for the related variables, did not have much definition of
      what units of signal and noise were provided and used implicit mechanisms from
      the wireless extensions.
      
      this patch introduces hardware capability flags to let the hardware specify
      clearly if it can provide signal and noise level values and which units it can
      provide. this also anticipates possible new units like RCPI in the future.
      
      for signal:
      
        IEEE80211_HW_SIGNAL_UNSPEC - unspecified, unknown, hw specific
        IEEE80211_HW_SIGNAL_DB     - dB difference to unspecified reference point
        IEEE80211_HW_SIGNAL_DBM    - dBm, difference to 1mW
      
      for noise we currently only have dBm:
      
        IEEE80211_HW_NOISE_DBM     - dBm, difference to 1mW
      
      if IEEE80211_HW_SIGNAL_UNSPEC or IEEE80211_HW_SIGNAL_DB is used the driver has
      to provide the maximum value (max_signal) it reports in order for applications
      to make sense of the signal values.
      
      i tried my best to find out for each driver what it can provide and update it
      but i'm not sure (?) for some of them and used the more conservative guess in
      doubt. this can be fixed easily after this patch has been merged by changing
      the hardware flags of the driver.
      
      DRIVER          SIGNAL    MAX	NOISE   QUAL
      -----------------------------------------------------------------
      adm8211         unspec(?) 100   n/a     missing
      at76_usb        unspec(?) (?)   unused  missing
      ath5k           dBm             dBm     percent rssi
      b43legacy       dBm             dBm     percent jssi(?)
      b43             dBm             dBm     percent jssi(?)
      iwl-3945        dBm             dBm     percent snr+more
      iwl-4965        dBm             dBm     percent snr+more
      p54             unspec    127   n/a     missing
      rt2x00          dBm	        n/a     percent rssi+tx/rx frame success
        rt2400        dBm             n/a
        rt2500pci     dBm             n/a
        rt2500usb     dBm             n/a
        rt61pci       dBm             n/a
        rt73usb       dBm             n/a
      rtl8180         unspec(?) 65    n/a     (?)
      rtl8187         unspec(?) 65    (?)     noise(?)
      zd1211          dB(?)     100   n/a     percent
      
      drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      566bfe5a
    • B
      zd1211rw: initial IBSS support · 84e6dc9a
      Bruno Randolf 提交于
      this adds initial IBSS support for the zydas zd1211rw:
      convince driver that it can do IBSS mode. add mac80211 beacon_update callback.
      
      IBSS merge and TSF updates don't work yet, but it makes the driver usable in
      ad-hoc networks.
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      84e6dc9a
  28. 07 3月, 2008 1 次提交
  29. 01 3月, 2008 2 次提交
    • M
      zd1211rw: Fix beacon filter flags thinko · 2c1a1b12
      Michael Buesch 提交于
      We must not clear the FIF_BCN_PRBRESP_PROMISC bit in the
      new_flags. The zd-driver does support sending beacons and
      probe responses to the host. What the flag does is say "Send me
      all beacons and probe responses". And we actually do that. We always
      do that, so we ignore the case when the bit is disabled. But that is
      fine. But we must not clear the flag, as that tells mac80211 that
      we do not support passing beacons and probe responses to the stack.
      And that's not true.
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2c1a1b12
    • 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
  30. 21 2月, 2008 1 次提交
  31. 29 1月, 2008 1 次提交
    • J
      mac80211: add unified BSS configuration · 471b3efd
      Johannes Berg 提交于
      This patch (based on Ron Rindjunsky's) creates a framework for
      a unified way to pass BSS configuration to drivers that require
      the information, e.g. for implementing power save mode.
      
      This patch introduces new ieee80211_bss_conf structure that is
      passed to the driver via the new bss_info_changed() callback
      when the BSS configuration changes.
      
      This new BSS configuration infrastructure adds the following
      new features:
       * drivers are notified of their association AID
       * drivers are notified of association status
      
      and replaces the erp_ie_changed() callback. The patch also does
      the relevant driver updates for the latter change.
      Signed-off-by: NRon Rindjunsky <ron.rindjunsky@intel.com>
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      471b3efd