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. 15 8月, 2005 4 次提交
    • J
      [PATCH] hostap: Remove extra defines · 3ec0f485
      Jouni Malinen 提交于
      Remove unused defines that are already available from generic kernel
      header files.
      Signed-off-by: NJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      3ec0f485
    • 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
  3. 31 7月, 2005 4 次提交
    • 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
    • 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
    • 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
  4. 13 5月, 2005 1 次提交