[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>
Showing
- drivers/net/wireless/hostap/hostap.c 0 additions, 6 deletionsdrivers/net/wireless/hostap/hostap.c
- drivers/net/wireless/hostap/hostap_cs.c 10 additions, 35 deletionsdrivers/net/wireless/hostap/hostap_cs.c
- drivers/net/wireless/hostap/hostap_pci.c 0 additions, 2 deletionsdrivers/net/wireless/hostap/hostap_pci.c
- drivers/net/wireless/hostap/hostap_plx.c 0 additions, 2 deletionsdrivers/net/wireless/hostap/hostap_plx.c
- drivers/net/wireless/hostap/hostap_wlan.h 0 additions, 2 deletionsdrivers/net/wireless/hostap/hostap_wlan.h
Loading
Please register or sign in to comment