]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] hostap: Remove hw specific dev_open/close handlers
authorJouni Malinen <jkmaline@cc.hut.fi>
Mon, 3 Oct 2005 00:18:58 +0000 (17:18 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 4 Oct 2005 02:00:08 +0000 (22:00 -0400)
commitfbfbabff96c89c3f2f84f3652fa3775c16dbff6e
tree11f1e2ec911c48a1e74563979457e8d299e414e5
parent7818beb144fa9415eaa8277e5181957ab07b6663
[PATCH] hostap: Remove hw specific dev_open/close handlers

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: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/hostap/hostap.c
drivers/net/wireless/hostap/hostap_cs.c
drivers/net/wireless/hostap/hostap_pci.c
drivers/net/wireless/hostap/hostap_plx.c
drivers/net/wireless/hostap/hostap_wlan.h