From: Sergio Paracuellos Date: Fri, 4 May 2018 04:16:09 +0000 (+0200) Subject: staging: ks7010: remove missing WPS preprocessor conditional code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a98ebb8f8b1dbc194a60b81d849a2bb939980fbb;p=openwrt%2Fstaging%2Fblogic.git staging: ks7010: remove missing WPS preprocessor conditional code Commit 92c1552caef3661f049c4e967550e933599e2663 removes WPS hardcoded definition and its related conditional preprocessor code. There was some missing stuff already in this files. Remove it. Signed-off-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index c0a9a67dc0b4..ea484f2e9179 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -611,10 +611,8 @@ void hostif_mib_set_confirm(struct ks_wlan_private *priv) case DOT11_PMK_TSC: case LOCAL_PMK: case LOCAL_GAIN: -#ifdef WPS case LOCAL_WPS_ENABLE: case LOCAL_WPS_PROBE_REQ: -#endif /* WPS */ case LOCAL_REGION: default: break; @@ -644,7 +642,6 @@ void hostif_sleep_confirm(struct ks_wlan_private *priv) static void hostif_start_confirm(struct ks_wlan_private *priv) { -#ifdef WPS union iwreq_data wrqu; wrqu.data.length = 0; @@ -654,7 +651,6 @@ void hostif_start_confirm(struct ks_wlan_private *priv) eth_zero_addr(wrqu.ap_addr.sa_data); wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); } -#endif netdev_dbg(priv->net_dev, " scan_ind_count=%d\n", priv->scan_ind_count); hostif_sme_enqueue(priv, SME_START_CONFIRM); } @@ -2174,7 +2170,6 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event) case SME_SET_PMKSA: hostif_sme_set_pmksa(priv); break; -#ifdef WPS case SME_WPS_ENABLE_REQUEST: hostif_mib_set_request(priv, LOCAL_WPS_ENABLE, sizeof(priv->wps.wps_enabled), @@ -2186,7 +2181,6 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event) priv->wps.ielen, MIB_VALUE_TYPE_OSTRING, priv->wps.ie); break; -#endif /* WPS */ case SME_MODE_SET_REQUEST: hostif_sme_mode_setup(priv); break; diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index 172d38f17595..cb906f096d50 100644 --- a/drivers/staging/ks7010/ks_hostif.h +++ b/drivers/staging/ks7010/ks_hostif.h @@ -124,10 +124,8 @@ struct channel_list { #define LOCAL_REGION 0xF10A0100 /* Region setting */ -#ifdef WPS #define LOCAL_WPS_ENABLE 0xF10B0100 /* WiFi Protected Setup */ #define LOCAL_WPS_PROBE_REQ 0xF10C0100 /* WPS Probe Request */ -#endif /* WPS */ #define LOCAL_GAIN 0xF10D0100 /* Carrer sense threshold for demo ato show */ #define LOCAL_EEPROM_SUM 0xF10E0100 /* EEPROM checksum information */