|
@@ -1098,6 +1098,8 @@ static int device_close(struct net_device *dev)
|
|
|
memset(pMgmt->abyCurrBSSID, 0, 6);
|
|
|
pMgmt->eCurrState = WMAC_STATE_IDLE;
|
|
|
|
|
|
+ pDevice->flags &= ~DEVICE_FLAGS_OPENED;
|
|
|
+
|
|
|
device_free_tx_bufs(pDevice);
|
|
|
device_free_rx_bufs(pDevice);
|
|
|
device_free_int_bufs(pDevice);
|
|
@@ -1109,7 +1111,6 @@ static int device_close(struct net_device *dev)
|
|
|
usb_free_urb(pDevice->pInterruptURB);
|
|
|
|
|
|
BSSvClearNodeDBTable(pDevice, 0);
|
|
|
- pDevice->flags &=(~DEVICE_FLAGS_OPENED);
|
|
|
|
|
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_close2 \n");
|
|
|
|