1. 04 10月, 2005 1 次提交
    • J
      [PATCH] hostap: Remove hw specific dev_open/close handlers · bab76198
      Jouni Malinen 提交于
      Host AP driver used hardware model specific dev_open/close handlers
      that were called on dev_open/close if the hardware driver had
      registered the handler. These were only used for hostap_cs and only
      for tracking whether any of the netdevs were UP. This information is
      already available from local->num_dev_open, so there is not need for
      the special open/close handler.
      
      Let's get rid of these handlers. In addition to cleaning up the code,
      this fixes a module refcounting issue for hostap_cs where ejecting the
      card while any of the netdevs were open did not decrement refcount
      properly.
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      bab76198
  2. 24 9月, 2005 4 次提交
  3. 22 9月, 2005 2 次提交
  4. 05 9月, 2005 1 次提交
  5. 02 9月, 2005 1 次提交
  6. 01 9月, 2005 1 次提交
  7. 29 8月, 2005 3 次提交
  8. 26 8月, 2005 1 次提交
  9. 19 8月, 2005 1 次提交
  10. 15 8月, 2005 8 次提交
  11. 11 8月, 2005 1 次提交
  12. 01 8月, 2005 1 次提交
  13. 31 7月, 2005 14 次提交
    • J
      [PATCH] hostap: Replace crypto code with net/ieee80211 version · 62fe7e37
      Jouni Malinen 提交于
      Replace Host AP version of WEP, TKIP, CCMP implementation with
      net/ieee80211 that has more or less identical implementation (since
      it is based on the Host AP implementation). Remove Host AP specific
      implementation and modules from drivers/net/wireless/hostap.
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      62fe7e37
    • J
      [PATCH] hostap: Start using net/ieee80211.h · ebed67d2
      Jouni Malinen 提交于
      Preparations for starting to use net/ieee80211 instead of private
      IEEE 802.11 implementation. Include net/ieee80211.h and
      net/ieee80211_crypt.h into files that will be needed these in the
      future. Remove duplicate definitions from hostap_common.h and
      rename WLAN_FC_GET_{TYPE,STYPE} macros for now sinc net/ieee80211.h
      is using incompatible definitions. This will be resolved in the
      future by updating Host AP to use the versions that do not shift
      type/stype.
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      ebed67d2
    • J
      [PATCH] hostap update · f3b10e16
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      f3b10e16
    • P
      [PATCH] hostap update · b15eff26
      Pavel Roskin 提交于
      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: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      b15eff26
    • B
      [PATCH] hostap update · 3e1d3932
      Brandon Enochs 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      3e1d3932
    • J
      [PATCH] hostap update · 0c629a69
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      0c629a69
    • J
      [PATCH] hostap update · 2e4fd068
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      2e4fd068
    • J
      [PATCH] hostap update · 72ca9c61
      Jouni Malinen 提交于
      Added support for setting channel mask for scan requests
      ('iwpriv wlan0 scan_channels 0x00ff' masks scans to use channels 1-8).
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      72ca9c61
    • J
      [PATCH] hostap update · f06ac319
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      f06ac319
    • H
      [PATCH] hostap update · 093853c3
      Henrik Brix Andersen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      093853c3
    • D
      [PATCH] hostap update · 0cd545d6
      Dave Hansen 提交于
      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: NDave Hansen <haveblue@us.ibm.com>
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      0cd545d6
    • J
      [PATCH] hostap update · 0ef79ee2
      Jar 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      0ef79ee2
    • A
      [PATCH] hostap update · 1fad8104
      Adrian Bunk 提交于
      EXPORT_SYMTAB does nothing. There's no need to define something if it
      doesn't have any effect.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      1fad8104
    • J
      [PATCH] hostap update · 47e362cf
      Jouni Malinen 提交于
      Update hostap_cs to use new PCMCIA event callback registration.
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      47e362cf
  14. 13 5月, 2005 1 次提交