WEXT: Fixed re-initialization of removed and re-inserted interface
authorJouni Malinen <j@w1.fi>
Thu, 24 Jul 2008 22:30:53 +0000 (01:30 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 24 Jul 2008 22:30:53 +0000 (01:30 +0300)
commit3fbda8f943fff3e8afd649663bdcbba9cbfd6ee3
tree4e94225fd4ac4b687218a8d55297a113459ddc7e
parent27e120c46d21065ad22692fe69b1944ce73088b6
WEXT: Fixed re-initialization of removed and re-inserted interface

Network device ifindex will change when the interface is re-inserted.
driver_wext.c will need to accept netlink events from "unknown" (based on
ifindex) interfaces when a previously used card was removed earlier. If the
previously removed interface is added back, the driver_wext data need to be
updated to match with the new ifindex value. In addition, the initial setup
tasks for the card (set interface up, update ifindex, set mode, etc.) from
wpa_driver_wext_init() need to be run again.
src/drivers/driver_wext.c
src/drivers/driver_wext.h