1. 15 Aug, 2005 3 commits
    • Jouni Malinen's avatar
      [PATCH] hostap: Use void *hw_priv instead of #ifdef in local data · 67e0e473
      Jouni Malinen authored
      Replace hardware model specific #ifdef's in struct local_info with
      void *hw_priv that is pointing to cs/pci/plx specific data
      structure. This removes unneeded #ifdef's and as such, is a step
      towards making it possible to share objects for hostap_hw.c and
      hostap_download.c with cs/pci/plx drivers without having to compile
      and link the same code separately for each one.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      67e0e473
    • Jouni Malinen's avatar
      [PATCH] hostap: Remove experimental PCI bus master/DMA code · ea3f1865
      Jouni Malinen authored
      PCI version of Prism2.5/3 has undocumented DMA support for TX/RX data,
      but this seems to have some hardware bugs that prevent it from being
      used properly for TX. RX side could possibly be made to work reliably.
      
      Even though DMA support would be very useful for saving host CPU (from
      about 40% to 5-10% when operating at maximum throughput), it seems to
      be best to just remove this code finally. The implementation has
      always been commented out by default and has received very limited
      testing. The code may have already been broken number of times and I
      don't have much interested in trying to verify whether it works or
      not. Getting this out makes it easier to maintain the driver and
      allows some cleanups that have been partly postponed because of this
      experimental bus master/DMA code.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      ea3f1865
    • Jouni Malinen's avatar
      [PATCH] hostap: Fix skb->cb use for TX meta data · 5bee720f
      Jouni Malinen authored
      Old AP mode code for power saving was using skb->cb for couple of
      flags before the more generic 802.11 TX code started using the same
      buffer for struct hostap_skb_tx_data. This resulted in the power save
      code corrupting the magic value in beginning of the buffer and TX code
      dropping the power saved packets because of this for the case where
      STAs send PS-Poll frames with PwrMgmt flag set.
      
      This patch modifies the power save code to use the same struct
      hostap_skb_tx_data as rest of the TX path in order to avoid corrupting
      the data in skb->cb.
      
      In addition, this patch reorders fields in the structure and makes
      them use smaller types in order to make the structure fit in skb->cb
      on 64-bit hosts.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      5bee720f
  2. 11 Aug, 2005 1 commit
  3. 31 Jul, 2005 8 commits
  4. 30 Jul, 2005 14 commits
    • Jouni Malinen's avatar
      [PATCH] hostap update · f3b10e16
      Jouni Malinen authored
      Fixed beacon frame when moving from monitor mode to master mode
      (workaround for firmware bug that left IBSS IE in the Beacon
      frames). This is using the same workaround that was previously used
      when moving from adhoc mode to master mode.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      f3b10e16
    • Pavel Roskin's avatar
      [PATCH] hostap update · b15eff26
      Pavel Roskin authored
      Warning fix for 64-bit platforms
      
      Hello!
      
      The patch fixes following warning seen on 64-bit platforms (in my case -
      x86_64, gcc-4.0):
      
      In file included from /usr/local/src/hostap/driver/modules/hostap_cs.c:203:
      /usr/local/src/hostap/driver/modules/hostap_hw.c: In function ?prism2_transmit_cb?:
      /usr/local/src/hostap/driver/modules/hostap_hw.c:1674: warning: cast from pointer to integer of different size
      /usr/local/src/hostap/driver/modules/hostap_hw.c: In function ?prism2_transmit?:
      /usr/local/src/hostap/driver/modules/hostap_hw.c:1758: warning: cast to pointer from integer of different size
      
      prism2_transmit_cb uses a (void *) argument to get an integer.   A
      simple fix would be to use double cast from pointer to long and then to
      int (and vice versa when int is passed as a pointer).  But I prefer a
      slightly longer patch.
      
      I believe that whenever an argument can hold both a pointer and an
      integer, it should be declared long.  long can hold both pointers and
      integers (except win64, but we are not coding for Windows), it can be
      cast to both of them and it's never assumed to be a valid pointer, which
      could be useful for some automatic code checkers.
      Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      b15eff26
    • Brandon Enochs's avatar
      [PATCH] hostap update · 3e1d3932
      Brandon Enochs authored
      line 129 of hostap_80211_rx.c should read:
      
             LWNG_SETVAL(mactime, 2, 0, 4, rx_stats->mac_time);
      
      not:
             LWNG_SETVAL(mactime, 2, 0, 0, rx_stats->mac_time);
      
      The length field is incorrect.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      3e1d3932
    • Jouni Malinen's avatar
      [PATCH] hostap update · 0c629a69
      Jouni Malinen authored
      Firmware seems to be getting into odd state in host_roaming mode 2
      when hostscan is used without join command, so try to fix this by
      re-joining the current AP. This does not actually trigger a new
      association if the current AP is still in the scan results.
      
      This makes background scans (iwlist wlan0 scan) not to break data
      connection when in host_roaming 2 mode, e.g., when using wpa_supplicant.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      0c629a69
    • Jouni Malinen's avatar
      [PATCH] hostap update · 2e4fd068
      Jouni Malinen authored
      Cleaned up scan result processing by converting struct
      hfa384x_scan_result into struct hfa384x_hostscan_result. This removes
      special cases from result processing since the results are only used
      in one, hostscan, format.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      2e4fd068
    • Jouni Malinen's avatar
      [PATCH] hostap update · 72ca9c61
      Jouni Malinen authored
      Added support for setting channel mask for scan requests
      ('iwpriv wlan0 scan_channels 0x00ff' masks scans to use channels 1-8).
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      72ca9c61
    • Jouni Malinen's avatar
      [PATCH] hostap update · f06ac319
      Jouni Malinen authored
      Add MODULE_VERSION information for the Host AP kernel modules and
      update the version string to indicate which version of the external
      Host AP driver is included in the kernel tree.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      f06ac319
    • Henrik Brix Andersen's avatar
      [PATCH] hostap update · 093853c3
      Henrik Brix Andersen authored
      pcmcia id_table for hostap_cs.c
      
      Hi Jouni,
      
      Here's a patch for adding a pcmcia id_table to hostap_cs.c as introduced
      by the PCMCIA subsystem changes in linux-2.6.13-rc1. The id_table allows
      hotplug (along with pcmciautils [1]) to load the driver without the need
      for the pcmcia-cs cardmgr daemon.
      
      The id_table was generated from the CVS version of hostap_cs.conf using
      a script borrowed from Dominik Brodowski. I have removed any duplicate
      entries, but I have only been able to test the functionality of the
      patch with a Linksys WPC11v3.
      
      Sincerely,
      Brix
      
      [1]: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      093853c3
    • Dave Hansen's avatar
      [PATCH] hostap update · 0cd545d6
      Dave Hansen authored
      Create sysfs "device" files for hostap
      
      I was writing some scripts to automatically build kismet source lines,
      and I noticed that hostap devices don't have device files, unlike my
      prism54 and ipw2200 cards:
      
      $ ls -l /sys/class/net/eth0/device
      /sys/class/net/eth0/device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:02:01.0
      $ ls -l /sys/class/net/wifi0
      ls: /sys/class/net/wifi0/device: No such file or directory
      $ ls -l /sys/class/net/wlan0
      ls: /sys/class/net/wlan0/device: No such file or directory
      
      The following (quite small) patch makes sure that both the wlan and wifi
      net devices have that pointer to the bus device.
      
      This way, I can do things like
      
              for i in /sys/class/net/*; do
                      if ! [ -e $i/device/drive ]; then
                              continue;
                      fi;
                      driver=$(basename $(readlink $i/device/driver))
                      case $driver in
                              hostap*)
                                      echo -- hostap,$i,$i-$driver
                                      break;
                              ipw2?00)
                                      echo -- $driver,$i,$i-$driver
                                      break;
                              prism54)
                                      echo prism54g,$i
                      esac
              done
      
      Which should generate a working set of source lines for kismet no matter
      what order I plug the cards in.
      
      It might also be handy to have a link between the two net devices, but
      that's a patch for another day.
      
      That patch is against 2.6.13-rc1-mm1.
      
      -- Dave
      Signed-off-by: default avatarDave Hansen <haveblue@us.ibm.com>
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      0cd545d6
    • Jar's avatar
      [PATCH] hostap update · 0ef79ee2
      Jar authored
      hostap_cs: Remove irq_list, irq_mask and pcmcia/version.h
      
      Remove irq_list, irq_mask and pcmcia/version.h as suggested in
      http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.htmlSigned-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      0ef79ee2
    • Adrian Bunk's avatar
      [PATCH] hostap update · 1fad8104
      Adrian Bunk authored
      EXPORT_SYMTAB does nothing. There's no need to define something if it
      doesn't have any effect.
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      1fad8104
    • Jouni Malinen's avatar
      [PATCH] hostap update · 47e362cf
      Jouni Malinen authored
      Update hostap_cs to use new PCMCIA event callback registration.
      Signed-off-by: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      47e362cf
    • Jeff Garzik's avatar
      /spare/repo/netdev-2.6 branch 'ieee80211' · de745fb2
      Jeff Garzik authored
      de745fb2
    • Jeff Garzik's avatar
      /spare/repo/netdev-2.6 branch 'master' · a670fcb4
      Jeff Garzik authored
      a670fcb4
  5. 29 Jul, 2005 14 commits