1. 29 Apr, 2009 2 commits
  2. 28 Apr, 2009 5 commits
  3. 27 Apr, 2009 12 commits
  4. 26 Apr, 2009 2 commits
  5. 24 Apr, 2009 4 commits
  6. 22 Apr, 2009 10 commits
  7. 21 Apr, 2009 5 commits
    • Reinette Chatre's avatar
      iwlwifi: DMA fixes · df833b1d
      Reinette Chatre authored
      A few issues wrt DMA were uncovered when using the driver with swiotlb.
      - driver should not use memory after it has been mapped
      - iwl3945's RX queue management cannot use all of iwlagn because
        the size of the RX buffer is different. Revert back to using
        iwl3945 specific routines that map/unmap memory.
      - no need to "dma_syn_single_range_for_cpu" followed by pci_unmap_single,
        we can just call pci_unmap_single initially
      - only map the memory area that will be used by device. this is especially
        relevant to the mapping of iwl_cmd. we should not map the entire
        structure because the meta data at the beginning of structure contains
        the address to be used later for unmapping. If the address to be used for
        unmapping is stored in mapped data it creates a problem.
      - ensure that _if_ memory needs to be modified after it is mapped that we
        call _sync_single_for_cpu first, and then release it back to device with
        _sync_single_for_device
      - we mapped the wrong length of data for host commands, with mapped length
        differing with length provided to device, fix that.
      
      Thanks to Jason Andryuk <jandryuk@gmail.com> for significant bisecting
      help to find these issues.
      
      This fixes http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1964Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
      Tested-by: default avatarJason Andryuk <jandryuk@gmail.com>
      Tested-by: default avatarBen Gamari <bgamari@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      df833b1d
    • Reinette Chatre's avatar
      iwlwifi: add debugging for TX path · d2ee9cd2
      Reinette Chatre authored
      When debugging TX issues it is helpful to know the seq nr of the
      frame being transmitted. The seq nr is printed as part of ucode's
      log informing us which frame is being processed. Having this information
      printed in driver log makes it easy to match activities between driver
      and firmware.
      
      Also make possible to print TX flags directly. These are already printed
      as part of entire TX command, but having it printed directly in cpu format
      makes it easier to look at.
      Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      d2ee9cd2
    • Rami Rosen's avatar
      mwl8: fix build warning. · c491bf12
      Rami Rosen authored
      This patch fixes a build warning in mwl8.c.
      (Marvell TOPDOG wireless driver)
      
      The warning it fixes is: "large integer implicitly truncated to unsigned type."
      
      The rx_ctrl member of the mwl8k_rx_desc struct is 8 bit (__u8 ), whereas trying
      to assign it a 32 bit value (which is returned from  cpu_to_le32())
      causes the compiler to issue
      a truncation warning.
      Signed-off-by: default avatarRami Rosen <ramirose@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      c491bf12
    • Johannes Berg's avatar
      mac80211: fix alignment calculation bug · d1bcb9f1
      Johannes Berg authored
      When checking whether or not a given frame needs to be
      moved to be properly aligned to a 4-byte boundary, we
      use & 4 which wasn't intended, this code should check
      the lowest two bits.
      Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      d1bcb9f1
    • Reinette Chatre's avatar
      mac80211: do not print WARN if config interface · 7d42081a
      Reinette Chatre authored
      It is expected that config interface will always succeed as mac80211
      will only request what driver supports. The exception here is when a
      device has rfkill enabled. At this time the rfkill state is unknown to
      mac80211 and config interface can fail. When this happens we deal with
      this error instead of printing a WARN.
      Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      7d42081a