diff options
| -rw-r--r-- | drivers/staging/vt6656/main_usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 536971786ae8..6f9d28182445 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c | |||
| @@ -1098,6 +1098,8 @@ static int device_close(struct net_device *dev) | |||
| 1098 | memset(pMgmt->abyCurrBSSID, 0, 6); | 1098 | memset(pMgmt->abyCurrBSSID, 0, 6); |
| 1099 | pMgmt->eCurrState = WMAC_STATE_IDLE; | 1099 | pMgmt->eCurrState = WMAC_STATE_IDLE; |
| 1100 | 1100 | ||
| 1101 | pDevice->flags &= ~DEVICE_FLAGS_OPENED; | ||
| 1102 | |||
| 1101 | device_free_tx_bufs(pDevice); | 1103 | device_free_tx_bufs(pDevice); |
| 1102 | device_free_rx_bufs(pDevice); | 1104 | device_free_rx_bufs(pDevice); |
| 1103 | device_free_int_bufs(pDevice); | 1105 | device_free_int_bufs(pDevice); |
| @@ -1109,7 +1111,6 @@ static int device_close(struct net_device *dev) | |||
| 1109 | usb_free_urb(pDevice->pInterruptURB); | 1111 | usb_free_urb(pDevice->pInterruptURB); |
| 1110 | 1112 | ||
| 1111 | BSSvClearNodeDBTable(pDevice, 0); | 1113 | BSSvClearNodeDBTable(pDevice, 0); |
| 1112 | pDevice->flags &=(~DEVICE_FLAGS_OPENED); | ||
| 1113 | 1114 | ||
| 1114 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_close2 \n"); | 1115 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_close2 \n"); |
| 1115 | 1116 | ||
