staging: wilc1000: remove commented code
PATCH v2 1/1 staging: wilc1000: remove commented code
Remove the commented codes using #if 0.
Signed-off-by Chaehyun Lim <[email protected]>
---
V2: revert commented code using typedef and rebase latest staging-testing.
drivers/staging/wilc1000/coreconfigurator.c | 30 --- drivers/staging/wilc1000/coreconfigurator.h | 300 -------------------------- drivers/staging/wilc1000/host_interface.c | 76 ------- drivers/staging/wilc1000/host_interface.h | 65 +----- drivers/staging/wilc1000/linux_mon.c | 45 ---- drivers/staging/wilc1000/linux_wlan.c | 22 -- drivers/staging/wilc1000/wilc_sdio.c | 44 ---- drivers/staging/wilc1000/wilc_spi.c | 70 +----- drivers/staging/wilc1000/wilc_wfi_netdevice.c | 9 - drivers/staging/wilc1000/wilc_wlan.c | 31 --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 26 --- drivers/staging/wilc1000/wilc_wlan_if.h | 22 -- 12 files changed, 2 insertions(+), 738 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +0 -30
@@ -210,9 +210,6 @@ static tstrWID gastrWIDs[] = { {WID_REKEY_POLICY, WID_CHAR}, {WID_REKEY_PERIOD, WID_INT}, {WID_REKEY_PACKET_COUNT, WID_INT}, -#if 0 - {WID_WEP_KEY_VALUE0, WID_STR}, -#endif {WID_11I_PSK, WID_STR}, {WID_1X_KEY, WID_STR}, {WID_1X_SERV_ADDR, WID_IP},
@@ -1619,26 +1616,6 @@ s32 further_process_response(u8 *resp,break ;case WID_BIN_DATA : -#if 0 -/* FILE *fp_bin = NULL; */ -u8 first_bin_wid =1 ; -if (first_bin_wid) { -/* fp_bin = fopen("wid_response.bin","wb"); */ - first_bin_wid =0 ; - }else { -/* fp_bin = fopen("wid_response.bin","ab"); */ - } - -if (/*fp_bin == NULL*/ 0 ) { -PRINT_ER ("Error: Could not open wid_response.bin for write\n" ); -return -2 ; - } - -/* fwrite(resp + idx, cfg_len, 1, fp_bin); */ - -/* fclose(fp_bin); */ -#endif -if (pstrWIDresult->s32ValueSize >= cfg_len) {WILC_memcpy (pstrWIDresult->ps8WidVal, resp + idx, cfg_len); pstrWIDresult->s32ValueSize = cfg_len;
@@ -1884,13 +1861,6 @@ s32 CreateConfigPacket(s8 *ps8packet, s32 *ps32PacketLength, pstrWIDs[u32idx].ps8WidVal, pstrWIDs[u32idx].s32ValueSize);break ; -#if 0 -case WID_ADR : -ProcessAdrWid (ps8packet, ps32PacketLength, &pstrWIDs[u32idx], - pstrWIDs[u32idx].ps8WidVal); -break ; - -#endif case WID_IP :ProcessIPwid (ps8packet, ps32PacketLength, &pstrWIDs[u32idx], pstrWIDs[u32idx].ps8WidVal);
drivers/staging/wilc1000/coreconfigurator.h +0 -300
306 lines not on this page · raw message
drivers/staging/wilc1000/host_interface.c +0 -76
95 lines not on this page · raw message
drivers/staging/wilc1000/host_interface.h +1 -64
83 lines not on this page · raw message
drivers/staging/wilc1000/linux_mon.c +0 -45
51 lines not on this page · raw message
drivers/staging/wilc1000/linux_wlan.c +0 -22
@@ -756,28 +756,6 @@ static void linux_wlan_mac_indicate(int flag) }if (pd->mac_status ==WILC_MAC_STATUS_CONNECT ) {/* Connect */ -#if 0 -/** -* get the mac and bssid address -**/ -PRINT_D (RX_DBG ,"Calling cfg_get to get MAC_ADDR\n" ); - pd->oup.wlan_cfg_get (1 ,WID_MAC_ADDR ,0 ); -PRINT_D (RX_DBG ,"Calling cfg_get to get BSSID\n" ); - pd->oup.wlan_cfg_get (0 ,WID_BSSID ,1 ); - -/** -* get the value -**/ - pd->oup.wlan_cfg_get_value (WID_MAC_ADDR , pd->eth_src_address,6 ); - pd->oup.wlan_cfg_get_value (WID_BSSID , pd->eth_dst_address,6 ); - -PRINT_D (GENERIC_DBG ,"Source Address = %s" , pd->eth_src_address); -PRINT_D (GENERIC_DBG ,"Destiation Address = %s" , pd->eth_dst_address); - -/** -* launch ndis -**/ -#endif } }else if (flag ==WILC_MAC_INDICATE_SCAN ) {
drivers/staging/wilc1000/wilc_sdio.c +0 -44
80 lines not on this page · raw message
drivers/staging/wilc1000/wilc_spi.c +1 -69
94 lines not on this page · raw message
drivers/staging/wilc1000/wilc_wfi_netdevice.c +0 -9
@@ -332,15 +332,6 @@ void WILC_WFI_Rx(struct net_device *dev, struct WILC_WFI_packet *pkt)WILC_WFI_monitor_rx (dev, skb);return ; } -#if 0 -PRINT_D (RX_DBG ,"In RX NORMAl Device name %s\n" , dev->name); -/* Write metadata, and then pass to the receive level */ - skb->dev = dev; - skb->protocol =eth_type_trans (skb, dev); - skb->ip_summed =CHECKSUM_UNNECESSARY ;/* don't check it */ -WILC_WFI_update_stats (priv->dev->ieee80211_ptr->wiphy, pkt->datalen,WILC_WFI_RX_PKT ); -netif_rx (skb); -#endif out:return ; }
drivers/staging/wilc1000/wilc_wlan.c +0 -31
@@ -2044,37 +2044,6 @@ uint32_t init_chip(void) } } - -#if 0 -if ((chipid &0xfff ) <0xf0 ) { -/* Setting MUX to probe sleep signal on pin 6 of J216*/ - g_wlan.hif_func.hif_write_reg (0x1060 ,0x1 ); - g_wlan.hif_func.hif_write_reg (0x1180 ,0x33333333 ); - g_wlan.hif_func.hif_write_reg (0x1184 ,0x33333333 ); - g_wlan.hif_func.hif_read_reg (0x1408 , ®); -/* set MUX for GPIO_4 (pin 4) to cortus GPIO*/ - reg &= ~((0x7 <<16 )); - g_wlan.hif_func.hif_write_reg (0x1408 , (reg | (0x7 <<12 ))); - }else { -/* Enable test bus*/ - g_wlan.hif_func.hif_write_reg (0x1060 ,0x1 ); -/* Rotate bus signals to get sleep signal on pin 6 like it was on previous chips*/ - g_wlan.hif_func.hif_write_reg (0x1188 ,0x70 ); -/* Set output of pin 6 to test bus 0x1*/ -/* Set output of pin 9 to test bus 0x2*/ - g_wlan.hif_func.hif_write_reg (0x1180 ,0x200100 ); - g_wlan.hif_func.hif_read_reg (0x1408 , ®); - -/* set MUX for GPIO_4 (pin 4) to cortus GPIO*/ - reg &= ~((0x7 <<16 )); -/* set MUX for GPIO_3 (pin 6) to test bus*/ - reg |= (0x7 <<12 ) | (0x7 <<24 ); - g_wlan.hif_func.hif_write_reg (0x1408 , reg); - } -#endif - - -release_bus (RELEASE_ONLY );return ret;
drivers/staging/wilc1000/wilc_wlan_cfg.c +0 -26
@@ -374,11 +374,6 @@ static int wilc_wlan_parse_info_frame(uint8_t *info, int size)int type =WILC_CFG_RSP_STATUS ; wid = info[0 ] | (info[1 ] <<8 ); -#if 0 -#ifdef BIG_ENDIAN - wid =BYTE_SWAP (wid); -#endif -#endif len = info[2 ];PRINT_INFO (GENERIC_DBG ,"Status Len = %d Id= %d\n" , len, wid);
@@ -390,27 +385,6 @@ static int wilc_wlan_parse_info_frame(uint8_t *info, int size)return type; } -#if 0 -static int wilc_wlan_parse_network_frame (uint8_t *info,int size) -{ -wilc_mac_cfg_t *priv = (wilc_mac_cfg_t *)&g_mac; -uint32_t wid, len; - - wid = info[0 ] | (info[1 ] <<8 ); - len = info[2 ] | (info[3 ] <<8 ); - -/** -* Review: this message is only for AP mode. -* TBD -**/ -if (wid ==WID_NETWORK_INFO ) {/* not send by the firmware */ - - } - -return ; -} -#endif -/******************************************** * * Configuration Exported Functions
drivers/staging/wilc1000/wilc_wlan_if.h +0 -22
@@ -169,28 +169,6 @@ typedef struct {wilc_wlan_indicate_func_t indicate_func; } wilc_wlan_inp_t; -#if 0 -typedef struct { -int start; -uint32_t id; -void *buffer; -uint32_t buffer_size; -int commit; -}wilc_wlan_cfg_set_t ; - -typedef struct { -int start; -uint32_t id; -int commit; -}wilc_wlan_cfg_get_t ; - -typedef struct { -uint32_t id; -void *buffer; -uint32_t buffer_size; -}wilc_wlan_cfg_val_t ; -#endif -struct tx_complete_data {#ifdef WILC_FULLY_HOSTING_AP struct tx_complete_data *next;
Signature · 1 line
1.9.1