staging: vt6656: remove wpahdr from driver.
PATCH 3/10 staging: vt6656: remove wpahdr from driver.
wpahdr relates to redundant viawget, a proprietary version of wpa supplicant.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/bssdb.c | 29 ------------------- drivers/staging/vt6656/dpc.c | 25 ----------------- drivers/staging/vt6656/main_usb.c | 37 ------------------------ drivers/staging/vt6656/wmgr.c | 56 ------------------------------------- 4 files changed, 147 deletions(-)
drivers/staging/vt6656/bssdb.c +0 -29
@@ -882,7 +882,6 @@ void BSSvSecondCallBack(void *hDeviceContext)unsigned int uSleepySTACnt =0 ;unsigned int uNonShortSlotSTACnt =0 ;unsigned int uLongPreambleSTACnt =0 ; -viawget_wpa_header *wpahdr;spin_lock_irq (&pDevice->lock);
@@ -1100,20 +1099,6 @@ if((pMgmt->eCurrState!=WMAC_STATE_ASSOC) &&DBG_PRT (MSG_LEVEL_NOTICE ,KERN_INFO "Lost AP beacon [%d] sec, disconnected !\n" , pMgmt->sNodeDBTable[0 ].uInActiveCount);/* let wpa supplicant know AP may disconnect */ -if ((pDevice->bWPADEVUp) && (pDevice->skb !=NULL )) { - wpahdr = (viawget_wpa_header *)pDevice->skb->data; - wpahdr->type =VIAWGET_DISASSOC_MSG ; - wpahdr->resp_ie_len =0 ; - wpahdr->req_ie_len =0 ; -skb_put (pDevice->skb,sizeof (viawget_wpa_header)); - pDevice->skb->dev = pDevice->wpadev; -skb_reset_mac_header (pDevice->skb); - pDevice->skb->pkt_type =PACKET_HOST ; - pDevice->skb->protocol =htons (ETH_P_802_2 ); -memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb)); -netif_rx (pDevice->skb); - pDevice->skb =dev_alloc_skb ((int )pDevice->rx_buf_sz); - } {union iwreq_data wrqu;memset (&wrqu,0 ,sizeof (wrqu));
@@ -1140,20 +1125,6 @@ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "bIsRoaming %d, !\n", pDevice->bIsRoaming ); pDevice->uAutoReConnectTime =0 ; pDevice->uIsroamingTime =0 ; pDevice->bRoaming = FALSE; - - wpahdr = (viawget_wpa_header *)pDevice->skb->data; - wpahdr->type =VIAWGET_CCKM_ROAM_MSG ; - wpahdr->resp_ie_len =0 ; - wpahdr->req_ie_len =0 ; -skb_put (pDevice->skb,sizeof (viawget_wpa_header)); - pDevice->skb->dev = pDevice->wpadev; -skb_reset_mac_header (pDevice->skb); - pDevice->skb->pkt_type =PACKET_HOST ; - pDevice->skb->protocol =htons (ETH_P_802_2 ); -memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb)); -netif_rx (pDevice->skb); - pDevice->skb =dev_alloc_skb ((int )pDevice->rx_buf_sz); - }else if ((pDevice->bRoaming == FALSE)&&(pDevice->bIsRoaming == TRUE)) { pDevice->uIsroamingTime++;
drivers/staging/vt6656/dpc.c +0 -25
@@ -818,7 +818,6 @@ RXbBulkInProcessData (DWORD dwMICKey0 =0 , dwMICKey1 =0 ;DWORD dwLocalMIC_L =0 ;DWORD dwLocalMIC_R =0 ; -viawget_wpa_header *wpahdr;if (pMgmt->eCurrMode ==WMAC_MODE_ESS_AP ) {
@@ -889,30 +888,6 @@ RXbBulkInProcessData ( } - -if ((pDevice->bWPADEVUp) && (pDevice->skb !=NULL )) { - wpahdr = (viawget_wpa_header *)pDevice->skb->data; -if ((pMgmt->eCurrMode ==WMAC_MODE_ESS_STA ) && - (pMgmt->eCurrState ==WMAC_STATE_ASSOC ) && - (*pbyRsr & (RSR_ADDRBROAD |RSR_ADDRMULTI )) ==0 ) { -//s802_11_Status.Flags = NDIS_802_11_AUTH_REQUEST_PAIRWISE_ERROR; - wpahdr->type =VIAWGET_PTK_MIC_MSG ; - }else { -//s802_11_Status.Flags = NDIS_802_11_AUTH_REQUEST_GROUP_ERROR; - wpahdr->type =VIAWGET_GTK_MIC_MSG ; - } - wpahdr->resp_ie_len =0 ; - wpahdr->req_ie_len =0 ; -skb_put (pDevice->skb,sizeof (viawget_wpa_header)); - pDevice->skb->dev = pDevice->wpadev; -skb_reset_mac_header (pDevice->skb); - pDevice->skb->pkt_type =PACKET_HOST ; - pDevice->skb->protocol =htons (ETH_P_802_2 ); -memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb)); -netif_rx (pDevice->skb); -return TRUE; - } -return FALSE; }
drivers/staging/vt6656/main_usb.c +0 -37
@@ -244,7 +244,6 @@ static int Config_FileGetParameter(unsigned char *string,unsigned char *dest, unsigned char *source); -static BOOL device_release_WPADEV (PSDevice pDevice);static void usb_device_reset (PSDevice pDevice);
@@ -634,40 +633,6 @@ static BOOL device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)return TRUE; } -static BOOL device_release_WPADEV (PSDevice pDevice) -{ -viawget_wpa_header *wpahdr; -int ii=0 ; -// wait_queue_head_t Set_wait; -//send device close to wpa_supplicant layer -if (pDevice->bWPADEVUp==TRUE) { - wpahdr = (viawget_wpa_header *)pDevice->skb->data; - wpahdr->type =VIAWGET_DEVICECLOSE_MSG ; - wpahdr->resp_ie_len =0 ; - wpahdr->req_ie_len =0 ; -skb_put (pDevice->skb,sizeof (viawget_wpa_header)); - pDevice->skb->dev = pDevice->wpadev; -skb_reset_mac_header (pDevice->skb); - pDevice->skb->pkt_type =PACKET_HOST ; - pDevice->skb->protocol =htons (ETH_P_802_2 ); -memset (pDevice->skb->cb,0 ,sizeof (pDevice->skb->cb)); -netif_rx (pDevice->skb); - pDevice->skb =dev_alloc_skb ((int )pDevice->rx_buf_sz); - -//wait release WPADEV -// init_waitqueue_head(&Set_wait); -// wait_event_timeout(Set_wait, ((pDevice->wpadev==NULL)&&(pDevice->skb == NULL)),5*HZ); //1s wait -while (pDevice->bWPADEVUp==TRUE) { -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /20 );//wait 50ms - ii++; -if (ii>20 ) -break ; - } - } -return TRUE; -} -#ifdef CONFIG_PM /* Minimal support for suspend and resume */ static int vt6656_suspend (struct usb_interface *intf,pm_message_t message)
@@ -1143,7 +1108,6 @@ static int device_close(struct net_device *dev) {mdelay (30 ); } -device_release_WPADEV (pDevice);memset (pMgmt->abyDesireSSID,0 ,WLAN_IEHDR_LEN +WLAN_SSID_MAXLEN +1 ); pMgmt->bShareKeyAlgorithm = FALSE;
@@ -1216,7 +1180,6 @@ static void vt6656_disconnect(struct usb_interface *intf)wireless_send_event (device->dev,IWEVCUSTOM , &req,NULL ); } -device_release_WPADEV (device);usb_set_intfdata (intf,NULL );usb_put_dev (interface_to_usbdev (intf));
drivers/staging/vt6656/wmgr.c +0 -56
92 lines not on this page · raw message
Signature · 1 line
1.7.10.4