staging: ks7010: remove missing WPS preprocessor conditional code
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:09 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:36 +0000 (18:58 -0700)
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 <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_hostif.h

index c0a9a67..ea484f2 100644 (file)
@@ -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;
index 172d38f..cb906f0 100644 (file)
@@ -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 */