1. 15 8月, 2005 3 次提交
    • J
      [PATCH] hostap: Use void *hw_priv instead of #ifdef in local data · 67e0e473
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      67e0e473
    • J
      [PATCH] hostap: Remove experimental PCI bus master/DMA code · ea3f1865
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      ea3f1865
    • J
      [PATCH] hostap: Fix skb->cb use for TX meta data · 5bee720f
      Jouni Malinen 提交于
      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: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      5bee720f
  2. 11 8月, 2005 1 次提交
  3. 01 8月, 2005 5 次提交
  4. 31 7月, 2005 17 次提交
    • A
      [PATCH] include/net/ieee80211.h must #include <linux/wireless.h> · b7721ff9
      Adrian Bunk 提交于
      -Wundef found an (although perhaps harmless) bug:
      
      <--  snip  -->
      
      ...
        CC      net/ieee80211/ieee80211_crypt.o
      In file included from net/ieee80211/ieee80211_crypt.c:21:
      include/net/ieee80211.h:26:5: warning: "WIRELESS_EXT" is not defined
        CC      net/ieee80211/ieee80211_crypt_wep.o
      In file included from net/ieee80211/ieee80211_crypt_wep.c:20:
      include/net/ieee80211.h:26:5: warning: "WIRELESS_EXT" is not defined
        CC      net/ieee80211/ieee80211_crypt_ccmp.o
        CC      net/ieee80211/ieee80211_crypt_tkip.o
      In file included from net/ieee80211/ieee80211_crypt_tkip.c:23:
      include/net/ieee80211.h:26:5: warning: "WIRELESS_EXT" is not defined
      ...
      
      <--  snip  -->
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      b7721ff9
    • 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
    • J
      /spare/repo/netdev-2.6 branch 'ieee80211' · de745fb2
      Jeff Garzik 提交于
      de745fb2
    • J
      /spare/repo/netdev-2.6 branch 'master' · a670fcb4
      Jeff Garzik 提交于
      a670fcb4
  5. 30 7月, 2005 14 次提交