Skip to content
Snippets Groups Projects
  1. Sep 23, 2009
  2. Sep 14, 2009
  3. Mar 21, 2009
  4. Feb 27, 2009
  5. Nov 21, 2008
  6. Oct 27, 2008
  7. Jun 30, 2008
  8. Jun 12, 2008
    • David S. Miller's avatar
      net: Eliminate flush_scheduled_work() calls while RTNL is held. · 4bb073c0
      David S. Miller authored
      
      If the RTNL is held when we invoke flush_scheduled_work() we could
      deadlock.  One such case is linkwatch, it is a work struct which tries
      to grab the RTNL semaphore.
      
      The most common case are net driver ->stop() methods.  The
      simplest conversion is to instead use cancel_{delayed_}work_sync()
      explicitly on the various work struct the driver uses.
      
      This is an OK transformation because these work structs are doing
      things like resetting the chip, restarting link negotiation, and so
      forth.  And if we're bringing down the device, we're about to turn the
      chip off and reset it anways.  So if we cancel a pending work event,
      that's fine here.
      
      Some drivers were working around this deadlock by using a msleep()
      polling loop of some sort, and those cases are converted to instead
      use cancel_{delayed_}work_sync() as well.
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4bb073c0
  9. Jan 28, 2008
  10. Oct 10, 2007
  11. Jul 08, 2007
    • Jouni Malinen's avatar
      [PATCH] hostap: Remove driver version number · bd5824f1
      Jouni Malinen authored
      
      The driver version number has not been updated since the driver was
      included in the main kernel tree and there is no plan on updating this
      in the future either. At this point, the only correct way to refer to
      the version is to use the kernel version. The 0.4.4 version is
      confusing since there are external version with higher version number
      even though they are not actually any newer than the in-tree version.
      
      Let's get rid of the version number in the kernel tree in order to
      avoid this kind of confusion.
      
      Signed-off-by: default avatarJouni Malinen <j@w1.fi>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      bd5824f1
  12. Apr 28, 2007
  13. Apr 25, 2007
  14. Feb 07, 2007
  15. Dec 13, 2006
    • Robert P. J. Day's avatar
      [PATCH] getting rid of all casts of k[cmz]alloc() calls · 5cbded58
      Robert P. J. Day authored
      
      Run this:
      
      	#!/bin/sh
      	for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
      	  echo "De-casting $f..."
      	  perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
      	done
      
      And then go through and reinstate those cases where code is casting pointers
      to non-pointers.
      
      And then drop a few hunks which conflicted with outstanding work.
      
      Cc: Russell King <rmk@arm.linux.org.uk>, Ian Molton <spyro@f2s.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Paul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Karsten Keil <kkeil@suse.de>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Ian Kent <raven@themaw.net>
      Cc: Steven French <sfrench@us.ibm.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      5cbded58
  16. Nov 22, 2006
  17. Jun 30, 2006
  18. May 17, 2006
  19. Jan 16, 2006
  20. Nov 16, 2005
  21. Nov 09, 2005
    • Olaf Hering's avatar
      [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason · 733482e4
      Olaf Hering authored
      
      This patch removes almost all inclusions of linux/version.h.  The 3
      #defines are unused in most of the touched files.
      
      A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
      unfortunatly in linux/version.h.
      
      There are also lots of #ifdef for long obsolete kernels, this was not
      touched.  In a few places, the linux/version.h include was move to where
      the LINUX_VERSION_CODE was used.
      
      quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
      
      search pattern:
      /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h
      
      Signed-off-by: default avatarOlaf Hering <olh@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      733482e4
  22. Oct 03, 2005
    • Jouni Malinen's avatar
      [PATCH] hostap: Remove hw specific dev_open/close handlers · bab76198
      Jouni Malinen authored
      
      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: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      bab76198
  23. Aug 14, 2005
  24. Jul 30, 2005
    • Jouni Malinen's avatar
      [PATCH] hostap: Replace crypto code with net/ieee80211 version · 62fe7e37
      Jouni Malinen authored
      
      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: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      62fe7e37
    • Jouni Malinen's avatar
      [PATCH] hostap: Start using net/ieee80211.h · ebed67d2
      Jouni Malinen authored
      
      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: default avatarJouni Malinen <jkmaline@cc.hut.fi>
      Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
      ebed67d2
    • 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
    • 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
    • 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
  25. May 12, 2005
Loading